|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.i2p.client.streaming.I2PServerSocketImpl
class I2PServerSocketImpl
Server socket implementation, allowing multiple threads to accept I2PSockets and pull from a queue populated by various threads (each of whom have their own timeout)
Constructor Summary | |
---|---|
I2PServerSocketImpl(I2PSocketManager mgr)
|
Method Summary | |
---|---|
I2PSocket |
accept()
Waits for the next socket connecting. |
boolean |
addWaitForAccept(I2PSocket s,
long timeoutMs)
Make the socket available and wait until the client app accepts it, or until the given timeout elapses. |
void |
close()
Closes the socket. |
I2PSocketManager |
getManager()
Access the manager which is coordinating the server socket |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public I2PServerSocketImpl(I2PSocketManager mgr)
Method Detail |
---|
public I2PSocket accept() throws I2PException, java.net.ConnectException
accept
in interface I2PServerSocket
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 closedpublic boolean addWaitForAccept(I2PSocket s, long timeoutMs)
timeoutMs
- how long to wait until accept
public void close()
I2PServerSocket
close
in interface I2PServerSocket
public I2PSocketManager getManager()
I2PServerSocket
getManager
in interface I2PServerSocket
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |