Package net.bnubot.util

Examples of net.bnubot.util.BNetInputStream.readDWord()


        return null;
      }

      VersionCheckResult vcr = new VersionCheckResult();
      vcr.exeVersion = bnlsIn.readDWord();
      vcr.exeHash = bnlsIn.readDWord();
      vcr.exeInfo = bnlsIn.readNTBytes();
      bnlsIn.readDWord(); // cookie
      bnlsIn.readDWord(); // verbyte
      assert (bnlsIn.available() == 0);
View Full Code Here


            return;
          }
          break;
        }
        case PACKET_ACCOUNT: {
          int command = is.readDWord();
          int result = is.readDWord();
          switch(result) {
          case 0:
            switch(command) {
            case 0:
View Full Code Here

          }
          break;
        }
        case PACKET_ACCOUNT: {
          int command = is.readDWord();
          int result = is.readDWord();
          switch(result) {
          case 0:
            switch(command) {
            case 0:
              dispatchRecieveError("Account logon failed");
View Full Code Here

      VersionCheckResult vcr = new VersionCheckResult();
      vcr.exeVersion = bnlsIn.readDWord();
      vcr.exeHash = bnlsIn.readDWord();
      vcr.exeInfo = bnlsIn.readNTBytes();
      bnlsIn.readDWord(); // cookie
      bnlsIn.readDWord(); // verbyte
      assert (bnlsIn.available() == 0);

      Out.info(getClass(), "Recieved version check from BNLS.");
View Full Code Here

          if(pr.data.length == 0) {
            userInit = false;
            break;
          }

          int number = is.readDWord();
          int dbflag = 0, ztff = 0;
          if(serverRevision >= 4) {
            dbflag = is.readDWord();
            ztff = is.readDWord();
          }
View Full Code Here

      VersionCheckResult vcr = new VersionCheckResult();
      vcr.exeVersion = bnlsIn.readDWord();
      vcr.exeHash = bnlsIn.readDWord();
      vcr.exeInfo = bnlsIn.readNTBytes();
      bnlsIn.readDWord(); // cookie
      bnlsIn.readDWord(); // verbyte
      assert (bnlsIn.available() == 0);

      Out.info(getClass(), "Recieved version check from BNLS.");

      if((vcr.exeVersion == 0)
View Full Code Here

          }

          int number = is.readDWord();
          int dbflag = 0, ztff = 0;
          if(serverRevision >= 4) {
            dbflag = is.readDWord();
            ztff = is.readDWord();
          }
          String name = is.readNTString();

          BotNetUser user = new BotNetUser(this, number, name);
View Full Code Here

          int number = is.readDWord();
          int dbflag = 0, ztff = 0;
          if(serverRevision >= 4) {
            dbflag = is.readDWord();
            ztff = is.readDWord();
          }
          String name = is.readNTString();

          BotNetUser user = new BotNetUser(this, number, name);
          user.dbflag = dbflag;
View Full Code Here

      Out.debug(IconsDotBniReader.class, "Reading " + f.getName());

      is.skip(4); //int headerSize = is.readDWord();
      int bniVersion = is.readWord();
      is.skip(2)// Alignment Padding (unused)
      int numIcons = is.readDWord();
      is.skip(4)//int dataOffset = is.readDWord();

      if(bniVersion != 1)
        throw new Exception("Unknown BNI version");
View Full Code Here

          BotNetUser user = new BotNetUser(this, number, name);
          user.dbflag = dbflag;
          user.ztff = ztff;

          user.channel = is.readNTString();
          user.server = is.readDWord();
          if(serverRevision >= 2)
            user.account = is.readNTString();
          if(serverRevision >= 3)
            user.database = is.readNTString();
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.