public class NGWin32NamedPipeServerSocket
extends java.net.ServerSocket
| Constructor and Description |
|---|
NGWin32NamedPipeServerSocket(int maxInstances,
java.lang.String path) |
NGWin32NamedPipeServerSocket(int maxInstances,
java.lang.String path,
boolean requireStrictLength)
The doc for InputStream#read(byte[] b, int off, int len) states that
"An attempt is made to read as many as len bytes, but a smaller number may be read."
However, using requireStrictLength, NGWin32NamedPipeSocketInputStream can require that
len matches up exactly the number of bytes to read.
|
NGWin32NamedPipeServerSocket(java.lang.String path) |
NGWin32NamedPipeServerSocket(java.lang.String path,
boolean requireStrictLength)
The doc for InputStream#read(byte[] b, int off, int len) states that
"An attempt is made to read as many as len bytes, but a smaller number may be read."
However, using requireStrictLength, NGWin32NamedPipeSocketInputStream can require that
len matches up exactly the number of bytes to read.
|
| Modifier and Type | Method and Description |
|---|---|
java.net.Socket |
accept() |
void |
bind(java.net.SocketAddress endpoint) |
void |
close() |
bind, getChannel, getInetAddress, getLocalPort, getLocalSocketAddress, getReceiveBufferSize, getReuseAddress, getSoTimeout, implAccept, isBound, isClosed, setPerformancePreferences, setReceiveBufferSize, setReuseAddress, setSocketFactory, setSoTimeout, toStringpublic NGWin32NamedPipeServerSocket(java.lang.String path)
throws java.io.IOException
java.io.IOExceptionpublic NGWin32NamedPipeServerSocket(java.lang.String path,
boolean requireStrictLength)
throws java.io.IOException
java.io.IOExceptionpublic NGWin32NamedPipeServerSocket(int maxInstances,
java.lang.String path)
throws java.io.IOException
java.io.IOExceptionpublic NGWin32NamedPipeServerSocket(int maxInstances,
java.lang.String path,
boolean requireStrictLength)
throws java.io.IOException
java.io.IOExceptionpublic void bind(java.net.SocketAddress endpoint)
throws java.io.IOException
bind in class java.net.ServerSocketjava.io.IOExceptionpublic java.net.Socket accept()
throws java.io.IOException
accept in class java.net.ServerSocketjava.io.IOExceptionpublic void close()
throws java.io.IOException
close in interface java.io.Closeableclose in interface java.lang.AutoCloseableclose in class java.net.ServerSocketjava.io.IOException