net.i2p.client.streaming
class ConnectionHandler extends Object
Constructor and Description |
---|
ConnectionHandler(I2PAppContext context,
ConnectionManager mgr)
Creates a new instance of ConnectionHandler
|
Modifier and Type | Method and Description |
---|---|
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) |
public ConnectionHandler(I2PAppContext context, ConnectionManager mgr)
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)