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, toString
public NGWin32NamedPipeSocket(com.sun.jna.platform.win32.WinNT.HANDLE handle, com.facebook.nailgun.NGWin32NamedPipeSocket.CloseCallback closeCallback, boolean requireStrictLength) throws IOException
IOException
public NGWin32NamedPipeSocket(com.sun.jna.platform.win32.WinNT.HANDLE handle, com.facebook.nailgun.NGWin32NamedPipeSocket.CloseCallback closeCallback) throws IOException
IOException
public InputStream getInputStream()
getInputStream
in class Socket
public OutputStream getOutputStream()
getOutputStream
in class Socket
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
close
in class Socket
IOException
public void shutdownInput() throws IOException
shutdownInput
in class Socket
IOException
public void shutdownOutput() throws IOException
shutdownOutput
in class Socket
IOException
Copyright © 2024. All rights reserved.