MulticastSocket Members

MulticastSocket Members

Class Overview | This Package | All Packages

Constructors
Name Description
MulticastSocket() Create a multicast socket.
MulticastSocket(int) Create a multicast socket and bind it to a specific port.

Methods
Name Description
getInterface() Retrieve the address of the network interface used for multicast packets.
getTTL() Get the default time-to-live for multicast packets sent out on the socket.
joinGroup(InetAddress) Joins a multicast group.
leaveGroup(InetAddress) Leave a multicast group.
send(DatagramPacket, byte) Sends a datagram packet to the destination, with a TTL (time- to-live) other than the default for the socket.
setInterface(InetAddress) Set the outgoing network interface for multicast packets on this socket, to other than the system default.
setTTL(byte) Set the default time-to-live for multicast packets sent out on this socket.