@ParametersAreNonnullByDefault public class RakNetServer extends RakNet
bootstrap, closed, exceptionHandlers, guid, metrics, protocolVersion| Constructor and Description |
|---|
RakNetServer(InetSocketAddress bindAddress) |
RakNetServer(InetSocketAddress bindAddress,
int bindThreads) |
RakNetServer(InetSocketAddress bindAddress,
int bindThreads,
io.netty.channel.EventLoopGroup eventLoopGroup) |
RakNetServer(InetSocketAddress bindAddress,
int bindThreads,
io.netty.channel.EventLoopGroup eventLoopGroup,
boolean useProxyProtocol) |
addExceptionHandler, bind, clearExceptionHandlers, close, getBootstrap, getEventLoopGroup, getExceptionHandlers, getGuid, getMetrics, getProtocolVersion, isClosed, isRunning, nextEventLoop, removeExceptionHandler, setMetrics, setProtocolVersionpublic RakNetServer(InetSocketAddress bindAddress)
public RakNetServer(InetSocketAddress bindAddress, int bindThreads)
public RakNetServer(InetSocketAddress bindAddress, int bindThreads, io.netty.channel.EventLoopGroup eventLoopGroup)
public RakNetServer(InetSocketAddress bindAddress, int bindThreads, io.netty.channel.EventLoopGroup eventLoopGroup, boolean useProxyProtocol)
protected CompletableFuture<Void> bindInternal()
bindInternal in class RakNetpublic void send(InetSocketAddress address, io.netty.buffer.ByteBuf buffer)
public void onOpenConnectionRequest1(io.netty.channel.ChannelHandlerContext ctx,
io.netty.channel.socket.DatagramPacket packet)
public void block(InetAddress address)
public void block(InetAddress address, long timeout, TimeUnit timeUnit)
public boolean unblock(InetAddress address)
public boolean isBlocked(InetAddress address)
public void addProxiedAddress(InetSocketAddress address, InetSocketAddress presentAddress)
public InetSocketAddress getProxiedAddress(InetSocketAddress address)
public int getProxiedAddressSize()
public int getSessionCount()
@Nullable public RakNetServerSession getSession(InetSocketAddress address)
@Nonnegative public int getMaxConnections()
public void setMaxConnections(@Nonnegative int maxConnections)
public InetSocketAddress getBindAddress()
getBindAddress in class RakNetpublic RakNetServerListener getListener()
public void setListener(RakNetServerListener listener)
public boolean useProxyProtocol()
Copyright © 2018–2021. All rights reserved.