|
||||||||||
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)
Deprecated. |
Method Summary | |
---|---|
I2PSocket |
accept()
Deprecated. Waits for the next socket connecting. |
boolean |
addWaitForAccept(I2PSocket s,
long timeoutMs)
Deprecated. Make the socket available and wait until the client app accepts it, or until the given timeout elapses. |
void |
close()
Deprecated. Closes the socket. |
I2PSocketManager |
getManager()
Deprecated. Access the manager which is coordinating the server socket |
long |
getSoTimeout()
Deprecated. Get Sock Option accept timeout stub, does nothing in ministreaming |
void |
setSoTimeout(long x)
Deprecated. Set Sock Option accept timeout stub, does nothing in ministreaming |
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 void setSoTimeout(long x)
setSoTimeout
in interface I2PServerSocket
x
- public long getSoTimeout()
getSoTimeout
in interface I2PServerSocket
public I2PSocket accept() throws I2PException, 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)
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 |