java.lang.Object
net.i2p.router.transport.udp.PacketHandler.Handler
- All Implemented Interfaces:
Runnable
- Enclosing class:
PacketHandler
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateHandler()The packet-reading task run by each UDP receive handler thread.Method Summary
Modifier and TypeMethodDescriptionprivate voidhandlePacket(UDPPacket packet) Initial handling, called for every packet.voidrun()
Constructor Details
Handler
private Handler()The packet-reading task run by each UDP receive handler thread.
Method Details
run
handlePacket
Initial handling, called for every packet. Find the state and call the correct receivePacket() variant.Classify the packet by source IP/port, into 4 groups:
- Established session
- Pending inbound establishment
- Pending outbound establishment
- No established or pending session found.
- Parameters:
packet- the received packet to classify and dispatch