|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--net.sourceforge.jtds.jdbc.SharedSocket | +--net.sourceforge.jtds.jdbc.SharedLocalNamedPipe
This class implements inter-process communication (IPC) to the database server using local named pipes (will only work on Windows).
Inner classes inherited from class net.sourceforge.jtds.jdbc.SharedSocket |
SharedSocket.VirtualSocket |
Field Summary | |
(package private) java.io.RandomAccessFile |
pipe
The named pipe as a file. |
Fields inherited from class net.sourceforge.jtds.jdbc.SharedSocket |
bufferDir, cancelMonitor, cancelPending, charsetInfo, doneBuffer, globalMemUsage, hdrBuf, host, in, maxBufSize, memoryBudget, minMemPkts, out, packetCount, peakMemUsage, port, responseOwner, securityViolation, serverType, socket, socketTable, sslSocket, TDS_DONE_LEN, TDS_DONE_TOKEN, TDS_HDR_LEN, tdsVersion |
Constructor Summary | |
SharedLocalNamedPipe(ConnectionJDBC2 connection)
Creates a new instance of SharedLocalNamedPipe . |
Method Summary | |
(package private) void |
close()
Close the named pipe and virtual sockets and release any resources. |
(package private) void |
forceClose()
Force close the socket causing any pending reads/writes to fail. |
(package private) boolean |
isConnected()
Get the connected status of this socket. |
(package private) byte[] |
sendNetPacket(int streamId,
byte[] buffer)
Send an network packet. |
protected void |
setTimeout(int timeout)
Set the socket timeout. |
Methods inherited from class net.sourceforge.jtds.jdbc.SharedSocket |
cancel, closeStream, createSocketForJDBC3, dequeueInput, disableEncryption, enableEncryption, enqueueInput, getCharset, getCharsetInfo, getHost, getIn, getMemoryBudget, getMinMemPkts, getNetPacket, getOut, getPktLen, getPort, getRequestStream, getResponseStream, getTdsVersion, lookup, readPacket, setCharsetInfo, setIn, setMemoryBudget, setMinMemPkts, setOut, setTdsVersion |
Methods inherited from class java.lang.Object |
|
Field Detail |
java.io.RandomAccessFile pipe
Constructor Detail |
public SharedLocalNamedPipe(ConnectionJDBC2 connection) throws java.io.IOException
SharedLocalNamedPipe
.connection
- the connection objectjava.io.IOException
- if an I/O error occursMethod Detail |
boolean isConnected()
isConnected
in class SharedSocket
true
if the underlying named pipe is connectedbyte[] sendNetPacket(int streamId, byte[] buffer) throws java.io.IOException
sendNetPacket
in class SharedSocket
streamId
- the originating RequestStream
objectbuffer
- the data to sendjava.io.IOException
- if an I/O error occursvoid close() throws java.io.IOException
close
in class SharedSocket
net.sourceforge.jtds.jdbc.SharedSocket
java.io.IOException
- if the socket close failsvoid forceClose()
Used by the login timer to abort a login attempt.
forceClose
in class SharedSocket
protected void setTimeout(int timeout)
setTimeout
in class SharedSocket
timeout
- the timeout value in milliseconds
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |