final DelimiterBasedFrameDecoder frameDecoder =
new DelimiterBasedFrameDecoder(Integer.MAX_VALUE,
Delimiters.lineDelimiter());
this.bootstrap.setPipelineFactory(new ChannelPipelineFactory() {
public ChannelPipeline getPipeline() throws Exception {
ByteCounter byteCounter =
new ByteCounter("--- CLIENT-COUNTER :: ");
MessageCounter messageCounter =
new MessageCounter("--- CLIENT-MSGCOUNTER :: ");
ClientHandshakeHandler handshakeHandler =
new ClientHandshakeHandler(id, serverId, 5000);