if (protocol.getReceiveBufferSize() > -1) {
bootstrap.option(ChannelOption.SO_RCVBUF, protocol.getReceiveBufferSize());
}
bootstrap.option(ChannelOption.TCP_NODELAY, true);
bootstrap.option(ChannelOption.SO_REUSEADDR, true);
bootstrap.option(ChannelOption.SO_KEEPALIVE, true);
bootstrap.option(ChannelOption.SO_BACKLOG, protocol.getAcceptBacklog());
if (protocol.getTrafficClass() > -1) {
bootstrap.option(ChannelOption.IP_TOS, protocol.getTrafficClass());