Package io.netty.channel.sctp
Interface SctpServerChannel
- All Superinterfaces:
AttributeMap
,Channel
,ChannelOutboundInvoker
,Comparable<Channel>
,ServerChannel
- All Known Implementing Classes:
NioSctpServerChannel
,OioSctpServerChannel
A SCTP/IP
ServerChannel
which accepts incoming SCTP/IP associations.
Multi-homing address binding/unbinding can done through bindAddress/unbindAddress methods.
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.netty.channel.Channel
Channel.Unsafe
-
Method Summary
Modifier and TypeMethodDescriptionReturn all local addresses of the SCTP server channel.bindAddress
(InetAddress localAddress) Bind a address to the already bound channel to enable multi-homing.bindAddress
(InetAddress localAddress, ChannelPromise promise) Bind a address to the already bound channel to enable multi-homing.config()
Returns theSctpServerChannelConfig
configuration of the channel.Return the (primary) local address of the SCTP server channel.unbindAddress
(InetAddress localAddress) Unbind the address from channel's multi-homing address list.unbindAddress
(InetAddress localAddress, ChannelPromise promise) Unbind the address from channel's multi-homing address list.Methods inherited from interface io.netty.util.AttributeMap
attr, hasAttr
Methods inherited from interface io.netty.channel.Channel
alloc, bytesBeforeUnwritable, bytesBeforeWritable, closeFuture, eventLoop, flush, id, isActive, isOpen, isRegistered, isWritable, metadata, parent, pipeline, read, remoteAddress, unsafe
Methods inherited from interface io.netty.channel.ChannelOutboundInvoker
bind, bind, close, close, connect, connect, connect, connect, deregister, deregister, disconnect, disconnect, newFailedFuture, newProgressivePromise, newPromise, newSucceededFuture, voidPromise, write, write, writeAndFlush, writeAndFlush
Methods inherited from interface java.lang.Comparable
compareTo
-
Method Details
-
config
SctpServerChannelConfig config()Returns theSctpServerChannelConfig
configuration of the channel. -
localAddress
InetSocketAddress localAddress()Return the (primary) local address of the SCTP server channel. Please note that, this return the first local address in the underlying SCTP ServerChannel's local address iterator to support Netty Channel API. In other words, its the application's responsibility to keep track of it's local primary address. (To set a local address as primary, the application can request by calling local SCTP stack, with SctpStandardSocketOption.SCTP_PRIMARY_ADDR option).- Specified by:
localAddress
in interfaceChannel
- Returns:
- the local address of this channel.
null
if this channel is not bound.
-
allLocalAddresses
Set<InetSocketAddress> allLocalAddresses()Return all local addresses of the SCTP server channel. Please note that, it will return more than one address if this channel is using multi-homing -
bindAddress
Bind a address to the already bound channel to enable multi-homing. The Channel must be bound and yet to be connected. -
bindAddress
Bind a address to the already bound channel to enable multi-homing. The Channel must be bound and yet to be connected. Will notify the givenChannelPromise
and return aChannelFuture
-
unbindAddress
Unbind the address from channel's multi-homing address list. The address should be added already in multi-homing address list. -
unbindAddress
Unbind the address from channel's multi-homing address list. The address should be added already in multi-homing address list. Will notify the givenChannelPromise
and return aChannelFuture
-