protected void initChannel(Channel ch) throws Exception {
ch.config().setAutoRead(false);
//ch.pipeline().addLast("debug", new DebugHandler("client"));
ch.pipeline().addLast("emit.afterConnect", new AfterConnectEventHandler(TCPWrap.this.process, TCPWrap.this));
ch.pipeline().addLast("emit.eof", new EOFEventHandler(TCPWrap.this.process, TCPWrap.this));
ch.pipeline().addLast("handle", new UnrefHandler(TCPWrap.this));
}
});
this.channelFuture = bootstrap.connect(addr, port);
this.channelFuture.addListener(new ChannelFutureListener() {