|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface I2PServerSocket
Defines how to listen for streaming peer connections
Method Summary | |
---|---|
I2PSocket |
accept()
Waits for the next socket connecting. |
void |
close()
Closes the socket. |
I2PSocketManager |
getManager()
Access the manager which is coordinating the server socket |
long |
getSoTimeout()
Get Sock Option accept timeout |
void |
setSoTimeout(long x)
Set Sock Option accept timeout |
Method Detail |
---|
void close() throws I2PException
I2PException
I2PSocket accept() throws I2PException, java.net.ConnectException, java.net.SocketTimeoutException
I2PException
- if there is a problem with reading a new socket
from the data available (aka the I2PSession closed, etc)
java.net.ConnectException
- if the I2PServerSocket is closed
java.net.SocketTimeoutException
void setSoTimeout(long x)
x
- timeout in mslong getSoTimeout()
I2PSocketManager getManager()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |