public interface DatagramChannel extends Channel
Channel
.Channel.Unsafe
Modifier and Type | Method and Description |
---|---|
ChannelFuture |
block(java.net.InetAddress multicastAddress,
java.net.InetAddress sourceToBlock)
Block the given sourceToBlock address for the given multicastAddress and notifies the
ChannelFuture once
the operation completes. |
ChannelFuture |
block(java.net.InetAddress multicastAddress,
java.net.InetAddress sourceToBlock,
ChannelPromise future)
Block the given sourceToBlock address for the given multicastAddress and notifies the
ChannelFuture once
the operation completes. |
ChannelFuture |
block(java.net.InetAddress multicastAddress,
java.net.NetworkInterface networkInterface,
java.net.InetAddress sourceToBlock)
Block the given sourceToBlock address for the given multicastAddress on the given networkInterface and notifies
the
ChannelFuture once the operation completes. |
ChannelFuture |
block(java.net.InetAddress multicastAddress,
java.net.NetworkInterface networkInterface,
java.net.InetAddress sourceToBlock,
ChannelPromise future)
Block the given sourceToBlock address for the given multicastAddress on the given networkInterface and notifies
the
ChannelFuture once the operation completes. |
DatagramChannelConfig |
config()
Returns the configuration of this channel.
|
boolean |
isConnected()
Return
true if the DatagramChannel is connected to the remote peer. |
ChannelFuture |
joinGroup(java.net.InetAddress multicastAddress)
Joins a multicast group and notifies the
ChannelFuture once the operation completes. |
ChannelFuture |
joinGroup(java.net.InetAddress multicastAddress,
ChannelPromise future)
Joins a multicast group and notifies the
ChannelFuture once the operation completes. |
ChannelFuture |
joinGroup(java.net.InetAddress multicastAddress,
java.net.NetworkInterface networkInterface,
java.net.InetAddress source)
Joins the specified multicast group at the specified interface and notifies the
ChannelFuture
once the operation completes. |
ChannelFuture |
joinGroup(java.net.InetAddress multicastAddress,
java.net.NetworkInterface networkInterface,
java.net.InetAddress source,
ChannelPromise future)
Joins the specified multicast group at the specified interface and notifies the
ChannelFuture
once the operation completes. |
ChannelFuture |
joinGroup(java.net.InetSocketAddress multicastAddress,
java.net.NetworkInterface networkInterface)
Joins the specified multicast group at the specified interface and notifies the
ChannelFuture
once the operation completes. |
ChannelFuture |
joinGroup(java.net.InetSocketAddress multicastAddress,
java.net.NetworkInterface networkInterface,
ChannelPromise future)
Joins the specified multicast group at the specified interface and notifies the
ChannelFuture
once the operation completes. |
ChannelFuture |
leaveGroup(java.net.InetAddress multicastAddress)
Leaves a multicast group and notifies the
ChannelFuture once the operation completes. |
ChannelFuture |
leaveGroup(java.net.InetAddress multicastAddress,
ChannelPromise future)
Leaves a multicast group and notifies the
ChannelFuture once the operation completes. |
ChannelFuture |
leaveGroup(java.net.InetAddress multicastAddress,
java.net.NetworkInterface networkInterface,
java.net.InetAddress source)
Leave the specified multicast group at the specified interface using the specified source and notifies
the
ChannelFuture once the operation completes. |
ChannelFuture |
leaveGroup(java.net.InetAddress multicastAddress,
java.net.NetworkInterface networkInterface,
java.net.InetAddress source,
ChannelPromise future)
Leave the specified multicast group at the specified interface using the specified source and notifies
the
ChannelFuture once the operation completes. |
ChannelFuture |
leaveGroup(java.net.InetSocketAddress multicastAddress,
java.net.NetworkInterface networkInterface)
Leaves a multicast group on a specified local interface and notifies the
ChannelFuture once the
operation completes. |
ChannelFuture |
leaveGroup(java.net.InetSocketAddress multicastAddress,
java.net.NetworkInterface networkInterface,
ChannelPromise future)
Leaves a multicast group on a specified local interface and notifies the
ChannelFuture once the
operation completes. |
java.net.InetSocketAddress |
localAddress()
Returns the local address where this channel is bound to.
|
java.net.InetSocketAddress |
remoteAddress()
Returns the remote address where this channel is connected to.
|
alloc, bind, bind, close, close, closeFuture, connect, connect, connect, connect, deregister, deregister, disconnect, disconnect, eventLoop, flush, isActive, isOpen, isRegistered, isWritable, metadata, newFailedFuture, newProgressivePromise, newPromise, newSucceededFuture, parent, pipeline, read, unsafe, voidPromise, write, write, writeAndFlush, writeAndFlush
attr
DatagramChannelConfig config()
Channel
java.net.InetSocketAddress localAddress()
Channel
SocketAddress
is supposed to be down-cast into more concrete
type such as InetSocketAddress
to retrieve the detailed
information.localAddress
in interface Channel
null
if this channel is not bound.java.net.InetSocketAddress remoteAddress()
Channel
SocketAddress
is supposed to be down-cast into more
concrete type such as InetSocketAddress
to retrieve the detailed
information.remoteAddress
in interface Channel
null
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 DefaultAddressedEnvelope.recipient()
to determine
the origination of the received message as this method will
return null
.boolean isConnected()
true
if the DatagramChannel
is connected to the remote peer.ChannelFuture joinGroup(java.net.InetAddress multicastAddress)
ChannelFuture
once the operation completes.ChannelFuture joinGroup(java.net.InetAddress multicastAddress, ChannelPromise future)
ChannelFuture
once the operation completes.
The given ChannelFuture
will be notified and also returned.ChannelFuture joinGroup(java.net.InetSocketAddress multicastAddress, java.net.NetworkInterface networkInterface)
ChannelFuture
once the operation completes.ChannelFuture joinGroup(java.net.InetSocketAddress multicastAddress, java.net.NetworkInterface networkInterface, ChannelPromise future)
ChannelFuture
once the operation completes.
The given ChannelFuture
will be notified and also returned.ChannelFuture joinGroup(java.net.InetAddress multicastAddress, java.net.NetworkInterface networkInterface, java.net.InetAddress source)
ChannelFuture
once the operation completes.ChannelFuture joinGroup(java.net.InetAddress multicastAddress, java.net.NetworkInterface networkInterface, java.net.InetAddress source, ChannelPromise future)
ChannelFuture
once the operation completes.
The given ChannelFuture
will be notified and also returned.ChannelFuture leaveGroup(java.net.InetAddress multicastAddress)
ChannelFuture
once the operation completes.ChannelFuture leaveGroup(java.net.InetAddress multicastAddress, ChannelPromise future)
ChannelFuture
once the operation completes.
The given ChannelFuture
will be notified and also returned.ChannelFuture leaveGroup(java.net.InetSocketAddress multicastAddress, java.net.NetworkInterface networkInterface)
ChannelFuture
once the
operation completes.ChannelFuture leaveGroup(java.net.InetSocketAddress multicastAddress, java.net.NetworkInterface networkInterface, ChannelPromise future)
ChannelFuture
once the
operation completes.
The given ChannelFuture
will be notified and also returned.ChannelFuture leaveGroup(java.net.InetAddress multicastAddress, java.net.NetworkInterface networkInterface, java.net.InetAddress source)
ChannelFuture
once the operation completes.ChannelFuture leaveGroup(java.net.InetAddress multicastAddress, java.net.NetworkInterface networkInterface, java.net.InetAddress source, ChannelPromise future)
ChannelFuture
once the operation completes.
The given ChannelFuture
will be notified and also returned.ChannelFuture block(java.net.InetAddress multicastAddress, java.net.NetworkInterface networkInterface, java.net.InetAddress sourceToBlock)
ChannelFuture
once the operation completes.
The given ChannelFuture
will be notified and also returned.ChannelFuture block(java.net.InetAddress multicastAddress, java.net.NetworkInterface networkInterface, java.net.InetAddress sourceToBlock, ChannelPromise future)
ChannelFuture
once the operation completes.
The given ChannelFuture
will be notified and also returned.ChannelFuture block(java.net.InetAddress multicastAddress, java.net.InetAddress sourceToBlock)
ChannelFuture
once
the operation completes.
The given ChannelFuture
will be notified and also returned.ChannelFuture block(java.net.InetAddress multicastAddress, java.net.InetAddress sourceToBlock, ChannelPromise future)
ChannelFuture
once
the operation completes.
The given ChannelFuture
will be notified and also returned.Copyright © 2008–2018 The Netty Project. All rights reserved.