Package io.netty.channel.unix
Interface DomainDatagramChannel
- All Superinterfaces:
AttributeMap
,Channel
,ChannelOutboundInvoker
,Comparable<Channel>
,UnixChannel
- All Known Implementing Classes:
EpollDomainDatagramChannel
,KQueueDomainDatagramChannel
A
UnixChannel
that supports communication via
UNIX domain datagram sockets.-
Nested Class Summary
Nested classes/interfaces inherited from interface io.netty.channel.Channel
Channel.Unsafe
-
Method Summary
Modifier and TypeMethodDescriptionconfig()
Returns the configuration of this channel.boolean
Returntrue
if theDomainDatagramChannel
is connected to the remote peer.Returns the local address where this channel is bound to.Returns the remote address where this channel is connected to.Methods inherited from interface io.netty.util.AttributeMap
attr, hasAttr
Methods inherited from interface io.netty.channel.Channel
alloc, bytesBeforeUnwritable, bytesBeforeWritable, closeFuture, eventLoop, flush, id, isActive, isOpen, isRegistered, isWritable, metadata, parent, pipeline, read, unsafe
Methods inherited from interface io.netty.channel.ChannelOutboundInvoker
bind, bind, close, close, connect, connect, connect, connect, deregister, deregister, disconnect, disconnect, newFailedFuture, newProgressivePromise, newPromise, newSucceededFuture, voidPromise, write, write, writeAndFlush, writeAndFlush
Methods inherited from interface java.lang.Comparable
compareTo
Methods inherited from interface io.netty.channel.unix.UnixChannel
fd
-
Method Details
-
config
DomainDatagramChannelConfig config()Description copied from interface:Channel
Returns the configuration of this channel. -
isConnected
boolean isConnected()Returntrue
if theDomainDatagramChannel
is connected to the remote peer. -
localAddress
DomainSocketAddress localAddress()Description copied from interface:Channel
Returns the local address where this channel is bound to. The returnedSocketAddress
is supposed to be down-cast into more concrete type such asInetSocketAddress
to retrieve the detailed information.- Specified by:
localAddress
in interfaceChannel
- Returns:
- the local address of this channel.
null
if this channel is not bound.
-
remoteAddress
DomainSocketAddress remoteAddress()Description copied from interface:Channel
Returns the remote address where this channel is connected to. The returnedSocketAddress
is supposed to be down-cast into more concrete type such asInetSocketAddress
to retrieve the detailed information.- Specified by:
remoteAddress
in interfaceChannel
- Returns:
- the remote address of this 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
, useDefaultAddressedEnvelope.recipient()
to determine the origination of the received message as this method will returnnull
.
-