Package com.yz.net.expand

Examples of com.yz.net.expand.ClientIoSession


      this.onRegisterSession(session);
    }
   
    else if(session.getClass() == ClientIoSession.class) {  //注册连接操作
      ClientIoSession clientIoSession = (ClientIoSession) session;
      SelectionKey selectKey = channel.register(selector, SelectionKey.OP_CONNECT, session);
      channel.connect(clientIoSession.getConnectAddress());
      session.setSelectionKey(selectKey);
    }
   
    //开启定时检查
    session.lastAccessTime = System.currentTimeMillis();
View Full Code Here

TOP

Related Classes of com.yz.net.expand.ClientIoSession

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.