Class PacketHandler

java.lang.Object
net.i2p.client.streaming.impl.PacketHandler

class PacketHandler extends Object
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 Details

  • Method Details

    • receivePacket

      void receivePacket(Packet packet)
    • receivePacketDirect

      void receivePacketDirect(Packet packet, boolean queueIfNoConn)
    • displayPacket

      void displayPacket(Packet packet, String prefix, String suffix)
      logs to router log at debug level
    • sendResetUnverified

      public void sendResetUnverified(Packet packet)
      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