public class TCPServer extends ReliableServer
bootstrap, channelFuture, channelInitializer| Constructor and Description |
|---|
TCPServer(io.netty.channel.ChannelInitializer<io.netty.channel.Channel> channelInitializer)
Create a new TCP server.
|
TCPServer(io.netty.channel.ChannelInitializer<io.netty.channel.Channel> channelInitializer,
TCPChannelType channelType)
Create a new TCP server.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
configureBootstrap()
Configure the bootstrap channel, event group and options.
|
TCPChannelType |
getChannelType() |
bind, bind, close, getBootstrap, getChannelFuturepublic TCPServer(io.netty.channel.ChannelInitializer<io.netty.channel.Channel> channelInitializer)
channelInitializer - The channel initializer to usepublic TCPServer(io.netty.channel.ChannelInitializer<io.netty.channel.Channel> channelInitializer,
TCPChannelType channelType)
channelInitializer - The channel initializer to usechannelType - The channel type to usepublic TCPChannelType getChannelType()
protected void configureBootstrap()
ReliableServerconfigureBootstrap in class ReliableServer