public class RakServerChannel extends ProxyChannel<io.netty.channel.socket.DatagramChannel> implements io.netty.channel.ServerChannel
channel, pipeline| Constructor and Description |
|---|
RakServerChannel(io.netty.channel.socket.DatagramChannel channel) |
RakServerChannel(io.netty.channel.socket.DatagramChannel channel,
java.util.function.Consumer<RakChannel> childConsumer) |
| Modifier and Type | Method and Description |
|---|---|
RakServerChannelConfig |
config() |
RakChildChannel |
createChildChannel(java.net.InetSocketAddress address,
long clientGuid,
int protocolVersion,
int mtu)
Create new child channel assigned to remote address.
|
RakChildChannel |
getChildChannel(java.net.SocketAddress address) |
void |
onCloseTriggered(io.netty.channel.ChannelPromise promise) |
boolean |
tryBlockAddress(java.net.InetAddress address,
long time,
java.util.concurrent.TimeUnit unit) |
alloc, attr, bind, bind, bytesBeforeUnwritable, bytesBeforeWritable, close, close, closeFuture, compareTo, connect, connect, connect, connect, correctPromise, deregister, deregister, disconnect, disconnect, eventLoop, flush, hasAttr, id, internalPipeline, isActive, isOpen, isRegistered, isWritable, localAddress, metadata, newChannelPipeline, newFailedFuture, newProgressivePromise, newPromise, newSucceededFuture, parent, pipeline, read, remoteAddress, unsafe, voidPromise, write, write, writeAndFlush, writeAndFlushclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitalloc, bytesBeforeUnwritable, bytesBeforeWritable, closeFuture, eventLoop, flush, id, isActive, isOpen, isRegistered, isWritable, localAddress, metadata, parent, pipeline, read, remoteAddress, unsafebind, bind, close, close, connect, connect, connect, connect, deregister, deregister, disconnect, disconnect, newFailedFuture, newProgressivePromise, newPromise, newSucceededFuture, voidPromise, write, write, writeAndFlush, writeAndFlushpublic RakServerChannel(io.netty.channel.socket.DatagramChannel channel)
public RakServerChannel(io.netty.channel.socket.DatagramChannel channel,
java.util.function.Consumer<RakChannel> childConsumer)
public RakChildChannel createChildChannel(java.net.InetSocketAddress address, long clientGuid, int protocolVersion, int mtu)
address - remote address of new connection.public RakChildChannel getChildChannel(java.net.SocketAddress address)
public void onCloseTriggered(io.netty.channel.ChannelPromise promise)
onCloseTriggered in class ProxyChannel<io.netty.channel.socket.DatagramChannel>public boolean tryBlockAddress(java.net.InetAddress address,
long time,
java.util.concurrent.TimeUnit unit)
public RakServerChannelConfig config()
config in interface io.netty.channel.Channelconfig in class ProxyChannel<io.netty.channel.socket.DatagramChannel>