public class MulticastSocket extends DatagramSocket
Constructor and Description |
---|
MulticastSocket() |
MulticastSocket(int port)
a checkListen security check is done.
|
MulticastSocket(SocketAddress addr) |
Modifier and Type | Method and Description |
---|---|
InetAddress |
getInterface() |
int |
getTimeToLive() |
byte |
getTTL()
deprecated use getTimeToLive
|
void |
joinGroup(InetAddress groupAddr) |
void |
joinGroup(SocketAddress saddr,
NetworkInterface nwInt) |
void |
leaveGroup(InetAddress groupAddr) |
void |
leaveGroup(SocketAddress addr,
NetworkInterface nwInt) |
void |
send(DatagramPacket dgram,
byte ttl) |
void |
setInterface(InetAddress addr) |
void |
setTimeToLive(int ttl) |
void |
setTTL(byte ttl)
deprecated use setTimeToLive
|
bind, close, connect, connect, disconnect, getBroadcast, getInetAddress, getLocalAddress, getLocalPort, getLocalSocketAddress, getPort, getReceiveBufferSize, getRemoteSocketAddress, getReuseAddress, getSendBufferSize, getSoTimeout, getTrafficCless, isBound, isClosed, isConnected, receive, send, setBroadcast, setDatagramSocketImplFactory, setReceiveBufferSize, setReuseAddress, setSendBufferSize, setSoTimeout, setTrafficClass
public MulticastSocket() throws IOException
IOException
public MulticastSocket(SocketAddress addr) throws IOException
IOException
public MulticastSocket(int port) throws IOException
IOException
public InetAddress getInterface() throws SocketException
SocketException
public void joinGroup(InetAddress groupAddr) throws IOException
IOException
public void joinGroup(SocketAddress saddr, NetworkInterface nwInt) throws IOException
IOException
public void leaveGroup(SocketAddress addr, NetworkInterface nwInt) throws IOException
IOException
public void leaveGroup(InetAddress groupAddr) throws IOException
IOException
public void send(DatagramPacket dgram, byte ttl) throws IOException
IOException
public void setInterface(InetAddress addr) throws SocketException
SocketException
public byte getTTL() throws IOException
IOException
public void setTTL(byte ttl) throws IOException
IOException
public int getTimeToLive() throws IOException
IOException
public void setTimeToLive(int ttl) throws IOException
IOException