public class MulticastSockets
组播套接字资源
| 限定符和类型 | 字段和说明 |
|---|---|
static org.mechdancer.remote.resources.MulticastSockets.Companion |
Companion
已过时。
|
| 构造器和说明 |
|---|
MulticastSockets(java.net.InetSocketAddress address)
组播套接字资源
|
| 限定符和类型 | 方法和说明 |
|---|---|
void |
close()
关闭所有发送套接字
|
java.net.MulticastSocket |
get(java.net.NetworkInterface parameter)
获取经由
parameter 发送的组播套接字 |
java.net.MulticastSocket |
get(int timeout)
获取指定超时时间
timeout 的临时套接字 |
java.net.InetSocketAddress |
getAddress()
组地址
|
java.net.MulticastSocket |
getDefault()
默认套接字
|
java.util.Map<java.net.NetworkInterface,java.net.MulticastSocket> |
getView() |
public static org.mechdancer.remote.resources.MulticastSockets.Companion Companion
public MulticastSockets(@NotNull
java.net.InetSocketAddress address)
组播套接字资源
address - 组地址@NotNull public java.util.Map<java.net.NetworkInterface,java.net.MulticastSocket> getView()
@NotNull public java.net.MulticastSocket getDefault()
默认套接字
接收所有到达本机的组播包 不要修改组、超时等状态
@NotNull
public java.net.MulticastSocket get(@NotNull
java.net.NetworkInterface parameter)
获取经由 parameter 发送的组播套接字
parameterpublic void close()
关闭所有发送套接字
@NotNull public java.net.InetSocketAddress getAddress()
组地址