naga
public interface NIOAbstractSocket
Modifier and Type | Method and Description |
---|---|
void |
close()
Closes this socket (the actual disconnect will occur on the NIOService thread)
|
java.net.InetSocketAddress |
getAddress()
Returns the InetSocketAddress for this socket.
|
java.lang.String |
getIp()
Reports the IP used by this socket.
|
int |
getPort()
Returns the port in use by this socket.
|
boolean |
isOpen()
Returns the current state of this socket.
|
void close()
This method is thread-safe.
java.net.InetSocketAddress getAddress()
This method is thread-safe.
boolean isOpen()
This method is thread-safe.
java.lang.String getIp()
This method is thread-safe.
int getPort()
This method is thread-safe.