|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.i2p.client.streaming.ConnectionHandler
public class ConnectionHandler
Receive new connection attempts Use a bounded queue to limit the damage from SYN floods, router overload, or a slow client
Constructor Summary | |
---|---|
ConnectionHandler(I2PAppContext context,
ConnectionManager mgr)
Creates a new instance of ConnectionHandler |
Method Summary | |
---|---|
Connection |
accept(long timeoutMs)
Receive an incoming connection (built from a received SYN) Non-SYN packets with a zero SendStreamID may also be queued here so that they don't get thrown away while the SYN packet before it is queued. |
boolean |
getActive()
|
void |
receiveNewSyn(Packet packet)
Non-SYN packets with a zero SendStreamID may also be queued here so that they don't get thrown away while the SYN packet before it is queued. |
void |
setActive(boolean active)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ConnectionHandler(I2PAppContext context, ConnectionManager mgr)
Method Detail |
---|
public void setActive(boolean active)
public boolean getActive()
public void receiveNewSyn(Packet packet)
public Connection accept(long timeoutMs)
timeoutMs
- max amount of time to wait for a connection (if less
than 1ms, wait indefinitely)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |