java.lang.Object
net.i2p.router.transport.udp.UDPSender.Runner
- All Implemented Interfaces:
Runnable
- Enclosing class:
UDPSender
Constructor Details
Runner
private Runner()Writes packets to the socket.
Method Details
run
getNextPacket
Retrieves the next UDP packet from the outbound queue for sending.Packets whose lifetime exceed three times the CoDel target delay are dropped to avoid sending stale packets. Queue blocking and interrupt handling is performed here.
Poison packets signal shutdown and cause this method to return null.
- Returns:
- the next valid UDPPacket to send, or null if shutdown is triggered by poison packet