public class OioSctpChannel extends AbstractChannel implements SctpChannel
| Modifier and Type | Class and Description |
|---|---|
static interface |
AbstractOioChannel.OioUnsafe |
AbstractChannel.AbstractUnsafeChannel.Unsafe| Modifier and Type | Field and Description |
|---|---|
protected boolean |
readSuspended |
flushFutureNotifier| Constructor and Description |
|---|
OioSctpChannel() |
OioSctpChannel(Channel parent,
Integer id,
SctpChannel ch) |
OioSctpChannel(SctpChannel ch) |
| Modifier and Type | Method and Description |
|---|---|
Set<SocketAddress> |
allLocalAddresses()
Return all local addresses of the SCTP channel.
|
Set<SocketAddress> |
allRemoteAddresses()
Return all remote addresses of the SCTP server channel.
|
Association |
association()
Returns the underlying SCTP association.
|
ChannelFuture |
bindAddress(InetAddress localAddress)
Bind a address to the already bound channel to enable multi-homing.
|
SctpChannelConfig |
config()
Returns the
SctpChannelConfig configuration of the channel. |
protected void |
doBind(SocketAddress localAddress) |
protected void |
doClose() |
protected void |
doConnect(SocketAddress remoteAddress,
SocketAddress localAddress) |
protected void |
doDeregister() |
protected void |
doDisconnect() |
protected void |
doFlushMessageBuffer(io.netty.buffer.MessageBuf<Object> buf) |
protected int |
doReadMessages(io.netty.buffer.MessageBuf<Object> buf) |
protected Runnable |
doRegister() |
protected void |
doWriteMessages(io.netty.buffer.MessageBuf<Object> buf) |
boolean |
isActive() |
protected boolean |
isCompatible(EventLoop loop) |
protected boolean |
isFlushPending() |
boolean |
isOpen() |
InetSocketAddress |
localAddress()
Returns the local address where this channel is bound to.
|
protected SocketAddress |
localAddress0() |
ChannelMetadata |
metadata()
|
protected io.netty.channel.socket.oio.AbstractOioMessageChannel.OioMessageUnsafe |
newUnsafe() |
InetSocketAddress |
remoteAddress()
Returns the remote address where this channel is connected to.
|
protected SocketAddress |
remoteAddress0() |
ChannelFuture |
unbindAddress(InetAddress localAddress)
Unbind the address from channel's multi-homing address list.
|
AbstractOioChannel.OioUnsafe |
unsafe()
Caution for transport implementations use only!
|
bind, 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, isRegistered, outboundByteBuffer, outboundMessageBuffer, parent, pipeline, unsafebind, bind, close, close, connect, connect, connect, connect, deregister, deregister, disconnect, disconnect, flush, flush, write, writenewFailedFuture, newFuture, newSucceededFuturecompareTopublic OioSctpChannel()
public OioSctpChannel(SctpChannel ch)
public OioSctpChannel(Channel parent, Integer id, SctpChannel ch)
public ChannelMetadata metadata()
Channelpublic SctpChannelConfig config()
SctpChannelSctpChannelConfig configuration of the channel.config in interface Channelconfig in interface SctpChannelprotected int doReadMessages(io.netty.buffer.MessageBuf<Object> buf) throws Exception
Exceptionprotected void doWriteMessages(io.netty.buffer.MessageBuf<Object> buf) throws Exception
Exceptionpublic Association association()
SctpChannelassociation in interface SctpChannelprotected SocketAddress localAddress0()
localAddress0 in class AbstractChannelpublic Set<SocketAddress> allLocalAddresses()
SctpChannelallLocalAddresses in interface SctpChannelprotected SocketAddress remoteAddress0()
remoteAddress0 in class AbstractChannelpublic Set<SocketAddress> allRemoteAddresses()
SctpChannelallRemoteAddresses in interface SctpChannelprotected void doBind(SocketAddress localAddress) throws Exception
doBind in class AbstractChannelExceptionprotected void doConnect(SocketAddress remoteAddress, SocketAddress localAddress) throws Exception
Exceptionprotected void doDisconnect()
throws Exception
doDisconnect in class AbstractChannelExceptionprotected void doClose()
throws Exception
doClose in class AbstractChannelExceptionpublic ChannelFuture bindAddress(InetAddress localAddress)
SctpChannelbindAddress in interface SctpChannelpublic ChannelFuture unbindAddress(InetAddress localAddress)
SctpChannelunbindAddress in interface SctpChannelprotected io.netty.channel.socket.oio.AbstractOioMessageChannel.OioMessageUnsafe newUnsafe()
newUnsafe in class AbstractChannelprotected void doFlushMessageBuffer(io.netty.buffer.MessageBuf<Object> buf) throws Exception
doFlushMessageBuffer in class AbstractChannelExceptionpublic InetSocketAddress localAddress()
ChannelSocketAddress is supposed to be down-cast into more concrete
type such as InetSocketAddress to retrieve the detailed
information.localAddress in interface ChannellocalAddress in class AbstractChannelnull if this channel is not bound.public 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 AbstractChannelnull 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.public AbstractOioChannel.OioUnsafe unsafe()
Channelunsafe in interface Channelunsafe in class AbstractChannelprotected boolean isCompatible(EventLoop loop)
isCompatible in class AbstractChannelprotected Runnable doRegister() throws Exception
doRegister in class AbstractChannelExceptionprotected void doDeregister()
throws Exception
doDeregister in class AbstractChannelExceptionprotected boolean isFlushPending()
isFlushPending in class AbstractChannelCopyright © 2008-2012 The Netty Project. All Rights Reserved.