Package net.i2p.router.transport.udp
Class UDPReceiver
- java.lang.Object
-
- net.i2p.router.transport.udp.UDPReceiver
-
class UDPReceiver extends Object
Lowest level component to pull raw UDP datagrams off the wire as fast as possible, controlled by both the bandwidth limiter and the router's throttle. If the inbound queue gets too large or packets have been waiting around too long, they are dropped. Packets should be pulled off from the queue ASAP by aPacketHandler
There is a UDPReceiver for each UDPEndpoint. It contains a thread but no queue. Received packets are queued in the common PacketHandler queue.
-
-
Constructor Summary
Constructors Constructor Description UDPReceiver(RouterContext ctx, UDPTransport transport, DatagramSocket socket, String name, SocketListener lsnr)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
shutdown()
void
startup()
Cannot be restarted (socket is final)
-
-
-
Constructor Detail
-
UDPReceiver
public UDPReceiver(RouterContext ctx, UDPTransport transport, DatagramSocket socket, String name, SocketListener lsnr)
-
-