Package com.l2client.network.login

Examples of com.l2client.network.login.LoginHandler


    this.clientInfo = Singleton.get().getClientFacade();
   
    clientInfo.init(user);
   
    //try connection to login server
        this.loginHandler = new LoginHandler(port, split[0]){
            @Override
            public void onDisconnect(boolean todoOk,String host, int port){
                if(todoOk){
                   clientInfo.connectToGameServer(host, port, loginOK1, loginOK2, playOK1, playOK2);
                }
View Full Code Here


    char[] pwd = {'g','h','o','u','s','t'};
    host="localhost";
    final ClientFacade clientInfo = ClientFacade.get();
    clientInfo.init(user);
    //try connection to login server
        LoginHandler loginSocket = new LoginHandler(port,host){
            @Override
            public void onDisconnect(boolean todoOk,String host, int port){
                if(todoOk){
                   clientInfo.connectToGameServer(host,port,
                       loginOK1, loginOK2, playOK1, playOK2);
                }
            }
            @Override
            public void onServerListReceived(GameServerInfo[] servers){
              //game server selection
              //present gameserver to connect to (if only one use that one
              if(servers != null && servers.length>0)
                requestServerLogin(0);
              else
                fail("Loginserver returned no gameservers to login to");
            }
        };
        //just idle around then logout
        try {
          loginSocket.setLoginInfo(user,pwd);
          Thread.sleep(2000);
          if(!loginSocket.connected)
            fail("Login to loginserver failed");
       
View Full Code Here

TOP

Related Classes of com.l2client.network.login.LoginHandler

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.