コード例 #1
0
  public void sessionCreated(IoSession session) {
    session
        .getFilterChain()
        .addFirst("protocolFilter", new ProtocolCodecFilter(new RSCCodecFactory()));

    Logger.println(
        "Connection from: "
            + ((InetSocketAddress) session.getRemoteAddress()).getAddress().getHostAddress());
  }
コード例 #2
0
 /**
  * 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");
 }