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
限定符和类型 | 方法和说明 |
---|---|
java.util.Set<java.net.InetSocketAddress> |
allLocalAddresses()
Return all local addresses of the SCTP channel.
|
java.util.Set<java.net.InetSocketAddress> |
allRemoteAddresses()
Return all remote addresses of the SCTP server channel.
|
Association |
association()
Returns the underlying SCTP association.
|
ChannelFuture |
bindAddress(java.net.InetAddress localAddress)
Bind a address to the already bound channel to enable multi-homing.
|
ChannelFuture |
bindAddress(java.net.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. |
java.net.InetSocketAddress |
localAddress()
Return the (primary) local address of the SCTP channel.
|
SctpServerChannel |
parent()
Returns the parent of this channel.
|
java.net.InetSocketAddress |
remoteAddress()
Return the (primary) remote address of the SCTP channel.
|
ChannelFuture |
unbindAddress(java.net.InetAddress localAddress)
Unbind the address from channel's multi-homing address list.
|
ChannelFuture |
unbindAddress(java.net.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
SctpServerChannel parent()
Channel
Association association()
java.net.InetSocketAddress localAddress()
localAddress
在接口中 Channel
null
if this channel is not bound.java.util.Set<java.net.InetSocketAddress> allLocalAddresses()
SctpChannelConfig config()
SctpChannelConfig
configuration of the channel.java.net.InetSocketAddress remoteAddress()
remoteAddress
在接口中 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
.java.util.Set<java.net.InetSocketAddress> allRemoteAddresses()
ChannelFuture bindAddress(java.net.InetAddress localAddress)
ChannelFuture bindAddress(java.net.InetAddress localAddress, ChannelPromise promise)
ChannelPromise
and return a ChannelFuture
ChannelFuture unbindAddress(java.net.InetAddress localAddress)
ChannelFuture unbindAddress(java.net.InetAddress localAddress, ChannelPromise promise)
ChannelPromise
and return a ChannelFuture