java.net.MulticastSocket (class) |
Constructors: |
MulticastSocket();
MulticastSocket(int port);
|
General Description: |
This is the general datagram (UDP) socket for unconnected messages. |
Parent Class: |
DatagramSocket |
Methods |
InetAddress getInterface(); |
|
void setInterface(InetAddress addr); |
Get/set the local address the socket is connected to. |
int getTimeToLive(); |
|
void setTimeToLive(int TTL); |
Get/set the time-to-live for each message. |
void joinGroup(InetAddress addr); |
Leave multicast group. |
void leaveGroup(InetAddress addr); |
Join multicast group. |
void send(DatagramPacket p, int TTL); |
Send message with specific TTL. |
Exceptions Thrown |
IOException, SocketException
|
|
70 |
|
|
|