public class NGWin32NamedPipeServerSocket extends ServerSocket
| Constructor and Description |
|---|
NGWin32NamedPipeServerSocket(int maxInstances,
String path) |
NGWin32NamedPipeServerSocket(int maxInstances,
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(String path) |
NGWin32NamedPipeServerSocket(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 |
|---|---|
Socket |
accept() |
void |
bind(SocketAddress endpoint) |
void |
close() |
bind, getChannel, getInetAddress, getLocalPort, getLocalSocketAddress, getReceiveBufferSize, getReuseAddress, getSoTimeout, implAccept, isBound, isClosed, setPerformancePreferences, setReceiveBufferSize, setReuseAddress, setSocketFactory, setSoTimeout, toStringpublic NGWin32NamedPipeServerSocket(String path) throws IOException
IOExceptionpublic NGWin32NamedPipeServerSocket(String path, boolean requireStrictLength) throws IOException
IOExceptionpublic NGWin32NamedPipeServerSocket(int maxInstances,
String path)
throws IOException
IOExceptionpublic NGWin32NamedPipeServerSocket(int maxInstances,
String path,
boolean requireStrictLength)
throws IOException
IOExceptionpublic void bind(SocketAddress endpoint) throws IOException
bind in class ServerSocketIOExceptionpublic Socket accept() throws IOException
accept in class ServerSocketIOExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class ServerSocketIOExceptionCopyright © 2025. All rights reserved.