|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface NIOAbstractSocket
An interface describing methods common to both NIOSocket and NIOServerSocket.
Method Summary | |
---|---|
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. |
Method Detail |
---|
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.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |