@ParametersAreNonnullByDefault public class RakNetClient extends RakNet
| Modifier and Type | Field and Description |
|---|---|
protected InetSocketAddress |
bindAddress |
protected RakNetClientSession |
session |
bootstrap, closed, guid, protocolVersion| Constructor and Description |
|---|
RakNetClient() |
RakNetClient(InetSocketAddress bindAddress) |
RakNetClient(InetSocketAddress bindAddress,
io.netty.channel.EventLoopGroup eventLoopGroup) |
| Modifier and Type | Method and Description |
|---|---|
void |
addExceptionHandler(String handlerId,
Consumer<Throwable> handler) |
protected CompletableFuture<Void> |
bindInternal() |
void |
clearExceptionHandlers() |
void |
close(boolean force) |
RakNetClientSession |
connect(InetSocketAddress address) |
InetSocketAddress |
getBindAddress() |
Collection<Consumer<Throwable>> |
getExceptionHandlers() |
protected void |
onTick() |
CompletableFuture<RakNetPong> |
ping(InetSocketAddress address,
long timeout,
TimeUnit unit) |
void |
removeExceptionHandler(String handlerId) |
bind, close, getBootstrap, getEventLoopGroup, getGuid, getProtocolVersion, isClosed, isRunning, setProtocolVersionprotected InetSocketAddress bindAddress
protected RakNetClientSession session
public RakNetClient()
public RakNetClient(InetSocketAddress bindAddress)
public RakNetClient(@Nullable InetSocketAddress bindAddress, io.netty.channel.EventLoopGroup eventLoopGroup)
protected CompletableFuture<Void> bindInternal()
bindInternal in class RakNetpublic RakNetClientSession connect(InetSocketAddress address)
public CompletableFuture<RakNetPong> ping(InetSocketAddress address, long timeout, TimeUnit unit)
public void removeExceptionHandler(String handlerId)
public void clearExceptionHandlers()
public Collection<Consumer<Throwable>> getExceptionHandlers()
public InetSocketAddress getBindAddress()
getBindAddress in class RakNetCopyright © 2018–2021. All rights reserved.