public class RconServer extends GlowSocketServer
bootstrap, bossGroup, channel, workerGroup
latch
Constructor and Description |
---|
RconServer(GlowServer server,
ProtocolProvider protocolProvider,
CountDownLatch latch,
String password)
Creates an instance.
|
Modifier and Type | Method and Description |
---|---|
io.netty.channel.ChannelFuture |
bind(InetSocketAddress address)
Bind the server on the specified address.
|
void |
onBindFailure(InetSocketAddress address,
Throwable t) |
void |
onBindSuccess(InetSocketAddress address) |
void |
shutdown()
Shut the Rcon server down.
|
getChannel
getProtocolProvider, getServer
public RconServer(GlowServer server, ProtocolProvider protocolProvider, CountDownLatch latch, String password)
server
- the associated GlowServerlatch
- The countdown latch used during server startup to wait for network server
binding.password
- the remote operator's passwordpublic io.netty.channel.ChannelFuture bind(InetSocketAddress address)
bind
in class GlowSocketServer
address
- The address.public void onBindSuccess(InetSocketAddress address)
onBindSuccess
in class GlowNetworkServer
public void onBindFailure(InetSocketAddress address, Throwable t)
onBindFailure
in class GlowNetworkServer
public void shutdown()
shutdown
in class GlowSocketServer
Copyright © 2021. All rights reserved.