Top Description Methods
io.netty.channel.unix

public Interface DomainDatagramChannel

extends UnixChannel, Channel
Imports
io.netty.channel.Channel

A UnixChannel that supports communication via UNIX domain datagram sockets.

Method Summary

Modifier and TypeMethod and Description
public DomainDatagramChannelConfig
config()

Redeclares io.netty.channel.Channel.config.

Returns the configuration of this channel.
public boolean
isConnected()

Return true if the DomainDatagramChannel is connected to the remote peer.

public DomainSocketAddress
localAddress()

Redeclares io.netty.channel.Channel.localAddress.

Returns the local address where this channel is bound to.
public DomainSocketAddress
remoteAddress()

Redeclares io.netty.channel.Channel.remoteAddress.

Returns the remote address where this channel is connected to.
Inherited from io.netty.channel.Channel:
allocbytesBeforeUnwritablebytesBeforeWritablecloseFutureeventLoopflushidisActiveisOpenisRegisteredisWritablemetadataparentpipelinereadunsafe
Inherited from io.netty.channel.unix.UnixChannel:
fd

Method Detail

configback to summary
public DomainDatagramChannelConfig config()

Redeclares io.netty.channel.Channel.config.

Doc from io.netty.channel.Channel.config.

Returns the configuration of this channel.

Annotations
@Override
isConnectedback to summary
public boolean isConnected()

Return true if the DomainDatagramChannel is connected to the remote peer.

localAddressback to summary
public DomainSocketAddress localAddress()

Redeclares io.netty.channel.Channel.localAddress.

Doc from io.netty.channel.Channel.localAddress.

Returns the local address where this channel is bound to. The returned SocketAddress is supposed to be down-cast into more concrete type such as InetSocketAddress to retrieve the detailed information.

Returns:DomainSocketAddress

the local address of this channel. null if this channel is not bound.

Annotations
@Override
remoteAddressback to summary
public DomainSocketAddress remoteAddress()

Redeclares io.netty.channel.Channel.remoteAddress.

Doc from io.netty.channel.Channel.remoteAddress.

Returns the remote address where this channel is connected to. The returned SocketAddress is supposed to be down-cast into more concrete type such as InetSocketAddress to retrieve the detailed information.

Returns:DomainSocketAddress

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, use DatagramPacket#recipient() to determine the origination of the received message as this method will return null.

Annotations
@Override