public interface DatagramChannel extends Channel
Channel
。
Channel.Unsafe
Modifier and Type | Method and Description |
---|---|
ChannelFuture |
block(java.net.InetAddress multicastAddress, java.net.InetAddress sourceToBlock)
阻止给定多播地址的给定sourceToBlock地址,并在操作完成后通知 ChannelFuture 。
|
ChannelFuture |
block(java.net.InetAddress multicastAddress, java.net.InetAddress sourceToBlock, ChannelPromise future)
阻止给定多播地址的给定sourceToBlock地址,并在操作完成后通知 ChannelFuture 。
|
ChannelFuture |
block(java.net.InetAddress multicastAddress, java.net.NetworkInterface networkInterface, java.net.InetAddress sourceToBlock)
在给定networkInterface上阻止给定多播地址的给定sourceToBlock地址,并在操作完成后通知 ChannelFuture 。
|
ChannelFuture |
block(java.net.InetAddress multicastAddress, java.net.NetworkInterface networkInterface, java.net.InetAddress sourceToBlock, ChannelPromise future)
在给定的networkInterface上阻止给定的多播地址的给定sourceToBlock地址,并在操作完成后通知 ChannelFuture 。
|
DatagramChannelConfig |
config()
返回此频道的配置。
|
boolean |
isConnected()
如果 DatagramChannel 连接到远程对等端,则返回true 。
|
ChannelFuture |
joinGroup(java.net.InetAddress multicastAddress)
一旦操作完成,加入多播组并通知 ChannelFuture 。
|
ChannelFuture |
joinGroup(java.net.InetAddress multicastAddress, ChannelPromise future)
加入多播组,并在操作完成后通知 ChannelFuture 。
|
ChannelFuture |
joinGroup(java.net.InetAddress multicastAddress, java.net.NetworkInterface networkInterface, java.net.InetAddress source)
在指定的接口加入指定的组播组,并在操作完成后通知 ChannelFuture 。
|
ChannelFuture |
joinGroup(java.net.InetAddress multicastAddress, java.net.NetworkInterface networkInterface, java.net.InetAddress source, ChannelPromise future)
在指定的接口加入指定的组播组,并在操作完成后通知 ChannelFuture 。
|
ChannelFuture |
joinGroup(java.net.InetSocketAddress multicastAddress, java.net.NetworkInterface networkInterface)
在指定的接口加入指定的组播组,并在操作完成后通知 ChannelFuture 。
|
ChannelFuture |
joinGroup(java.net.InetSocketAddress multicastAddress, java.net.NetworkInterface networkInterface, ChannelPromise future)
在指定的接口加入指定的组播组,并在操作完成后通知 ChannelFuture 。
|
ChannelFuture |
leaveGroup(java.net.InetAddress multicastAddress)
一旦操作完成,就离开多播组并通知 ChannelFuture 。
|
ChannelFuture |
leaveGroup(java.net.InetAddress multicastAddress, ChannelPromise future)
一旦操作完成,就离开多播组并通知 ChannelFuture 。
|
ChannelFuture |
leaveGroup(java.net.InetAddress multicastAddress, java.net.NetworkInterface networkInterface, java.net.InetAddress source)
在指定的接口上使用指定的源保留指定的多播组,并在操作完成后通知 ChannelFuture 。
|
ChannelFuture |
leaveGroup(java.net.InetAddress multicastAddress, java.net.NetworkInterface networkInterface, java.net.InetAddress source, ChannelPromise future)
在指定的接口上使用指定的源保留指定的多播组,并在操作完成后通知 ChannelFuture 。
|
ChannelFuture |
leaveGroup(java.net.InetSocketAddress multicastAddress, java.net.NetworkInterface networkInterface)
在指定的本地接口上留下组播组,并在操作完成后通知 ChannelFuture 。
|
ChannelFuture |
leaveGroup(java.net.InetSocketAddress multicastAddress, java.net.NetworkInterface networkInterface, ChannelPromise future)
在指定的本地接口上留下多播组,并在操作完成后通知 ChannelFuture 。
|
java.net.InetSocketAddress |
localAddress()
返回此通道绑定的本地地址。
|
java.net.InetSocketAddress |
remoteAddress()
返回此通道连接到的远程地址。
|
alloc, bytesBeforeUnwritable, bytesBeforeWritable, closeFuture, eventLoop, flush, id, isActive, isOpen, isRegistered, isWritable, metadata, parent, pipeline, read, unsafe
attr, hasAttr
bind, bind, close, close, connect, connect, connect, connect, deregister, deregister, disconnect, disconnect, newFailedFuture, newProgressivePromise, newPromise, newSucceededFuture, voidPromise, write, write, writeAndFlush, writeAndFlush
DatagramChannelConfig config()
Channel
java.net.InetSocketAddress localAddress()
Channel
复制的描述
SocketAddress
应该被转换为更具体的类型,例如InetSocketAddress
以检索详细信息。
localAddress
,界面
Channel
null
如果这个频道没有绑定。
java.net.InetSocketAddress remoteAddress()
Channel
复制的描述
SocketAddress
应该被下调为更具体的类型,例如InetSocketAddress
以检索详细信息。
remoteAddress
,界面
Channel
null
如果此通道未连接。
如果此通道未连接,但它可以接收来自任意远程地址的消息(例如DatagramChannel
,请使用DefaultAddressedEnvelope.recipient()
确定接收消息的来源,因为此方法将返回null
。
boolean isConnected()
DatagramChannel
连接到远程对等端,则返回true
。
ChannelFuture joinGroup(java.net.InetAddress multicastAddress)
ChannelFuture
。
ChannelFuture joinGroup(java.net.InetAddress multicastAddress, ChannelPromise future)
ChannelFuture
。
给定的ChannelFuture
将被通知并返回。
ChannelFuture joinGroup(java.net.InetSocketAddress multicastAddress, java.net.NetworkInterface networkInterface)
ChannelFuture
。
ChannelFuture joinGroup(java.net.InetSocketAddress multicastAddress, java.net.NetworkInterface networkInterface, ChannelPromise future)
ChannelFuture
。
给定的ChannelFuture
将被通知并且返回。
ChannelFuture joinGroup(java.net.InetAddress multicastAddress, java.net.NetworkInterface networkInterface, java.net.InetAddress source)
ChannelFuture
。
ChannelFuture joinGroup(java.net.InetAddress multicastAddress, java.net.NetworkInterface networkInterface, java.net.InetAddress source, ChannelPromise future)
ChannelFuture
。
给定的ChannelFuture
将被通知并返回。
ChannelFuture leaveGroup(java.net.InetAddress multicastAddress)
ChannelFuture
。
ChannelFuture leaveGroup(java.net.InetAddress multicastAddress, ChannelPromise future)
ChannelFuture
。
给定的ChannelFuture
将被通知并且返回。
ChannelFuture leaveGroup(java.net.InetSocketAddress multicastAddress, java.net.NetworkInterface networkInterface)
ChannelFuture
。
ChannelFuture leaveGroup(java.net.InetSocketAddress multicastAddress, java.net.NetworkInterface networkInterface, ChannelPromise future)
ChannelFuture
。
给定的ChannelFuture
将被通知并且返回。
ChannelFuture leaveGroup(java.net.InetAddress multicastAddress, java.net.NetworkInterface networkInterface, java.net.InetAddress source)
ChannelFuture
。
ChannelFuture leaveGroup(java.net.InetAddress multicastAddress, java.net.NetworkInterface networkInterface, java.net.InetAddress source, ChannelPromise future)
ChannelFuture
。
给定的ChannelFuture
将被通知并且返回。
ChannelFuture block(java.net.InetAddress multicastAddress, java.net.NetworkInterface networkInterface, java.net.InetAddress sourceToBlock)
ChannelFuture
。
给定的ChannelFuture
将被通知并且返回。
ChannelFuture block(java.net.InetAddress multicastAddress, java.net.NetworkInterface networkInterface, java.net.InetAddress sourceToBlock, ChannelPromise future)
ChannelFuture
。
给定的ChannelFuture
将被通知并且返回。
ChannelFuture block(java.net.InetAddress multicastAddress, java.net.InetAddress sourceToBlock)
ChannelFuture
。
给定的ChannelFuture
将被通知并返回。
ChannelFuture block(java.net.InetAddress multicastAddress, java.net.InetAddress sourceToBlock, ChannelPromise future)
ChannelFuture
。
给定的ChannelFuture
将被通知并且返回。
Copyright © 2008–2018 The Netty Project. All rights reserved.