public class NGWin32NamedPipeSocket
extends java.net.Socket
| Constructor and Description |
|---|
NGWin32NamedPipeSocket(com.sun.jna.platform.win32.WinNT.HANDLE handle,
com.martiansoftware.nailgun.NGWin32NamedPipeSocket.CloseCallback closeCallback) |
NGWin32NamedPipeSocket(com.sun.jna.platform.win32.WinNT.HANDLE handle,
com.martiansoftware.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() |
java.io.InputStream |
getInputStream() |
java.io.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.martiansoftware.nailgun.NGWin32NamedPipeSocket.CloseCallback closeCallback,
boolean requireStrictLength)
throws java.io.IOException
java.io.IOExceptionpublic NGWin32NamedPipeSocket(com.sun.jna.platform.win32.WinNT.HANDLE handle,
com.martiansoftware.nailgun.NGWin32NamedPipeSocket.CloseCallback closeCallback)
throws java.io.IOException
java.io.IOExceptionpublic java.io.InputStream getInputStream()
getInputStream in class java.net.Socketpublic java.io.OutputStream getOutputStream()
getOutputStream in class java.net.Socketpublic void close()
throws java.io.IOException
close in interface java.io.Closeableclose in interface java.lang.AutoCloseableclose in class java.net.Socketjava.io.IOExceptionpublic void shutdownInput()
throws java.io.IOException
shutdownInput in class java.net.Socketjava.io.IOExceptionpublic void shutdownOutput()
throws java.io.IOException
shutdownOutput in class java.net.Socketjava.io.IOException