public class NioSctpServerChannel extends AbstractNioChannel implements SctpServerChannel
AbstractNioChannel.AbstractNioUnsafe, AbstractNioChannel.NioUnsafeAbstractChannel.AbstractUnsafeChannel.UnsafeflushFutureNotifier| Constructor and Description |
|---|
NioSctpServerChannel() |
| Modifier and Type | Method and Description |
|---|---|
Set<SocketAddress> |
allLocalAddresses()
Return all local addresses of the SCTP server channel.
|
SctpServerChannelConfig |
config()
Returns the
SctpServerChannelConfig configuration of the 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() |
protected SctpServerChannel |
javaChannel() |
protected SocketAddress |
localAddress0() |
ChannelMetadata |
metadata()
|
protected io.netty.channel.socket.nio.AbstractNioMessageChannel.NioMessageUnsafe |
newUnsafe() |
InetSocketAddress |
remoteAddress()
Returns the remote address where this channel is connected to.
|
protected SocketAddress |
remoteAddress0() |
doDeregister, doRegister, isCompatible, isFlushPending, isOpen, localAddress, 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, waitlocalAddresscloseFuture, 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 ChannelMetadata metadata()
Channelpublic Set<SocketAddress> allLocalAddresses()
SctpServerChannelallLocalAddresses in interface SctpServerChannelpublic SctpServerChannelConfig config()
SctpServerChannelSctpServerChannelConfig configuration of the channel.config in interface Channelconfig in interface SctpServerChannelpublic InetSocketAddress remoteAddress()
ChannelSocketAddress is supposed to be down-cast into more
concrete type such as InetSocketAddress to retrieve the detailed
information.remoteAddress in interface ChannelremoteAddress in class AbstractNioChannelnull 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.protected SctpServerChannel javaChannel()
javaChannel in class AbstractNioChannelprotected SocketAddress localAddress0()
localAddress0 in class AbstractChannelprotected void doBind(SocketAddress localAddress) throws Exception
doBind in class AbstractChannelExceptionprotected void doClose()
throws Exception
doClose in class AbstractChannelExceptionprotected int doReadMessages(io.netty.buffer.MessageBuf<Object> buf) throws Exception
Exceptionprotected boolean doConnect(SocketAddress remoteAddress, SocketAddress localAddress) throws Exception
doConnect in class AbstractNioChannelExceptionprotected void doFinishConnect()
throws Exception
doFinishConnect in class AbstractNioChannelExceptionprotected SocketAddress remoteAddress0()
remoteAddress0 in class AbstractChannelprotected void doDisconnect()
throws Exception
doDisconnect in class AbstractChannelExceptionprotected int doWriteMessages(io.netty.buffer.MessageBuf<Object> buf, boolean lastSpin) throws Exception
Exceptionprotected 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.