public abstract class GlowDatagramServer extends GlowNetworkServer
Modifier and Type | Field and Description |
---|---|
protected io.netty.bootstrap.Bootstrap |
bootstrap |
protected io.netty.channel.EventLoopGroup |
group |
latch
Constructor and Description |
---|
GlowDatagramServer(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) |
void |
shutdown() |
getProtocolProvider, getServer, onBindFailure, onBindSuccess
protected final io.netty.channel.EventLoopGroup group
protected final io.netty.bootstrap.Bootstrap bootstrap
public GlowDatagramServer(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 GlowNetworkServer
public void shutdown()
shutdown
in class GlowNetworkServer
Copyright © 2021. All rights reserved.