netP5
Class Multicast
java.lang.Object
netP5.AbstractMulticast
netP5.Multicast
- All Implemented Interfaces:
- Runnable, UdpPacketListener
public class Multicast
- extends AbstractMulticast
- implements UdpPacketListener
Multicast is a method of forwarding IP datagrams to a group of interested receivers.
UDP is used as the transport portocol.
Constructor Summary |
Multicast(Object theObject,
String theMulticastAddress,
int thePort)
|
Multicast(Object theObject,
String theMulticastAddress,
int thePort,
int theBufferSize)
create a new instance of Multicast. |
Multicast(UdpPacketListener theDatagramListener,
String theMulticastAddress,
int thePort)
|
Multicast(UdpPacketListener theDatagramListener,
String theMulticastAddress,
int thePort,
int theBufferSize)
|
Methods inherited from class netP5.AbstractMulticast |
close, dispose, loopback, run, send, send, setDatagramSize, setLoopback, setTimeToLive, socket, start, timeToLive |
Multicast
public Multicast(Object theObject,
String theMulticastAddress,
int thePort,
int theBufferSize)
- create a new instance of Multicast. the buffersize of the datagrams
is set to 1536 by default.
- Parameters:
theObject
- ObjecttheMulticastAddress
- StringthePort
- inttheBufferSize
- int
Multicast
public Multicast(Object theObject,
String theMulticastAddress,
int thePort)
Multicast
public Multicast(UdpPacketListener theDatagramListener,
String theMulticastAddress,
int thePort,
int theBufferSize)
Multicast
public Multicast(UdpPacketListener theDatagramListener,
String theMulticastAddress,
int thePort)
process
public void process(DatagramPacket thePacket,
int thePort)
- Specified by:
process
in interface UdpPacketListener
- Parameters:
thePacket
- DatagramPacketthePort
- int
addListener
public void addListener(NetListener theListener)
removeListener
public void removeListener(NetListener theListener)
getListener
public NetListener getListener(int theIndex)
getListeners
public Vector getListeners()
processing library oscP5 by Andreas Schlegel. (c) 2004-2012