public interface SctpChannel extends Channel
Channel
interface for single SCTP association.
The SctpChannel is a message-oriented, connected transport which supports multi-streaming and multi-homing.
Channel.Unsafe
Modifier and Type | Method and Description |
---|---|
Set<InetSocketAddress> |
allLocalAddresses()
Return all local addresses of the SCTP channel.
|
Set<InetSocketAddress> |
allRemoteAddresses()
Return all remote addresses of the SCTP server channel.
|
com.sun.nio.sctp.Association |
association()
Returns the underlying SCTP association.
|
ChannelFuture |
bindAddress(InetAddress localAddress)
Bind a address to the already bound channel to enable multi-homing.
|
ChannelFuture |
bindAddress(InetAddress localAddress,
ChannelPromise promise)
Bind a address to the already bound channel to enable multi-homing.
|
SctpChannelConfig |
config()
Returns the
SctpChannelConfig configuration of the channel. |
InetSocketAddress |
localAddress()
Return the (primary) local address of the SCTP channel.
|
SctpServerChannel |
parent()
Returns the parent of this channel.
|
InetSocketAddress |
remoteAddress()
Return the (primary) remote address of the SCTP channel.
|
ChannelFuture |
unbindAddress(InetAddress localAddress)
Unbind the address from channel's multi-homing address list.
|
ChannelFuture |
unbindAddress(InetAddress localAddress,
ChannelPromise promise)
Unbind the address from channel's multi-homing address list.
|
alloc, bytesBeforeUnwritable, bytesBeforeWritable, closeFuture, eventLoop, flush, id, isActive, isOpen, isRegistered, isWritable, metadata, pipeline, read, unsafe
attr, hasAttr
bind, bind, close, close, connect, connect, connect, connect, deregister, deregister, disconnect, disconnect, newFailedFuture, newProgressivePromise, newPromise, newSucceededFuture, voidPromise, write, write, writeAndFlush, writeAndFlush
compareTo
SctpServerChannel parent()
Channel
com.sun.nio.sctp.Association association()
InetSocketAddress localAddress()
localAddress
in interface Channel
null
if this channel is not bound.Set<InetSocketAddress> allLocalAddresses()
SctpChannelConfig config()
SctpChannelConfig
configuration of the channel.InetSocketAddress remoteAddress()
remoteAddress
in interface Channel
null
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 DefaultAddressedEnvelope.recipient()
to determine
the origination of the received message as this method will
return null
.Set<InetSocketAddress> allRemoteAddresses()
ChannelFuture bindAddress(InetAddress localAddress)
ChannelFuture bindAddress(InetAddress localAddress, ChannelPromise promise)
ChannelPromise
and return a ChannelFuture
ChannelFuture unbindAddress(InetAddress localAddress)
ChannelFuture unbindAddress(InetAddress localAddress, ChannelPromise promise)
ChannelPromise
and return a ChannelFuture
Copyright © 2008–2017 The Netty Project. All rights reserved.