public class NGUnixDomainSocket extends Socket
Socket backed by a native Unix domain socket.
Instances of this class always return null for Socket.getInetAddress(), Socket.getLocalAddress(), Socket.getLocalSocketAddress(), Socket.getRemoteSocketAddress().
| Constructor and Description |
|---|
NGUnixDomainSocket(int fd)
Creates a Unix domain socket backed by a native file descriptor.
|
| 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 NGUnixDomainSocket(int fd)
public InputStream getInputStream()
getInputStream in class Socketpublic OutputStream getOutputStream()
getOutputStream in class Socketpublic void shutdownInput()
throws IOException
shutdownInput in class SocketIOExceptionpublic void shutdownOutput()
throws IOException
shutdownOutput in class SocketIOExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class SocketIOExceptionCopyright © 2025. All rights reserved.