@ParametersAreNonnullByDefault public class RakNetServer extends RakNet
| Constructor and Description |
|---|
RakNetServer(InetSocketAddress bindAddress) |
RakNetServer(InetSocketAddress bindAddress,
int maxThreads) |
RakNetServer(InetSocketAddress bindAddress,
int maxThreads,
ScheduledExecutorService scheduler) |
RakNetServer(InetSocketAddress bindAddress,
int maxThreads,
ScheduledExecutorService scheduler,
Executor executor) |
| Modifier and Type | Method and Description |
|---|---|
protected CompletableFuture<Void> |
bindInternal() |
boolean |
block(InetAddress address) |
void |
close() |
RakNetServerListener |
getListener() |
int |
getMaxConnections() |
int |
getSessionCount() |
protected void |
onTick() |
void |
setListener(RakNetServerListener listener) |
void |
setMaxConnections(int maxConnections) |
boolean |
unblock(InetAddress address) |
bind, getBindAddress, getBootstrap, getProtocolVersion, isRunning, setProtocolVersionpublic RakNetServer(InetSocketAddress bindAddress)
public RakNetServer(InetSocketAddress bindAddress, int maxThreads)
public RakNetServer(InetSocketAddress bindAddress, int maxThreads, ScheduledExecutorService scheduler)
public RakNetServer(InetSocketAddress bindAddress, int maxThreads, ScheduledExecutorService scheduler, Executor executor)
protected CompletableFuture<Void> bindInternal()
bindInternal in class RakNetpublic boolean block(InetAddress address)
public boolean unblock(InetAddress address)
public int getSessionCount()
@Nonnegative public int getMaxConnections()
public void setMaxConnections(@Nonnegative int maxConnections)
public RakNetServerListener getListener()
public void setListener(RakNetServerListener listener)
public void close()
close in interface AutoCloseableclose in class RakNetCopyright © 2018–2019. All rights reserved.