public class SharedLocalNamedPipe extends SharedSocket
SharedSocket.VirtualSocket
Modifier and Type | Field and Description |
---|---|
(package private) java.io.RandomAccessFile |
pipe
The named pipe as a file.
|
serverType
Constructor and Description |
---|
SharedLocalNamedPipe(JtdsConnection connection)
Creates a new instance of
SharedLocalNamedPipe . |
Modifier and Type | Method and Description |
---|---|
(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) java.lang.String |
getMAC() |
(package private) boolean |
isConnected()
Get the connected status of this socket.
|
(package private) byte[] |
sendNetPacket(SharedSocket.VirtualSocket vsock,
byte[] buffer)
Send an network packet.
|
protected void |
setTimeout(int timeout)
Set the socket timeout.
|
cancel, closeStream, disableEncryption, enableEncryption, finalize, getCharset, getCharsetInfo, getHost, getIn, getMemoryBudget, getMinMemPkts, getNetPacket, getOut, getPktLen, getPort, getRequestStream, getResponseStream, getTdsVersion, setCharsetInfo, setIn, setKeepAlive, setMemoryBudget, setMinMemPkts, setOut, setTdsVersion
public SharedLocalNamedPipe(JtdsConnection connection) throws java.io.IOException
SharedLocalNamedPipe
.connection
- the connection objectjava.io.IOException
- if an I/O error occursjava.lang.String getMAC()
getMAC
in class SharedSocket
boolean isConnected()
isConnected
in class SharedSocket
true
if the underlying named pipe is connectedbyte[] sendNetPacket(SharedSocket.VirtualSocket vsock, byte[] buffer) throws java.io.IOException
sendNetPacket
in class SharedSocket
vsock
- the VirtualSocket
used by the originating RequestStream
buffer
- the data to sendjava.io.IOException
- if an I/O error occursvoid close() throws java.io.IOException
close
in class 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 millisecondsGenerated on June 8 2013