Package net.glowstone.net
Class GlowSocketServer
java.lang.Object
net.glowstone.net.GlowNetworkServer
net.glowstone.net.GlowSocketServer
- Direct Known Subclasses:
GameServer
,RconServer
-
Field Summary
Modifier and TypeFieldDescriptionprotected final io.netty.bootstrap.ServerBootstrap
protected final io.netty.channel.EventLoopGroup
protected io.netty.channel.Channel
protected final io.netty.channel.EventLoopGroup
Fields inherited from class net.glowstone.net.GlowNetworkServer
latch
-
Constructor Summary
ConstructorDescriptionGlowSocketServer
(GlowServer server, ProtocolProvider protocolProvider, CountDownLatch latch) Creates an instance for the specified server. -
Method Summary
Modifier and TypeMethodDescriptionio.netty.channel.ChannelFuture
bind
(InetSocketAddress address) io.netty.channel.Channel
void
shutdown()
Methods inherited from class net.glowstone.net.GlowNetworkServer
getProtocolProvider, getServer, onBindFailure, onBindSuccess
-
Field Details
-
bossGroup
protected final io.netty.channel.EventLoopGroup bossGroup -
workerGroup
protected final io.netty.channel.EventLoopGroup workerGroup -
bootstrap
protected final io.netty.bootstrap.ServerBootstrap bootstrap -
channel
protected io.netty.channel.Channel channel
-
-
Constructor Details
-
GlowSocketServer
Creates an instance for the specified server.- Parameters:
server
- the associated GlowServerlatch
- The countdown latch used during server startup to wait for network server binding.
-
-
Method Details
-
bind
- Specified by:
bind
in classGlowNetworkServer
-
shutdown
public void shutdown()- Specified by:
shutdown
in classGlowNetworkServer
-
getChannel
public io.netty.channel.Channel getChannel()
-