public interface SctpChannel extends Channel
Channel
接口。
SctpChannel是一种面向消息的连接传输,支持多流和多归属。
Channel.Unsafe
Modifier and Type | Method and Description |
---|---|
java.util.Set<java.net.InetSocketAddress> |
allLocalAddresses()
返回SCTP通道的所有本地地址。
|
java.util.Set<java.net.InetSocketAddress> |
allRemoteAddresses()
返回SCTP服务器通道的所有远程地址。
|
com.sun.nio.sctp.Association |
association()
返回底层的SCTP关联。
|
ChannelFuture |
bindAddress(java.net.InetAddress localAddress)
将地址绑定到已绑定的通道以启用多宿主。
|
ChannelFuture |
bindAddress(java.net.InetAddress localAddress, ChannelPromise promise)
将地址绑定到已绑定的通道以启用多宿主。
|
SctpChannelConfig |
config()
返回通道的 SctpChannelConfig 配置。
|
java.net.InetSocketAddress |
localAddress()
返回SCTP通道的(主)本地地址。
|
SctpServerChannel |
parent()
返回此频道的父级。
|
java.net.InetSocketAddress |
remoteAddress()
返回SCTP通道的(主)远程地址。
|
ChannelFuture |
unbindAddress(java.net.InetAddress localAddress)
从通道的多址地址列表中解除绑定地址。
|
ChannelFuture |
unbindAddress(java.net.InetAddress localAddress, ChannelPromise promise)
从通道的多址地址列表中解除绑定地址。
|
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
com.sun.nio.sctp.Association association()
java.net.InetSocketAddress localAddress()
localAddress
在界面
Channel
null
如果这个频道没有绑定。
java.util.Set<java.net.InetSocketAddress> allLocalAddresses()
SctpChannelConfig config()
SctpChannelConfig
配置。
java.net.InetSocketAddress remoteAddress()
remoteAddress
在界面
Channel
null
如果此通道未连接。
如果此通道未连接,但它可以接收来自任意远程地址的消息(例如DatagramChannel
,请使用DefaultAddressedEnvelope.recipient()
来确定接收消息的来源,因为此方法将返回null
。
java.util.Set<java.net.InetSocketAddress> allRemoteAddresses()
ChannelFuture bindAddress(java.net.InetAddress localAddress)
ChannelFuture bindAddress(java.net.InetAddress localAddress, ChannelPromise promise)
ChannelFuture unbindAddress(java.net.InetAddress localAddress)
ChannelFuture unbindAddress(java.net.InetAddress localAddress, ChannelPromise promise)
Copyright © 2008–2018 The Netty Project. All rights reserved.