Package net.glowstone.net
Class GlowSocketServer
java.lang.Object
net.glowstone.net.GlowNetworkServer
net.glowstone.net.GlowSocketServer
- Direct Known Subclasses:
GameServer,RconServer
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final io.netty.bootstrap.ServerBootstrapprotected final io.netty.channel.EventLoopGroupprotected io.netty.channel.Channelprotected final io.netty.channel.EventLoopGroupFields inherited from class net.glowstone.net.GlowNetworkServer
latch -
Constructor Summary
ConstructorsConstructorDescriptionGlowSocketServer(GlowServer server, ProtocolProvider protocolProvider, CountDownLatch latch) Creates an instance for the specified server. -
Method Summary
Modifier and TypeMethodDescriptionio.netty.channel.ChannelFuturebind(InetSocketAddress address) io.netty.channel.Channelvoidshutdown()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:
bindin classGlowNetworkServer
-
shutdown
public void shutdown()- Specified by:
shutdownin classGlowNetworkServer
-
getChannel
public io.netty.channel.Channel getChannel()
-