|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public static interface Network.Port
A listening port.
Method Summary | |
---|---|
java.net.Socket |
accept()
Waits infinitely for a connection then returns it. |
java.net.Socket |
accept(int timeout)
Waits for a connection then returns it, or throws SocketTimeoutException. |
void |
close()
Closes the port, cancelling any in-progress accept calls |
java.net.InetAddress |
getPublicAddress()
|
int |
getPublicPort()
|
Method Detail |
---|
java.net.Socket accept() throws java.io.IOException
java.io.IOException
java.net.Socket accept(int timeout) throws java.io.IOException
timeout
- Timeout in milliseconds
java.io.IOException
void close() throws java.io.IOException
java.io.IOException
- Any errorjava.net.InetAddress getPublicAddress()
int getPublicPort()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |