Package net.solosky.maplefetion

Examples of net.solosky.maplefetion.FetionClient.logout()


        if(!this.dispatch(line)) {
          Iterator<FetionClient> it = this.clientList.iterator();
          while(it.hasNext()) {
            FetionClient client = it.next();
            if(client.getState()==ClientState.ONLINE) {
              client.logout();
            }
          }
          this.sharedTimer.reallyStopTimer();
          this.shareExecutor.reallyStopExecutor();
          break;
View Full Code Here


      Integer i = Integer.parseInt(s);
      FetionClient client = this.clientList.get(i);
      if(client!=null) {
        if(client.getState()==ClientState.ONLINE) {
          println("正在退出 "+client.getFetionUser().getDisplayName()+"..");
          client.logout();
        }
        this.clientList.remove(i);
      }
     
    }
View Full Code Here

    {
      Integer i = Integer.parseInt(s);
      FetionClient client = this.clientList.get(i);
      if(client!=null && client.getState()==ClientState.ONLINE) {
        println("正在退出 "+client.getFetionUser().getDisplayName()+"..");
        client.logout();
      }
    }


  /**
 
View Full Code Here

       
             
              //无论发送成功还是失败,因为登录了,就必须退出,释放线程资源,否则客户端不会主动退出
              //如果登录失败了,客户端会主动释放线程资源,不需要退出
              System.out.print("正在退出客户端...");
              client.logout();
              System.out.println("已经退出。");
             
      }else if(state==LoginState.SSI_AUTH_FAIL){
        System.out.println("你输入的手机号或者密码不对,请检查后重试!");
      }else if(state==LoginState.SSI_CONNECT_FAIL){
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.