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
SocketException
public int getSoLinger() throws SocketException
SocketException
public boolean getOOBInline() throws SocketException
SocketException
public int getSoTimeout() throws SocketException
SocketException
public int getSendBufferSize() throws SocketException
SocketException
public int getReceiveBufferSize() throws SocketException
SocketException
public boolean getKeepAlive() throws SocketException
SocketException
public int getTrafficClass() throws SocketException
SocketException
public boolean getReuseAddress() throws SocketException
SocketException
public boolean isConnected()
public boolean isClosed()
public boolean isInputShutdown()
public boolean isOutputShutdown()