public class NamedPipeSocket
extends java.net.Socket
Modifier and Type | Field and Description |
---|---|
private java.io.RandomAccessFile |
file |
private java.lang.String |
host |
private java.io.InputStream |
is |
private java.lang.String |
name |
private java.io.OutputStream |
os |
Constructor and Description |
---|
NamedPipeSocket(java.lang.String host,
java.lang.String name) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
void |
connect(java.net.SocketAddress endpoint) |
void |
connect(java.net.SocketAddress endpoint,
int timeout)
Name pipe connection.
|
java.io.InputStream |
getInputStream() |
java.io.OutputStream |
getOutputStream() |
void |
setKeepAlive(boolean bool) |
void |
setReceiveBufferSize(int size) |
void |
setSendBufferSize(int size) |
void |
setSoLinger(boolean bool,
int value) |
void |
setSoTimeout(int timeout) |
void |
setTcpNoDelay(boolean bool) |
void |
shutdownInput() |
void |
shutdownOutput() |
bind, getChannel, getInetAddress, getKeepAlive, getLocalAddress, getLocalPort, getLocalSocketAddress, getOOBInline, getPort, getReceiveBufferSize, getRemoteSocketAddress, getReuseAddress, getSendBufferSize, getSoLinger, getSoTimeout, getTcpNoDelay, getTrafficClass, isBound, isClosed, isConnected, isInputShutdown, isOutputShutdown, sendUrgentData, setOOBInline, setPerformancePreferences, setReuseAddress, setSocketImplFactory, setTrafficClass, toString
private final java.lang.String host
private final java.lang.String name
private java.io.RandomAccessFile file
private java.io.InputStream is
private java.io.OutputStream os
public NamedPipeSocket(java.lang.String host, java.lang.String name)
public void close() throws java.io.IOException
close
in interface java.io.Closeable
close
in interface java.lang.AutoCloseable
close
in class java.net.Socket
java.io.IOException
public void connect(java.net.SocketAddress endpoint) throws java.io.IOException
connect
in class java.net.Socket
java.io.IOException
public void connect(java.net.SocketAddress endpoint, int timeout) throws java.io.IOException
connect
in class java.net.Socket
endpoint
- endPointtimeout
- timeout in millisecondsjava.io.IOException
- exceptionpublic java.io.InputStream getInputStream()
getInputStream
in class java.net.Socket
public java.io.OutputStream getOutputStream()
getOutputStream
in class java.net.Socket
public void setTcpNoDelay(boolean bool)
setTcpNoDelay
in class java.net.Socket
public void setKeepAlive(boolean bool)
setKeepAlive
in class java.net.Socket
public void setReceiveBufferSize(int size)
setReceiveBufferSize
in class java.net.Socket
public void setSendBufferSize(int size)
setSendBufferSize
in class java.net.Socket
public void setSoLinger(boolean bool, int value)
setSoLinger
in class java.net.Socket
public void setSoTimeout(int timeout)
setSoTimeout
in class java.net.Socket
public void shutdownInput()
shutdownInput
in class java.net.Socket
public void shutdownOutput()
shutdownOutput
in class java.net.Socket