Package net.i2p.client.streaming.impl
Class PacketHandler
java.lang.Object
net.i2p.client.streaming.impl.PacketHandler
receive a packet and dispatch it correctly to the connection specified,
the server socket, or queue a reply RST packet.
I2PSession -> MessageHandler -> PacketHandler -> ConnectionPacketHandler -> MessageInputStream
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) voiddisplayPacket(Packet packet, String prefix, String suffix) logs to router log at debug level(package private) voidreceivePacket(Packet packet) (package private) voidreceivePacketDirect(Packet packet, boolean queueIfNoConn) voidsendResetUnverified(Packet packet) This sends a reset back to the place this packet came from.
-
Constructor Details
-
PacketHandler
-
-
Method Details
-
receivePacket
-
receivePacketDirect
-
displayPacket
logs to router log at debug level -
sendResetUnverified
This sends a reset back to the place this packet came from. Packet MUST have a FROM option. This is not associated with a connection, so no con stats are updated.- Parameters:
packet- incoming packet to be replied to, MUST have a FROM option- Since:
- 0.9.39, public since 0.9.71 for ConnectionManager
-