public interface DatagramChannel extends Channel
Channel which is created by DatagramChannelFactory.Channel.Unsafe| Modifier and Type | Method and Description |
|---|---|
ChannelFuture |
block(InetAddress multicastAddress,
InetAddress sourceToBlock)
Block the given sourceToBlock address for the given multicastAddress
|
ChannelFuture |
block(InetAddress multicastAddress,
InetAddress sourceToBlock,
ChannelFuture future)
Block the given sourceToBlock address for the given multicastAddress
|
ChannelFuture |
block(InetAddress multicastAddress,
NetworkInterface networkInterface,
InetAddress sourceToBlock)
Block the given sourceToBlock address for the given multicastAddress on the given networkInterface
|
ChannelFuture |
block(InetAddress multicastAddress,
NetworkInterface networkInterface,
InetAddress sourceToBlock,
ChannelFuture future)
Block the given sourceToBlock address for the given multicastAddress on the given networkInterface
|
DatagramChannelConfig |
config()
Returns the configuration of this channel.
|
boolean |
isConnected() |
ChannelFuture |
joinGroup(InetAddress multicastAddress)
Joins a multicast group.
|
ChannelFuture |
joinGroup(InetAddress multicastAddress,
ChannelFuture future) |
ChannelFuture |
joinGroup(InetAddress multicastAddress,
NetworkInterface networkInterface,
InetAddress source) |
ChannelFuture |
joinGroup(InetAddress multicastAddress,
NetworkInterface networkInterface,
InetAddress source,
ChannelFuture future) |
ChannelFuture |
joinGroup(InetSocketAddress multicastAddress,
NetworkInterface networkInterface)
Joins the specified multicast group at the specified interface.
|
ChannelFuture |
joinGroup(InetSocketAddress multicastAddress,
NetworkInterface networkInterface,
ChannelFuture future) |
ChannelFuture |
leaveGroup(InetAddress multicastAddress)
Leaves a multicast group.
|
ChannelFuture |
leaveGroup(InetAddress multicastAddress,
ChannelFuture future) |
ChannelFuture |
leaveGroup(InetAddress multicastAddress,
NetworkInterface networkInterface,
InetAddress source)
Leave the specified multicast group at the specified interface using the specified source.
|
ChannelFuture |
leaveGroup(InetAddress multicastAddress,
NetworkInterface networkInterface,
InetAddress source,
ChannelFuture future) |
ChannelFuture |
leaveGroup(InetSocketAddress multicastAddress,
NetworkInterface networkInterface)
Leaves a multicast group on a specified local interface.
|
ChannelFuture |
leaveGroup(InetSocketAddress multicastAddress,
NetworkInterface networkInterface,
ChannelFuture future) |
InetSocketAddress |
localAddress()
Returns the local address where this channel is bound to.
|
InetSocketAddress |
remoteAddress()
Returns the remote address where this channel is connected to.
|
closeFuture, eventLoop, id, isActive, isOpen, isRegistered, metadata, outboundByteBuffer, outboundMessageBuffer, parent, pipeline, unsafebind, bind, close, close, connect, connect, connect, connect, deregister, deregister, disconnect, disconnect, flush, flush, write, writenewFailedFuture, newFuture, newSucceededFuturecompareToDatagramChannelConfig config()
ChannelInetSocketAddress localAddress()
ChannelSocketAddress is supposed to be down-cast into more concrete
type such as InetSocketAddress to retrieve the detailed
information.localAddress in interface Channelnull if this channel is not bound.InetSocketAddress remoteAddress()
ChannelSocketAddress is supposed to be down-cast into more
concrete type such as InetSocketAddress to retrieve the detailed
information.remoteAddress in interface Channelnull if this channel is not connected.
If this channel is not connected but it can receive messages
from arbitrary remote addresses (e.g. DatagramChannel,
use MessageEvent#getRemoteAddress() to determine
the origination of the received message as this method will
return null.boolean isConnected()
ChannelFuture joinGroup(InetAddress multicastAddress)
ChannelFuture joinGroup(InetAddress multicastAddress, ChannelFuture future)
ChannelFuture joinGroup(InetSocketAddress multicastAddress, NetworkInterface networkInterface)
ChannelFuture joinGroup(InetSocketAddress multicastAddress, NetworkInterface networkInterface, ChannelFuture future)
ChannelFuture joinGroup(InetAddress multicastAddress, NetworkInterface networkInterface, InetAddress source)
ChannelFuture joinGroup(InetAddress multicastAddress, NetworkInterface networkInterface, InetAddress source, ChannelFuture future)
ChannelFuture leaveGroup(InetAddress multicastAddress)
ChannelFuture leaveGroup(InetAddress multicastAddress, ChannelFuture future)
ChannelFuture leaveGroup(InetSocketAddress multicastAddress, NetworkInterface networkInterface)
ChannelFuture leaveGroup(InetSocketAddress multicastAddress, NetworkInterface networkInterface, ChannelFuture future)
ChannelFuture leaveGroup(InetAddress multicastAddress, NetworkInterface networkInterface, InetAddress source)
ChannelFuture leaveGroup(InetAddress multicastAddress, NetworkInterface networkInterface, InetAddress source, ChannelFuture future)
ChannelFuture block(InetAddress multicastAddress, NetworkInterface networkInterface, InetAddress sourceToBlock)
ChannelFuture block(InetAddress multicastAddress, NetworkInterface networkInterface, InetAddress sourceToBlock, ChannelFuture future)
ChannelFuture block(InetAddress multicastAddress, InetAddress sourceToBlock)
ChannelFuture block(InetAddress multicastAddress, InetAddress sourceToBlock, ChannelFuture future)
Copyright © 2008-2012 The Netty Project. All Rights Reserved.