Package l2p.gameserver.network

Examples of l2p.gameserver.network.L2GameClient


  public void kickAccountInGame(String account)
  {
    synchronized(accountsInGame)
    {
      L2GameClient client = accountsInGame.get(account);
      if(client != null)
      {
        L2Player activeChar = client.getActiveChar();
        if(activeChar != null)
        {
          activeChar.sendPacket(Msg.ANOTHER_PERSON_HAS_LOGGED_IN_WITH_THE_SAME_ACCOUNT);
        }
        else
        {
          client.sendPacket(Msg.ServerClose);
        }
        ThreadPoolManager.getInstance().scheduleGeneral(new KickPlayerInGameTask(client), 1000);
      }
    }
  }
View Full Code Here


  };

  @Override
  public void readImpl()
  {
    L2GameClient _client = getClient();
    if(_buf.remaining() < 4)
    {
      // Проверки рейтинга типа l2top.in.ua
      _client.close(wrong_protocol);
      return;
    }
    _version = readD();
//    if(_version == -2 || _buf.remaining() == 0)
//    {
//      _client.close(wrong_protocol);
//      return;
//    }
    if(_buf.remaining() < _data.length)
    {
     
    }
    else
    {
      readB(_data);
      if(_buf.remaining() >= 4)
      {
        readD();
      } //?
    }
    pk = new KeyPacket(_client.enableCrypt());
  }
View Full Code Here

  }

  @Override
  public void runImpl()
  {
    L2GameClient _client = getClient();
    if(_version == -2)
    {
      return;
    }
    else if((this._version == 65533) || (this._version == -3))
    {
      _client.close(new SendStatus());
      return;
    }
    else if(_version < Config.MIN_PROTOCOL_REVISION || _version > Config.MAX_PROTOCOL_REVISION)
    {
      _log.info("Client Protocol Revision: " + _version + ", client IP: " + _client.getIpAddr() + " not allowed. Supported protocols: from " + Config.MIN_PROTOCOL_REVISION + " to " + Config.MAX_PROTOCOL_REVISION + ". Closing connection.");
      _client.close(wrong_protocol);
      return;
    }
    _client.setRevision((int) _version);
    for(int i = 0; i < 256; i++)
    {
      _data[i] ^= _xorB[i & 7];
    }
    _client.client_lang = _data[255];
View Full Code Here

TOP

Related Classes of l2p.gameserver.network.L2GameClient

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.