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, setTTL
bind, 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, setTrafficClass
public 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
インタフェース内 Closeable
close
インタフェース内 AutoCloseable
close
クラス内 DatagramSocket
public void receive(DatagramPacket p_)
receive
インタフェース内 hiSocket.UdpIF
receive
クラス内 DatagramSocket
public void send(DatagramPacket p_)
send
インタフェース内 hiSocket.UdpIF
send
クラス内 DatagramSocket
public int sendBytes(SocketAddress addr_, byte[] bytes_, int len_)
バイト配列を送信します。送信可能なサイズは65507バイト以下です。 指定データ長が配列より長い場合は配列サイズが採用されます。
sendBytes
インタフェース内 hiSocket.UdpIF
addr_
- 相手アドレスbytes_
- 送信するバイト配列len_
- データ長