|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object netP5.AbstractMulticast
public abstract class AbstractMulticast
Constructor Summary | |
---|---|
AbstractMulticast(UdpPacketListener theDatagramListener,
String theMulticastAddress,
int thePort)
|
|
AbstractMulticast(UdpPacketListener theDatagramListener,
String theMulticastAddress,
int thePort,
int theBufferSize)
|
Method Summary | |
---|---|
void |
close()
|
void |
dispose()
dispose the multicastSocket. |
boolean |
loopback()
get the current loopback mode. |
void |
run()
|
void |
send(byte[] theBytes)
send a byte array to the mulitcast address. |
void |
send(String theString)
send a string to the multicast address. |
void |
setDatagramSize(int theDatagramSize)
set the buffer size of the datagrams received by the multicast socket. |
void |
setLoopback(boolean theFlag)
Disable/Enable local loopback of multicast datagrams. |
boolean |
setTimeToLive(int theTTL)
Set the default time-to-live for multicast packets sent out on this MulticastSocket in order to control the scope of the multicasts. |
MulticastSocket |
socket()
get the running multicast socket. |
void |
start()
|
int |
timeToLive()
get the current time to live value. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AbstractMulticast(UdpPacketListener theDatagramListener, String theMulticastAddress, int thePort, int theBufferSize)
theDatagramListener
- UdpPacketListenertheMulticastAddress
- StringthePort
- inttheBufferSize
- intpublic AbstractMulticast(UdpPacketListener theDatagramListener, String theMulticastAddress, int thePort)
theDatagramListener
- UdpPacketListenertheMulticastAddress
- StringthePort
- intMethod Detail |
---|
public MulticastSocket socket()
public void setDatagramSize(int theDatagramSize)
theDatagramSize
- intpublic void start()
public void run()
run
in interface Runnable
public void dispose()
public void close()
public boolean setTimeToLive(int theTTL)
theTTL
- int
public int timeToLive()
public void setLoopback(boolean theFlag)
theFlag
- booleanpublic boolean loopback()
public void send(String theString)
theString
- Stringpublic void send(byte[] theBytes)
theBytes
- byte[]
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |