public final class UnixSocket extends Socket
(c) 2018 Oracle Corporation
| Modifier and Type | Method and Description |
|---|---|
void |
bind(SocketAddress bindpoint) |
void |
close() |
void |
connect(SocketAddress endpoint) |
void |
connect(SocketAddress endpoint,
int timeout) |
static UnixSocket |
connect(String destination) |
InetAddress |
getInetAddress() |
InputStream |
getInputStream() |
InetAddress |
getLocalAddress() |
int |
getLocalPort() |
SocketAddress |
getLocalSocketAddress() |
OutputStream |
getOutputStream() |
int |
getPort() |
SocketAddress |
getRemoteSocketAddress() |
int |
getSoTimeout() |
boolean |
isBound() |
boolean |
isClosed() |
boolean |
isConnected() |
boolean |
isInputShutdown() |
boolean |
isOutputShutdown() |
void |
setReceiveBufferSize(int size) |
void |
setSendBufferSize(int size) |
void |
setSoTimeout(int timeout) |
void |
shutdownInput() |
void |
shutdownOutput() |
getChannel, getKeepAlive, getOOBInline, getReceiveBufferSize, getReuseAddress, getSendBufferSize, getSoLinger, getTcpNoDelay, getTrafficClass, sendUrgentData, setKeepAlive, setOOBInline, setPerformancePreferences, setReuseAddress, setSocketImplFactory, setSoLinger, setTcpNoDelay, setTrafficClass, toStringpublic static UnixSocket connect(String destination) throws IOException
IOExceptionpublic InputStream getInputStream()
getInputStream in class Socketpublic OutputStream getOutputStream()
getOutputStream in class Socketpublic void setReceiveBufferSize(int size)
throws SocketException
setReceiveBufferSize in class SocketSocketExceptionpublic void setSendBufferSize(int size)
throws SocketException
setSendBufferSize in class SocketSocketExceptionpublic void setSoTimeout(int timeout)
throws SocketException
setSoTimeout in class SocketSocketExceptionpublic int getSoTimeout()
throws SocketException
getSoTimeout in class SocketSocketExceptionpublic void connect(SocketAddress endpoint) throws IOException
connect in class SocketIOExceptionpublic void connect(SocketAddress endpoint, int timeout) throws IOException
connect in class SocketIOExceptionpublic void bind(SocketAddress bindpoint) throws IOException
bind in class SocketIOExceptionpublic InetAddress getInetAddress()
getInetAddress in class Socketpublic InetAddress getLocalAddress()
getLocalAddress in class Socketpublic int getLocalPort()
getLocalPort in class Socketpublic SocketAddress getRemoteSocketAddress()
getRemoteSocketAddress in class Socketpublic SocketAddress getLocalSocketAddress()
getLocalSocketAddress in class Socketpublic boolean isConnected()
isConnected in class Socketpublic boolean isInputShutdown()
isInputShutdown in class Socketpublic boolean isOutputShutdown()
isOutputShutdown 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 © 2023. All rights reserved.