public final class NioDatagramChannel extends AbstractNioChannel implements DatagramChannel
DatagramChannel.AbstractNioChannel.AbstractNioUnsafe, AbstractNioChannel.NioUnsafeAbstractChannel.AbstractUnsafeChannel.UnsafeflushFutureNotifier| Constructor and Description |
|---|
NioDatagramChannel() |
NioDatagramChannel(DatagramChannel socket) |
NioDatagramChannel(Integer id,
DatagramChannel socket) |
NioDatagramChannel(InternetProtocolFamily ipFamily) |
| 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.
|
protected void |
doBind(SocketAddress localAddress) |
protected void |
doClose() |
protected boolean |
doConnect(SocketAddress remoteAddress,
SocketAddress localAddress) |
protected void |
doDisconnect() |
protected void |
doFinishConnect() |
protected void |
doFlushMessageBuffer(io.netty.buffer.MessageBuf<Object> buf) |
protected int |
doReadMessages(io.netty.buffer.MessageBuf<Object> buf) |
protected int |
doWriteMessages(io.netty.buffer.MessageBuf<Object> buf,
boolean lastSpin) |
boolean |
isActive() |
boolean |
isConnected() |
protected DatagramChannel |
javaChannel() |
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) |
protected SocketAddress |
localAddress0() |
ChannelMetadata |
metadata()
|
protected io.netty.channel.socket.nio.AbstractNioMessageChannel.NioMessageUnsafe |
newUnsafe() |
protected SocketAddress |
remoteAddress0() |
doDeregister, doRegister, isCompatible, isFlushPending, isOpen, localAddress, remoteAddress, selectionKey, unsafebind, bind, close, close, closeFuture, compareTo, connect, connect, connect, connect, deregister, deregister, disconnect, disconnect, doFlushByteBuffer, doPreClose, equals, eventLoop, flush, flush, hashCode, id, invalidateLocalAddress, invalidateRemoteAddress, isRegistered, newFailedFuture, newFuture, newSucceededFuture, outboundByteBuffer, outboundMessageBuffer, parent, pipeline, toString, write, writeclone, finalize, getClass, notify, notifyAll, wait, wait, waitlocalAddress, remoteAddresscloseFuture, eventLoop, id, isOpen, isRegistered, outboundByteBuffer, outboundMessageBuffer, parent, pipeline, unsafebind, bind, close, close, connect, connect, connect, connect, deregister, deregister, disconnect, disconnect, flush, flush, write, writenewFailedFuture, newFuture, newSucceededFuturecompareTopublic NioDatagramChannel()
public NioDatagramChannel(InternetProtocolFamily ipFamily)
public NioDatagramChannel(DatagramChannel socket)
public NioDatagramChannel(Integer id, DatagramChannel socket)
public ChannelMetadata metadata()
Channelpublic DatagramChannelConfig config()
Channelconfig in interface Channelconfig in interface DatagramChannelpublic boolean isConnected()
isConnected in interface DatagramChannelprotected DatagramChannel javaChannel()
javaChannel in class AbstractNioChannelprotected SocketAddress localAddress0()
localAddress0 in class AbstractChannelprotected SocketAddress remoteAddress0()
remoteAddress0 in class AbstractChannelprotected void doBind(SocketAddress localAddress) throws Exception
doBind in class AbstractChannelExceptionprotected boolean doConnect(SocketAddress remoteAddress, SocketAddress localAddress) throws Exception
doConnect in class AbstractNioChannelExceptionprotected void doFinishConnect()
throws Exception
doFinishConnect in class AbstractNioChannelExceptionprotected void doDisconnect()
throws Exception
doDisconnect in class AbstractChannelExceptionprotected void doClose()
throws Exception
doClose in class AbstractChannelExceptionprotected int doReadMessages(io.netty.buffer.MessageBuf<Object> buf) throws Exception
Exceptionprotected int doWriteMessages(io.netty.buffer.MessageBuf<Object> buf, boolean lastSpin) throws Exception
Exceptionpublic ChannelFuture joinGroup(InetAddress multicastAddress)
DatagramChanneljoinGroup in interface DatagramChannelpublic ChannelFuture joinGroup(InetAddress multicastAddress, ChannelFuture future)
joinGroup in interface DatagramChannelpublic ChannelFuture joinGroup(InetSocketAddress multicastAddress, NetworkInterface networkInterface)
DatagramChanneljoinGroup in interface DatagramChannelpublic ChannelFuture joinGroup(InetSocketAddress multicastAddress, NetworkInterface networkInterface, ChannelFuture future)
joinGroup in interface DatagramChannelpublic ChannelFuture joinGroup(InetAddress multicastAddress, NetworkInterface networkInterface, InetAddress source)
joinGroup in interface DatagramChannelpublic ChannelFuture joinGroup(InetAddress multicastAddress, NetworkInterface networkInterface, InetAddress source, ChannelFuture future)
joinGroup in interface DatagramChannelpublic ChannelFuture leaveGroup(InetAddress multicastAddress)
DatagramChannelleaveGroup in interface DatagramChannelpublic ChannelFuture leaveGroup(InetAddress multicastAddress, ChannelFuture future)
leaveGroup in interface DatagramChannelpublic ChannelFuture leaveGroup(InetSocketAddress multicastAddress, NetworkInterface networkInterface)
DatagramChannelleaveGroup in interface DatagramChannelpublic ChannelFuture leaveGroup(InetSocketAddress multicastAddress, NetworkInterface networkInterface, ChannelFuture future)
leaveGroup in interface DatagramChannelpublic ChannelFuture leaveGroup(InetAddress multicastAddress, NetworkInterface networkInterface, InetAddress source)
DatagramChannelleaveGroup in interface DatagramChannelpublic ChannelFuture leaveGroup(InetAddress multicastAddress, NetworkInterface networkInterface, InetAddress source, ChannelFuture future)
leaveGroup in interface DatagramChannelpublic ChannelFuture block(InetAddress multicastAddress, NetworkInterface networkInterface, InetAddress sourceToBlock)
block in interface DatagramChannelpublic ChannelFuture block(InetAddress multicastAddress, NetworkInterface networkInterface, InetAddress sourceToBlock, ChannelFuture future)
block in interface DatagramChannelpublic ChannelFuture block(InetAddress multicastAddress, InetAddress sourceToBlock)
block in interface DatagramChannelpublic ChannelFuture block(InetAddress multicastAddress, InetAddress sourceToBlock, ChannelFuture future)
block in interface DatagramChannelprotected io.netty.channel.socket.nio.AbstractNioMessageChannel.NioMessageUnsafe newUnsafe()
newUnsafe in class AbstractChannelprotected void doFlushMessageBuffer(io.netty.buffer.MessageBuf<Object> buf) throws Exception
doFlushMessageBuffer in class AbstractChannelExceptionCopyright © 2008-2012 The Netty Project. All Rights Reserved.