public class MulticastSocket extends DatagramSocket
Constructor and Description |
---|
MulticastSocket() |
MulticastSocket(int i) |
Modifier and Type | Method and Description |
---|---|
InetAddress |
getInterface() |
byte |
getTTL() |
void |
joinGroup(InetAddress inetaddress) |
void |
leaveGroup(InetAddress inetaddress) |
void |
send(DatagramPacket datagrampacket,
byte byte0) |
void |
setInterface(InetAddress inetaddress) |
void |
setTTL(byte byte0) |
avail, close, connect, disconnect, getInetAddress, getLocalAddress, getLocalPort, getPort, getReceiveBufferSize, getSendBufferSize, getSoTimeout, receive, send, setSecure, setSendBufferSize, setSoTimeout
public MulticastSocket() throws IOException
IOException
- ?public MulticastSocket(int i) throws IOException
i
- ?IOException
- ?public InetAddress getInterface() throws SocketException
SocketException
- ?public byte getTTL() throws IOException
IOException
- ?public void joinGroup(InetAddress inetaddress) throws IOException
inetaddress
- ?IOException
- ?public void leaveGroup(InetAddress inetaddress) throws IOException
inetaddress
- ?IOException
- ?public void send(DatagramPacket datagrampacket, byte byte0) throws IOException
datagrampacket
- ?byte0
- ?IOException
- ?public void setInterface(InetAddress inetaddress) throws SocketException
inetaddress
- ?SocketException
- ?public void setTTL(byte byte0) throws IOException
byte0
- ?IOException
- ?