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 |
---|---|
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.
|
com.sun.nio.sctp.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, bind, bind, close, close, closeFuture, connect, connect, connect, connect, deregister, deregister, disconnect, disconnect, eventLoop, flush, isActive, isOpen, isRegistered, isWritable, metadata, newFailedFuture, newProgressivePromise, newPromise, newSucceededFuture, pipeline, read, unsafe, voidPromise, write, write, writeAndFlush, writeAndFlush
attr
SctpServerChannel parent()
Channel
com.sun.nio.sctp.Association association()
java.net.InetSocketAddress localAddress()
localAddress
in interface 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
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
.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
Copyright © 2008–2018 The Netty Project. All rights reserved.