예제 #1
0
 @Override
 public void sessionClosed(IoSession session) throws Exception {
   engine.pushTask(new SessionClosedTask(session));
 }
예제 #2
0
 @Override
 public void sessionOpened(IoSession session) throws Exception {
   session.setAttribute("remote", session.getRemoteAddress());
   session.getFilterChain().addFirst("protocol", new ProtocolCodecFilter(RS2CodecFactory.LOGIN));
   engine.pushTask(new SessionOpenedTask(session));
 }
예제 #3
0
 @Override
 public void messageReceived(IoSession session, Object message) throws Exception {
   engine.pushTask(new SessionMessageTask(session, (Packet) message));
 }