Package com.yz.net

Examples of com.yz.net.ProtocolHandler


    MessageProcessTask.addFilter(new FiltrateTask());    //添加任务处理的过滤任务
   
    PlayerManager.getInstance();
   
    service = new IoServerImpl();
    ProtocolHandler protocolGroup = service.buildProtocolGroup(4, new CmNetProtocolHandler(), new CmWapProtocolHandler());
   
    Configure config = new Configure();
    config.setAddress(new InetSocketAddress("127.0.0.1",8899));
    config.setProtocolHandler(protocolGroup);
    config.setIoHandler(new LogicHandler());
View Full Code Here


    }
   
 
    int size = handlerList.size();
    for(int i=0; i<size; i++) {
      ProtocolHandler handler = handlerList.get(i);
      if(handler == null) {
        continue;
      }
     
      List<NetMessage> list = handler.onData(data, session);
      if(list != null && list.size() > 0) {
        return list;
      }
    }
   
View Full Code Here

    }
   
    ProtocolGroup group = new ProtocolGroup(prefixByteNum);
    int len = handlers.length;
    for(int i=0; i<len; i++) {
      ProtocolHandler handler = handlers[i];
      if(handler == null) {
        continue;
      }
     
      group.addHandler(handler);
View Full Code Here

TOP

Related Classes of com.yz.net.ProtocolHandler

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.