class UDPSender extends Object
Constructor and Description |
---|
UDPSender(RouterContext ctx,
DatagramSocket socket,
String name,
SocketListener lsnr) |
Modifier and Type | Method and Description |
---|---|
void |
add(UDPPacket packet)
Put it on the queue.
|
void |
add(UDPPacket packet,
int blockTime)
Deprecated.
use add(packet)
|
void |
clear()
Clear outbound queue, probably in preparation for sending destroy() to everybody.
|
void |
shutdown() |
void |
startup()
Cannot be restarted (socket is final)
|
public UDPSender(RouterContext ctx, DatagramSocket socket, String name, SocketListener lsnr)
public void startup()
public void shutdown()
public void clear()
@Deprecated public void add(UDPPacket packet, int blockTime)
blockTime
- how long to block IGNOREDpublic void add(UDPPacket packet)