@ParametersAreNonnullByDefault public class RakNetServer extends RakNet
| Constructor and Description |
|---|
RakNetServer(InetSocketAddress bindAddress) |
RakNetServer(InetSocketAddress bindAddress,
int bindThreads) |
RakNetServer(InetSocketAddress bindAddress,
int bindThreads,
io.netty.channel.EventLoopGroup eventLoopGroup) |
| Modifier and Type | Method and Description |
|---|---|
protected CompletableFuture<Void> |
bindInternal() |
void |
block(InetAddress address) |
void |
block(InetAddress address,
long timeout,
TimeUnit timeUnit) |
void |
close() |
RakNetServerListener |
getListener() |
int |
getMaxConnections() |
RakNetServerSession |
getSession(InetSocketAddress address) |
int |
getSessionCount() |
protected void |
onTick() |
void |
send(InetSocketAddress address,
io.netty.buffer.ByteBuf buffer) |
void |
setListener(RakNetServerListener listener) |
void |
setMaxConnections(int maxConnections) |
boolean |
unblock(InetAddress address) |
bind, getBindAddress, getBootstrap, 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)
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 RakNetServerListener getListener()
public void setListener(RakNetServerListener listener)
public void send(InetSocketAddress address, io.netty.buffer.ByteBuf buffer)
public void close()
close in interface AutoCloseableclose in class RakNetCopyright © 2018–2019. All rights reserved.