class ConnectionPacketHandler extends Object
I2PSession -> MessageHandler -> PacketHandler -> ConnectionPacketHandler -> MessageInputStream
One of these is instantiated per-Destination (i.e. per-ConnectionManager, not per-Connection). It doesn't store any state.
| Modifier and Type | Field and Description |
|---|---|
(package private) static String | PROP_IMMEDIATE_ACK_DELAYProp immediate ack delay. |
| Constructor and Description |
|---|
ConnectionPacketHandler(I2PAppContext context)Create a new ConnectionPacketHandler. |
| Modifier and Type | Method and Description |
|---|---|
static int | getMaxSlowStartWindow(I2PAppContext ctx)Get the maximum slow start window size. |
(package private) void | receivePacket(Packet packet,
Connection con)Takes ownership of the packet and calls packet.releasePayload() unless
it is passed to the MessageInputStream. |
static final String PROP_IMMEDIATE_ACK_DELAY
public ConnectionPacketHandler(I2PAppContext context)
context - the I2P application contextpublic static int getMaxSlowStartWindow(I2PAppContext ctx)
void receivePacket(Packet packet, Connection con) throws I2PException
packet - the received packetcon - the connection the packet belongs toI2PException - if the packet fails verification