public class NGWin32NamedPipeSocket extends Socket
| Constructor and Description |
|---|
NGWin32NamedPipeSocket(com.sun.jna.platform.win32.WinNT.HANDLE handle,
com.facebook.nailgun.NGWin32NamedPipeSocket.CloseCallback closeCallback) |
NGWin32NamedPipeSocket(com.sun.jna.platform.win32.WinNT.HANDLE handle,
com.facebook.nailgun.NGWin32NamedPipeSocket.CloseCallback closeCallback,
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 |
|---|---|
void |
close() |
InputStream |
getInputStream() |
OutputStream |
getOutputStream() |
void |
shutdownInput() |
void |
shutdownOutput() |
bind, connect, connect, getChannel, getInetAddress, getKeepAlive, getLocalAddress, getLocalPort, getLocalSocketAddress, getOOBInline, getPort, getReceiveBufferSize, getRemoteSocketAddress, getReuseAddress, getSendBufferSize, getSoLinger, getSoTimeout, getTcpNoDelay, getTrafficClass, isBound, isClosed, isConnected, isInputShutdown, isOutputShutdown, sendUrgentData, setKeepAlive, setOOBInline, setPerformancePreferences, setReceiveBufferSize, setReuseAddress, setSendBufferSize, setSocketImplFactory, setSoLinger, setSoTimeout, setTcpNoDelay, setTrafficClass, toStringpublic NGWin32NamedPipeSocket(com.sun.jna.platform.win32.WinNT.HANDLE handle,
com.facebook.nailgun.NGWin32NamedPipeSocket.CloseCallback closeCallback,
boolean requireStrictLength)
throws IOException
IOExceptionpublic NGWin32NamedPipeSocket(com.sun.jna.platform.win32.WinNT.HANDLE handle,
com.facebook.nailgun.NGWin32NamedPipeSocket.CloseCallback closeCallback)
throws IOException
IOExceptionpublic InputStream getInputStream()
getInputStream in class Socketpublic OutputStream getOutputStream()
getOutputStream in class Socketpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class SocketIOExceptionpublic void shutdownInput()
throws IOException
shutdownInput in class SocketIOExceptionpublic void shutdownOutput()
throws IOException
shutdownOutput in class SocketIOExceptionCopyright © 2025. All rights reserved.