@ParametersAreNonnullByDefault public abstract class RakNet extends Object implements AutoCloseable
| Modifier and Type | Field and Description |
|---|---|
protected io.netty.bootstrap.Bootstrap |
bootstrap |
protected AtomicBoolean |
closed |
protected long |
guid |
protected int |
protocolVersion |
| Modifier and Type | Method and Description |
|---|---|
CompletableFuture<Void> |
bind() |
protected abstract CompletableFuture<Void> |
bindInternal() |
void |
close() |
void |
close(boolean force) |
abstract InetSocketAddress |
getBindAddress() |
io.netty.bootstrap.Bootstrap |
getBootstrap() |
protected io.netty.channel.EventLoopGroup |
getEventLoopGroup() |
long |
getGuid() |
int |
getProtocolVersion() |
boolean |
isClosed() |
boolean |
isRunning() |
protected abstract void |
onTick() |
void |
setProtocolVersion(int protocolVersion) |
protected final long guid
protected final io.netty.bootstrap.Bootstrap bootstrap
protected int protocolVersion
protected final AtomicBoolean closed
public CompletableFuture<Void> bind()
public void close()
close in interface AutoCloseablepublic void close(boolean force)
protected abstract CompletableFuture<Void> bindInternal()
protected abstract void onTick()
public boolean isRunning()
public boolean isClosed()
public io.netty.bootstrap.Bootstrap getBootstrap()
@Nonnegative public int getProtocolVersion()
public void setProtocolVersion(@Nonnegative int protocolVersion)
public abstract InetSocketAddress getBindAddress()
public long getGuid()
protected io.netty.channel.EventLoopGroup getEventLoopGroup()
Copyright © 2018–2021. All rights reserved.