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, toStringprivate 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.Closeableclose in interface java.lang.AutoCloseableclose in class java.net.Socketjava.io.IOExceptionpublic void connect(java.net.SocketAddress endpoint)
throws java.io.IOException
connect in class java.net.Socketjava.io.IOExceptionpublic void connect(java.net.SocketAddress endpoint,
int timeout)
throws java.io.IOException
connect in class java.net.Socketendpoint - endPointtimeout - timeout in millisecondsjava.io.IOException - exceptionpublic java.io.InputStream getInputStream()
getInputStream in class java.net.Socketpublic java.io.OutputStream getOutputStream()
getOutputStream in class java.net.Socketpublic void setTcpNoDelay(boolean bool)
setTcpNoDelay in class java.net.Socketpublic void setKeepAlive(boolean bool)
setKeepAlive in class java.net.Socketpublic void setReceiveBufferSize(int size)
setReceiveBufferSize in class java.net.Socketpublic void setSendBufferSize(int size)
setSendBufferSize in class java.net.Socketpublic void setSoLinger(boolean bool,
int value)
setSoLinger in class java.net.Socketpublic void setSoTimeout(int timeout)
setSoTimeout in class java.net.Socketpublic void shutdownInput()
shutdownInput in class java.net.Socketpublic void shutdownOutput()
shutdownOutput in class java.net.Socket