| java.lang.Object org.apache.tomcat.jni.Multicast
Multicast | public class Multicast (Code) | | Multicast
author: Mladen Turk version: $Revision: 467222 $, $Date: 2006-10-24 05:17:11 +0200 (mar., 24 oct. 2006) $ |
Method Summary | |
native public static int | hops(long sock, int ttl) Set the Multicast Time to Live (ttl) for a multicast transmission.
Parameters: sock - The socket to set the multicast ttl Parameters: ttl - Time to live to Assign. | native public static int | join(long sock, long join, long iface, long source) Join a Multicast Group
Parameters: sock - The socket to join a multicast group Parameters: join - The address of the multicast group to join Parameters: iface - Address of the interface to use. | native public static int | leave(long sock, long addr, long iface, long source) Leave a Multicast Group. | native public static int | loopback(long sock, boolean opt) | native public static int | ointerface(long sock, long iface) Set the Interface to be used for outgoing Multicast Transmissions. |
hops | native public static int hops(long sock, int ttl)(Code) | | Set the Multicast Time to Live (ttl) for a multicast transmission.
Parameters: sock - The socket to set the multicast ttl Parameters: ttl - Time to live to Assign. 0-255, default=1 Remark : If the TTL is 0, packets will only be seenby sockets on the local machine,and only when multicast loopback is enabled. |
join | native public static int join(long sock, long join, long iface, long source)(Code) | | Join a Multicast Group
Parameters: sock - The socket to join a multicast group Parameters: join - The address of the multicast group to join Parameters: iface - Address of the interface to use. If NULL is passed, thedefault multicast interface will be used. (OS Dependent) Parameters: source - Source Address to accept transmissions from (non-NULLimplies Source-Specific Multicast) |
leave | native public static int leave(long sock, long addr, long iface, long source)(Code) | | Leave a Multicast Group. All arguments must be the same as
apr_mcast_join.
Parameters: sock - The socket to leave a multicast group Parameters: addr - The address of the multicast group to leave Parameters: iface - Address of the interface to use. If NULL is passed, thedefault multicast interface will be used. (OS Dependent) Parameters: source - Source Address to accept transmissions from (non-NULLimplies Source-Specific Multicast) |
loopback | native public static int loopback(long sock, boolean opt)(Code) | | Toggle IP Multicast Loopback
Parameters: sock - The socket to set multicast loopback Parameters: opt - false=disable, true=enable |
ointerface | native public static int ointerface(long sock, long iface)(Code) | | Set the Interface to be used for outgoing Multicast Transmissions.
Parameters: sock - The socket to set the multicast interface on Parameters: iface - Address of the interface to use for Multicast |
|
|