public class SharedNamedPipe extends SharedSocket
SharedSocket
and this class., Implement connection timeouts for named pipes.SharedSocket.VirtualSocket
Modifier and Type | Field and Description |
---|---|
private jcifs.smb.SmbNamedPipe |
pipe
The shared named pipe.
|
serverType
Constructor and Description |
---|
SharedNamedPipe(JtdsConnection connection)
Creates a new instance of
SharedNamedPipe . |
Modifier and Type | Method and Description |
---|---|
(package private) void |
close()
Close the socket (noop if in shared mode).
|
(package private) void |
forceClose()
Force close the socket causing any pending reads/writes to fail.
|
(package private) java.lang.String |
getMAC() |
private jcifs.smb.SmbNamedPipe |
getPipe()
Getter for
pipe field. |
(package private) boolean |
isConnected()
Get the connected status of this socket.
|
private void |
setPipe(jcifs.smb.SmbNamedPipe pipe)
Setter for
pipe field. |
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, sendNetPacket, setCharsetInfo, setIn, setKeepAlive, setMemoryBudget, setMinMemPkts, setOut, setTdsVersion
public SharedNamedPipe(JtdsConnection connection) throws java.io.IOException
SharedNamedPipe
.connection
- java.io.IOException
- if the named pipe or its input or output streams do
not openjava.net.UnknownHostException
- if host cannot be found for the named pipejava.lang.String getMAC()
getMAC
in class SharedSocket
boolean isConnected()
isConnected
in class SharedSocket
void close() throws java.io.IOException
close
in class SharedSocket
java.io.IOException
- if the socket close failsvoid forceClose()
forceClose
in class SharedSocket
private jcifs.smb.SmbNamedPipe getPipe()
pipe
field.SmbNamedPipe
used for communicationprivate void setPipe(jcifs.smb.SmbNamedPipe pipe)
pipe
field.pipe
- SmbNamedPipe
to be used for communicationprotected void setTimeout(int timeout)
setTimeout
in class SharedSocket
timeout
- timeout value in millisecondsGenerated on June 8 2013