public class McastSender extends Object
| Constructor and Description |
|---|
McastSender(int port,
String address,
int sendPort,
String sendAddress) |
| Modifier and Type | Method and Description |
|---|---|
InetSocketAddress |
getAddress()
Return the send Address so that if we have loopback messages we can
detect if they where sent by this local sender and hence should be
ignored.
|
String |
getSenderHostPort()
Return the Host and Port of the sender.
|
int |
sendPacket(Packet packet)
Send the packet.
|
int |
sendPackets(List<Packet> packets)
Send the list of Packets.
|
public InetSocketAddress getAddress()
public String getSenderHostPort()
public int sendPacket(Packet packet) throws IOException
IOExceptionpublic int sendPackets(List<Packet> packets) throws IOException
IOExceptionCopyright © 2014. All Rights Reserved.