NIOServerSocket
, NIOServerSocketSSL
, NIOSocket
, NIOSocketSSL
public interface NIOAbstractSocket
Modifier and Type | Method | 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.
|
java.lang.Object |
getTag() |
Returns the tag for this socket.
|
boolean |
isOpen() |
Returns the current state of this socket.
|
void |
setTag(java.lang.Object tag) |
Returns the tag for 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.
java.lang.Object getTag()
void setTag(java.lang.Object tag)
tag
- the new tag for this socket.