Top Fields Constructors Methods
io.netty.channel.kqueue

public final Class KQueueServerSocketChannel

extends AbstractKQueueServerChannel
implements ServerSocketChannel
Class Inheritance
All Implemented Interfaces
io.netty.channel.socket.ServerSocketChannel, io.netty.channel.ServerChannel, io.netty.channel.Channel, java.lang.Comparable, io.netty.channel.ChannelOutboundInvoker, io.netty.util.AttributeMap
Annotations
@UnstableApi
Imports
io.netty.channel.Channel, .EventLoop, io.netty.channel.socket.ServerSocketChannel, io.netty.util.internal.UnstableApi, java.net.InetSocketAddress, .SocketAddress

Field Summary

Modifier and TypeField and Description
private final KQueueServerSocketChannelConfig

Constructor Summary

AccessConstructor and Description
public
public
pack-priv
pack-priv

Method Summary

Modifier and TypeMethod and Description
public KQueueServerSocketChannelConfig
protected void
protected boolean
isCompatible(EventLoop loop)

Overrides io.netty.channel.kqueue.AbstractKQueueServerChannel.isCompatible.

Return true if the given EventLoop is compatible with this instance.
public InetSocketAddress
protected Channel
newChildChannel(int fd, byte[] address, int offset, int len)

Implements abstract io.netty.channel.kqueue.AbstractKQueueServerChannel.newChildChannel.

public InetSocketAddress
Inherited from io.netty.channel.kqueue.AbstractKQueueServerChannel:
doConnectdoWritefilterOutboundMessagemetadatanewUnsaferemoteAddress0

Field Detail

configback to summary
private final KQueueServerSocketChannelConfig config

Constructor Detail

KQueueServerSocketChannelback to summary
public KQueueServerSocketChannel()
KQueueServerSocketChannelback to summary
public KQueueServerSocketChannel(int fd)
KQueueServerSocketChannelback to summary
pack-priv KQueueServerSocketChannel(BsdSocket fd)
KQueueServerSocketChannelback to summary
pack-priv KQueueServerSocketChannel(BsdSocket fd, boolean active)

Method Detail

configback to summary
public KQueueServerSocketChannelConfig config()

Implements abstract io.netty.channel.kqueue.AbstractKQueueChannel.config.

Implements io.netty.channel.socket.ServerSocketChannel.config, io.netty.channel.Channel.config.

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

Returns the configuration of this channel.

Annotations
@Override
doBindback to summary
protected void doBind(SocketAddress localAddress) throws Exception

Overrides io.netty.channel.kqueue.AbstractKQueueChannel.doBind.

Doc from io.netty.channel.AbstractChannel.doBind.

Bind the Channel to the SocketAddress

Annotations
@Override
isCompatibleback to summary
protected boolean isCompatible(EventLoop loop)

Overrides io.netty.channel.kqueue.AbstractKQueueServerChannel.isCompatible.

Doc from io.netty.channel.AbstractChannel.isCompatible.

Return true if the given EventLoop is compatible with this instance.

Annotations
@Override
localAddressback to summary
public InetSocketAddress localAddress()

Overrides io.netty.channel.AbstractChannel.localAddress.

Implements io.netty.channel.socket.ServerSocketChannel.localAddress, 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:InetSocketAddress

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

Annotations
@Override
newChildChannelback to summary
protected Channel newChildChannel(int fd, byte[] address, int offset, int len) throws Exception

Implements abstract io.netty.channel.kqueue.AbstractKQueueServerChannel.newChildChannel.

Annotations
@Override
remoteAddressback to summary
public InetSocketAddress remoteAddress()

Overrides io.netty.channel.AbstractChannel.remoteAddress.

Implements io.netty.channel.socket.ServerSocketChannel.remoteAddress, 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:InetSocketAddress

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