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, toString
public NGUnixDomainSocket(int fd)
public InputStream getInputStream()
getInputStream
in class Socket
public OutputStream getOutputStream()
getOutputStream
in class Socket
public void shutdownInput() throws IOException
shutdownInput
in class Socket
IOException
public void shutdownOutput() throws IOException
shutdownOutput
in class Socket
IOException
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
close
in class Socket
IOException
Copyright © 2024. All rights reserved.