*/
NioSocketConnector connector = new NioSocketConnector();
connector.getFilterChain().addLast("codec",
new ProtocolCodecFilter(
new TextLineCodecFactory(Charset.forName("US-ASCII"))));
connector.setHandler(new TcpProtocolHandler(this));
ConnectFuture cf = connector.connect(new InetSocketAddress(HOST, 7002));
cf.addListener(new IoFutureListener() {
public void operationComplete(IoFuture s) {
try {
if(s.getSession() != null && s.getSession().isConnected()) {