public class NioSctpServerChannel extends io.netty.channel.nio.AbstractNioMessageChannel implements SctpServerChannel
SctpServerChannel implementation which use non-blocking mode to accept new
connections and create the NioSctpChannel for them.
Be aware that not all operations systems support SCTP. Please refer to the documentation of your operation system,
to understand what you need to do to use it. Also this feature is only supported on Java 7+.io.netty.channel.nio.AbstractNioChannel.AbstractNioUnsafe, io.netty.channel.nio.AbstractNioChannel.NioUnsafe| Constructor and Description |
|---|
NioSctpServerChannel()
Create a new instance
|
| Modifier and Type | Method and Description |
|---|---|
Set<InetSocketAddress> |
allLocalAddresses()
Return all local addresses of the SCTP server channel.
|
io.netty.channel.ChannelFuture |
bindAddress(InetAddress localAddress)
Bind a address to the already bound channel to enable multi-homing.
|
io.netty.channel.ChannelFuture |
bindAddress(InetAddress localAddress,
io.netty.channel.ChannelPromise promise)
Bind a address to the already bound channel to enable multi-homing.
|
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 int |
doReadMessages(List<Object> buf) |
protected boolean |
doWriteMessage(Object msg,
io.netty.channel.ChannelOutboundBuffer in) |
protected Object |
filterOutboundMessage(Object msg) |
boolean |
isActive() |
protected SctpServerChannel |
javaChannel() |
InetSocketAddress |
localAddress()
Return the (primary) local address of the SCTP server channel.
|
protected SocketAddress |
localAddress0() |
io.netty.channel.ChannelMetadata |
metadata() |
InetSocketAddress |
remoteAddress() |
protected SocketAddress |
remoteAddress0() |
io.netty.channel.ChannelFuture |
unbindAddress(InetAddress localAddress)
Unbind the address from channel's multi-homing address list.
|
io.netty.channel.ChannelFuture |
unbindAddress(InetAddress localAddress,
io.netty.channel.ChannelPromise promise)
Unbind the address from channel's multi-homing address list.
|
closeOnReadError, continueOnWriteError, continueReading, doBeginRead, doWrite, newUnsafeclearReadPending, doDeregister, doRegister, eventLoop, isCompatible, isOpen, isReadPending, newDirectBuffer, newDirectBuffer, selectionKey, setReadPending, unsafealloc, bind, bind, bytesBeforeUnwritable, bytesBeforeWritable, close, close, closeFuture, compareTo, connect, connect, connect, connect, deregister, deregister, disconnect, disconnect, doShutdownOutput, equals, flush, hashCode, id, invalidateLocalAddress, invalidateRemoteAddress, isRegistered, isWritable, maxMessagesPerWrite, newChannelPipeline, newFailedFuture, newId, newProgressivePromise, newPromise, newSucceededFuture, parent, pipeline, read, toString, validateFileRegion, voidPromise, write, write, writeAndFlush, writeAndFlushclone, finalize, getClass, notify, notifyAll, wait, wait, waitalloc, bytesBeforeUnwritable, bytesBeforeWritable, closeFuture, eventLoop, flush, id, isOpen, isRegistered, isWritable, parent, pipeline, read, unsafebind, bind, close, close, connect, connect, connect, connect, deregister, deregister, disconnect, disconnect, newFailedFuture, newProgressivePromise, newPromise, newSucceededFuture, voidPromise, write, write, writeAndFlush, writeAndFlushcompareTopublic io.netty.channel.ChannelMetadata metadata()
metadata in interface io.netty.channel.Channelpublic Set<InetSocketAddress> allLocalAddresses()
SctpServerChannelallLocalAddresses in interface SctpServerChannelpublic SctpServerChannelConfig config()
SctpServerChannelSctpServerChannelConfig configuration of the channel.config in interface io.netty.channel.Channelconfig in interface SctpServerChannelpublic boolean isActive()
isActive in interface io.netty.channel.Channelpublic InetSocketAddress remoteAddress()
remoteAddress in interface io.netty.channel.ChannelremoteAddress in class io.netty.channel.AbstractChannelpublic InetSocketAddress localAddress()
SctpServerChannellocalAddress in interface io.netty.channel.ChannellocalAddress in interface SctpServerChannellocalAddress in class io.netty.channel.AbstractChannelprotected SctpServerChannel javaChannel()
javaChannel in class io.netty.channel.nio.AbstractNioChannelprotected SocketAddress localAddress0()
localAddress0 in class io.netty.channel.AbstractChannelprotected void doBind(SocketAddress localAddress) throws Exception
doBind in class io.netty.channel.AbstractChannelExceptionprotected void doClose()
throws Exception
doClose in class io.netty.channel.nio.AbstractNioChannelExceptionprotected int doReadMessages(List<Object> buf) throws Exception
doReadMessages in class io.netty.channel.nio.AbstractNioMessageChannelExceptionpublic io.netty.channel.ChannelFuture bindAddress(InetAddress localAddress)
SctpServerChannelbindAddress in interface SctpServerChannelpublic io.netty.channel.ChannelFuture bindAddress(InetAddress localAddress, io.netty.channel.ChannelPromise promise)
SctpServerChannelChannelPromise and return a ChannelFuturebindAddress in interface SctpServerChannelpublic io.netty.channel.ChannelFuture unbindAddress(InetAddress localAddress)
SctpServerChannelunbindAddress in interface SctpServerChannelpublic io.netty.channel.ChannelFuture unbindAddress(InetAddress localAddress, io.netty.channel.ChannelPromise promise)
SctpServerChannelChannelPromise and return a ChannelFutureunbindAddress in interface SctpServerChannelprotected boolean doConnect(SocketAddress remoteAddress, SocketAddress localAddress) throws Exception
doConnect in class io.netty.channel.nio.AbstractNioChannelExceptionprotected void doFinishConnect()
throws Exception
doFinishConnect in class io.netty.channel.nio.AbstractNioChannelExceptionprotected SocketAddress remoteAddress0()
remoteAddress0 in class io.netty.channel.AbstractChannelprotected void doDisconnect()
throws Exception
doDisconnect in class io.netty.channel.AbstractChannelExceptionprotected boolean doWriteMessage(Object msg, io.netty.channel.ChannelOutboundBuffer in) throws Exception
doWriteMessage in class io.netty.channel.nio.AbstractNioMessageChannelExceptionCopyright © 2008–2025 The Netty Project. All rights reserved.