public abstract class GlowSocketServer extends GlowNetworkServer
| Modifier and Type | Field and Description |
|---|---|
protected io.netty.bootstrap.ServerBootstrap |
bootstrap |
protected io.netty.channel.EventLoopGroup |
bossGroup |
protected io.netty.channel.Channel |
channel |
protected io.netty.channel.EventLoopGroup |
workerGroup |
latch| Constructor and Description |
|---|
GlowSocketServer(GlowServer server,
ProtocolProvider protocolProvider,
CountDownLatch latch)
Creates an instance for the specified server.
|
| Modifier and Type | Method and Description |
|---|---|
io.netty.channel.ChannelFuture |
bind(InetSocketAddress address) |
io.netty.channel.Channel |
getChannel() |
void |
shutdown() |
getProtocolProvider, getServer, onBindFailure, onBindSuccessprotected final io.netty.channel.EventLoopGroup bossGroup
protected final io.netty.channel.EventLoopGroup workerGroup
protected final io.netty.bootstrap.ServerBootstrap bootstrap
protected io.netty.channel.Channel channel
public GlowSocketServer(GlowServer server, ProtocolProvider protocolProvider, CountDownLatch latch)
server - the associated GlowServerlatch - The countdown latch used during server startup to wait for network server
binding.public io.netty.channel.ChannelFuture bind(InetSocketAddress address)
bind in class GlowNetworkServerpublic void shutdown()
shutdown in class GlowNetworkServerpublic io.netty.channel.Channel getChannel()
Copyright © 2021. All rights reserved.