public void sessionCreated(IoSession session) {
    session
        .getFilterChain()
        .addFirst("protocolFilter", new ProtocolCodecFilter(new RSCCodecFactory()));

    Logger.println(
        "Connection from: "
            + ((InetSocketAddress) session.getRemoteAddress()).getAddress().getHostAddress());
  }
 /**
  * Invoked whenever an IO session is created.
  *
  * @param session The session opened
  */
 public void sessionCreated(IoSession session) {
   session
       .getFilterChain()
       .addFirst("protocolFilter", new ProtocolCodecFilter(new LSCodecFactory()));
   // Logger.event("Connection to LOGIN_SERVER created");
 }