| Constructor and Description |
|---|
SocketInfo(Socket socket) |
| Modifier and Type | Method and Description |
|---|---|
SocketChannel |
getChannel() |
InetAddress |
getInetAddress() |
boolean |
getKeepAlive() |
InetAddress |
getLocalAddress() |
int |
getLocalPort() |
SocketAddress |
getLocalSocketAddress() |
boolean |
getOOBInline() |
int |
getPort() |
int |
getReceiveBufferSize() |
SocketAddress |
getRemoteSocketAddress() |
boolean |
getReuseAddress() |
int |
getSendBufferSize() |
int |
getSoLinger() |
int |
getSoTimeout() |
boolean |
getTcpNoDelay() |
int |
getTrafficClass() |
boolean |
isClosed() |
boolean |
isConnected() |
boolean |
isInputShutdown() |
boolean |
isOutputShutdown() |
String |
toString() |
public SocketInfo(Socket socket)
public InetAddress getInetAddress()
public InetAddress getLocalAddress()
public int getPort()
public int getLocalPort()
public SocketAddress getRemoteSocketAddress()
public SocketAddress getLocalSocketAddress()
public SocketChannel getChannel()
public boolean getTcpNoDelay()
throws SocketException
SocketExceptionpublic int getSoLinger()
throws SocketException
SocketExceptionpublic boolean getOOBInline()
throws SocketException
SocketExceptionpublic int getSoTimeout()
throws SocketException
SocketExceptionpublic int getSendBufferSize()
throws SocketException
SocketExceptionpublic int getReceiveBufferSize()
throws SocketException
SocketExceptionpublic boolean getKeepAlive()
throws SocketException
SocketExceptionpublic int getTrafficClass()
throws SocketException
SocketExceptionpublic boolean getReuseAddress()
throws SocketException
SocketExceptionpublic boolean isConnected()
public boolean isClosed()
public boolean isInputShutdown()
public boolean isOutputShutdown()