public interface SctpServerChannel extends ServerChannel
ServerChannel
。
多归属地址绑定/解除绑定可以通过bindAddress / unbindAddress方法完成。
Channel.Unsafe
Modifier and Type | Method and Description |
---|---|
java.util.Set<java.net.InetSocketAddress> |
allLocalAddresses()
返回SCTP服务器通道的所有本地地址。
|
ChannelFuture |
bindAddress(java.net.InetAddress localAddress)
将地址绑定到已绑定的通道以启用多宿主。
|
ChannelFuture |
bindAddress(java.net.InetAddress localAddress, ChannelPromise promise)
将地址绑定到已绑定的通道以启用多宿主。
|
SctpServerChannelConfig |
config()
返回频道的 SctpServerChannelConfig 配置。
|
java.net.InetSocketAddress |
localAddress()
返回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, parent, pipeline, read, remoteAddress, unsafe
attr, hasAttr
bind, bind, close, close, connect, connect, connect, connect, deregister, deregister, disconnect, disconnect, newFailedFuture, newProgressivePromise, newPromise, newSucceededFuture, voidPromise, write, write, writeAndFlush, writeAndFlush
SctpServerChannelConfig config()
SctpServerChannelConfig
配置。
java.net.InetSocketAddress localAddress()
localAddress
,界面
Channel
null
如果这个频道没有绑定。
java.util.Set<java.net.InetSocketAddress> allLocalAddresses()
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.