public interface DomainSocketChannel extends UnixChannel, DuplexChannel
UnixChannel
支持经由通信Unix Domain Socket 。
Channel.Unsafe
Modifier and Type | Method and Description |
---|---|
DomainSocketChannelConfig |
config()
返回此频道的配置。
|
DomainSocketAddress |
localAddress()
返回此通道绑定的本地地址。
|
DomainSocketAddress |
remoteAddress()
返回此通道连接到的远程地址。
|
fd
isInputShutdown, isOutputShutdown, isShutdown, shutdown, shutdown, shutdownInput, shutdownInput, shutdownOutput, shutdownOutput
alloc, bytesBeforeUnwritable, bytesBeforeWritable, closeFuture, eventLoop, flush, id, isActive, isOpen, isRegistered, isWritable, metadata, parent, 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
DomainSocketAddress remoteAddress()
Channel
SocketAddress
应该被转换为更具体的类型,如InetSocketAddress
以检索详细信息。
remoteAddress
在界面
Channel
null
。
如果此通道未连接,但它可以接收来自任意远程地址的消息(例如DatagramChannel
,请使用DefaultAddressedEnvelope.recipient()
来确定接收消息的来源,因为此方法将返回null
。
DomainSocketAddress localAddress()
Channel
SocketAddress
应该被转换为更具体的类型,如InetSocketAddress
以检索详细信息。
localAddress
接口
Channel
null
如果此通道未绑定。
DomainSocketChannelConfig config()
Channel
Copyright © 2008–2018 The Netty Project. All rights reserved.