@ParametersAreNonnullByDefault public class RakNetClient extends RakNet
| Modifier and Type | Class and Description |
|---|---|
static class |
RakNetClient.PingEntry |
static class |
RakNetClient.PongEntry |
| Modifier and Type | Field and Description |
|---|---|
protected InetSocketAddress |
bindAddress |
protected RakNetClientSession |
session |
bootstrap, closed, exceptionHandlers, guid, metrics, protocolVersion| Constructor and Description |
|---|
RakNetClient() |
RakNetClient(InetSocketAddress bindAddress) |
RakNetClient(InetSocketAddress bindAddress,
io.netty.channel.EventLoopGroup eventLoopGroup) |
| Modifier and Type | Method and Description |
|---|---|
protected CompletableFuture<Void> |
bindInternal() |
void |
close(boolean force) |
RakNetClientSession |
connect(InetSocketAddress address) |
InetSocketAddress |
getBindAddress() |
RakNetClientSession |
getSession() |
protected io.netty.channel.EventLoop |
nextEventLoop() |
protected void |
onTick() |
void |
onUnconnectedPong(RakNetClient.PongEntry entry) |
CompletableFuture<RakNetPong> |
ping(InetSocketAddress address,
long timeout,
TimeUnit unit) |
addExceptionHandler, bind, clearExceptionHandlers, close, getBootstrap, getEventLoopGroup, getExceptionHandlers, getGuid, getMetrics, getProtocolVersion, isClosed, isRunning, removeExceptionHandler, setMetrics, 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 onUnconnectedPong(RakNetClient.PongEntry entry)
public InetSocketAddress getBindAddress()
getBindAddress in class RakNetpublic RakNetClientSession getSession()
protected io.netty.channel.EventLoop nextEventLoop()
nextEventLoop in class RakNetCopyright © 2018–2021. All rights reserved.