net.i2p.router.transport.udp
class UDPSender extends Object
Constructor and Description |
---|
UDPSender(RouterContext ctx,
DatagramSocket socket,
String name) |
Modifier and Type | Method and Description |
---|---|
int |
add(UDPPacket packet)
Put it on the queue
|
int |
add(UDPPacket packet,
int blockTime)
Deprecated.
use add(packet)
|
void |
shutdown() |
void |
startup() |
DatagramSocket |
updateListeningPort(DatagramSocket socket,
int newPort) |
public UDPSender(RouterContext ctx, DatagramSocket socket, String name)
public void startup()
public void shutdown()
public DatagramSocket updateListeningPort(DatagramSocket socket, int newPort)
public int add(UDPPacket packet, int blockTime)
blockTime
- how long to block IGNOREDpublic int add(UDPPacket packet)