Package org.jgroups.tests
Class mcast
- java.lang.Object
-
- org.jgroups.tests.mcast
-
public class mcast extends java.lang.ObjectTests IP multicast.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected classmcast.Receiver
-
Field Summary
Fields Modifier and Type Field Description protected java.net.InetAddressbind_addrprotected static booleancan_bind_to_mcast_addrprotected static StackTypeip_versionprotected intlocal_portprotected java.net.InetAddressmcast_addrprotected intmcast_portprotected static java.net.ProtocolFamilyprot_familyprotected java.net.DatagramSocketsockprotected intttl
-
Constructor Summary
Constructors Constructor Description mcast(java.net.InetAddress bind_addr, int local_port, java.net.InetAddress mcast_addr, int mcast_port, int ttl)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidbindToInterfaces(java.util.List<java.net.NetworkInterface> interfaces, java.net.MulticastSocket s)(package private) static voidhelp()static voidmain(java.lang.String[] args)protected voidstart()
-
-
-
Field Detail
-
sock
protected java.net.DatagramSocket sock
-
mcast_addr
protected java.net.InetAddress mcast_addr
-
bind_addr
protected java.net.InetAddress bind_addr
-
mcast_port
protected int mcast_port
-
local_port
protected final int local_port
-
ttl
protected final int ttl
-
can_bind_to_mcast_addr
protected static final boolean can_bind_to_mcast_addr
-
ip_version
protected static final StackType ip_version
-
prot_family
protected static final java.net.ProtocolFamily prot_family
-
-
Method Detail
-
start
protected void start() throws java.lang.Exception- Throws:
java.lang.Exception
-
main
public static void main(java.lang.String[] args) throws java.lang.Exception- Throws:
java.lang.Exception
-
help
static void help()
-
bindToInterfaces
protected void bindToInterfaces(java.util.List<java.net.NetworkInterface> interfaces, java.net.MulticastSocket s)
-
-