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, toString
public NGWin32NamedPipeServerSocket(String path) throws IOException
IOException
public NGWin32NamedPipeServerSocket(String path, boolean requireStrictLength) throws IOException
IOException
public NGWin32NamedPipeServerSocket(int maxInstances, String path) throws IOException
IOException
public NGWin32NamedPipeServerSocket(int maxInstances, String path, boolean requireStrictLength) throws IOException
IOException
public void bind(SocketAddress endpoint) throws IOException
bind
in class ServerSocket
IOException
public Socket accept() throws IOException
accept
in class ServerSocket
IOException
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
close
in class ServerSocket
IOException
Copyright © 2024. All rights reserved.