@ParametersAreNonnullByDefault public class RakNetServer extends RakNet
bootstrap, closed, guid, 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) |
| Modifier and Type | Method and Description |
|---|---|
void |
addExceptionHandler(String handlerId,
Consumer<Throwable> handler) |
protected CompletableFuture<Void> |
bindInternal() |
void |
block(InetAddress address) |
void |
block(InetAddress address,
long timeout,
TimeUnit timeUnit) |
void |
clearExceptionHandlers() |
void |
close(boolean force) |
InetSocketAddress |
getBindAddress() |
Collection<Consumer<Throwable>> |
getExceptionHandlers() |
RakNetServerListener |
getListener() |
int |
getMaxConnections() |
RakNetServerSession |
getSession(InetSocketAddress address) |
int |
getSessionCount() |
protected void |
onTick() |
void |
removeExceptionHandler(String handlerId) |
void |
send(InetSocketAddress address,
io.netty.buffer.ByteBuf buffer) |
void |
setListener(RakNetServerListener listener) |
void |
setMaxConnections(int maxConnections) |
boolean |
unblock(InetAddress address) |
bind, close, getBootstrap, getEventLoopGroup, getGuid, getProtocolVersion, isClosed, isRunning, 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 block(InetAddress address)
public void block(InetAddress address, long timeout, TimeUnit timeUnit)
public boolean unblock(InetAddress address)
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 void send(InetSocketAddress address, io.netty.buffer.ByteBuf buffer)
public void removeExceptionHandler(String handlerId)
public void clearExceptionHandlers()
public Collection<Consumer<Throwable>> getExceptionHandlers()
Copyright © 2018–2021. All rights reserved.