Package cn.com.zjtelecom.smgp.server.util

Examples of cn.com.zjtelecom.smgp.server.util.ClientStatus


      ServerHandleConnect serverHandleConnect) {
    String key = account + "$" + ipaddress;
    System.out.println("IpAddress:" + ipaddress + "," + "Account:"
        + account + " has connected!");
    if (this.clientlist.get(key) == null) {
      this.clientlist.put(key, new ClientStatus(account, ipaddress,
          serverHandleConnect));
    } else {
      this.clientlist.get(key).AddNew(serverHandleConnect);
    }
    connectCount++;
View Full Code Here


      //System.out.println("DestTermID:" + deliver.DestTermID+"|");
            //System.out.println(deliver.DestTermID.indexOf(key));
      if (deliver.DestTermID.indexOf(key) >= 0) {
        // System.out.println("Find Client");
        havefind =true;
        ClientStatus clientStatus = this.clientlist
            .get(this.spnum2Account.get(key));
        if (clientStatus == null)
          continue;
        Vector<ServerHandleConnect> clientv = clientStatus
            .getServerHandleConnectList();
        ServerHandleConnect tmphanlde = null;
        for (int i = 0; i < clientv.size(); i++) {
          if (tmphanlde == null)
            tmphanlde = clientv.get(i);
View Full Code Here

    do {
      HashMap<String, ClientStatus> list = this.server.getClientlist();
      Iterator iterator   = list.keySet().iterator();
      while(iterator.hasNext()) {
        String key =(String) iterator.next();
        ClientStatus clientStatus=list.get(key);
        Vector<ServerHandleConnect> connectlist = clientStatus.getServerHandleConnectList();
        for (int i=0;i<connectlist.size();i++){
          connectlist.get(i).ActiveTest();
        }
       
      }
View Full Code Here

TOP

Related Classes of cn.com.zjtelecom.smgp.server.util.ClientStatus

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.