public static class hiSocket.UDP.Multicast extends MulticastSocket implements AutoCloseable, hiSocket.UdpIF
| コンストラクタと説明 | 
|---|
| Multicast(String multi_cast_ip_,
         int port_) | 
| Multicast(String multi_cast_ip_,
         int port_,
         long option_) | 
| 修飾子とタイプ | メソッドと説明 | 
|---|---|
| void | close() | 
| static hiSocket.UDP.Multicast | newSocket(String multi_cast_ip_,
         int port_) | 
| static hiSocket.UDP.Multicast | newSocket(String multi_cast_ip_,
         int port_,
         long option_) | 
| void | receive(DatagramPacket p_) | 
| void | send(DatagramPacket p_) | 
| int | sendBytes(SocketAddress addr_,
         byte[] bytes_,
         int len_)バイト配列を送信する. | 
getInterface, getLoopbackMode, getNetworkInterface, getTimeToLive, getTTL, joinGroup, joinGroup, leaveGroup, leaveGroup, send, setInterface, setLoopbackMode, setNetworkInterface, setTimeToLive, setTTLbind, connect, connect, disconnect, getBroadcast, getChannel, getInetAddress, getLocalAddress, getLocalPort, getLocalSocketAddress, getPort, getReceiveBufferSize, getRemoteSocketAddress, getReuseAddress, getSendBufferSize, getSoTimeout, getTrafficClass, isBound, isClosed, isConnected, setBroadcast, setDatagramSocketImplFactory, setReceiveBufferSize, setReuseAddress, setSendBufferSize, setSoTimeout, setTrafficClasspublic static hiSocket.UDP.Multicast newSocket(String multi_cast_ip_, int port_)
public static hiSocket.UDP.Multicast newSocket(String multi_cast_ip_, int port_, long option_)
public void close()
close インタフェース内 Closeableclose インタフェース内 AutoCloseableclose クラス内 DatagramSocketpublic void receive(DatagramPacket p_)
receive インタフェース内 hiSocket.UdpIFreceive クラス内 DatagramSocketpublic void send(DatagramPacket p_)
send インタフェース内 hiSocket.UdpIFsend クラス内 DatagramSocketpublic int sendBytes(SocketAddress addr_, byte[] bytes_, int len_)
バイト配列を送信します。送信可能なサイズは65507バイト以下です。 指定データ長が配列より長い場合は配列サイズが採用されます。
sendBytes インタフェース内 hiSocket.UdpIFaddr_ - 相手アドレスbytes_ - 送信するバイト配列len_ - データ長