Package net.bnubot.util

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


      BNetIcon[] icons = new BNetIcon[numIcons];

      for(int i = 0; i < numIcons; i++) {
        BNetIcon icon = new BNetIcon();
        icon.flags = is.readDWord();
        icon.xSize = is.readDWord();
        icon.ySize = is.readDWord();
        if(icon.flags != 0)
          icon.sortIndex = i;
        else
View Full Code Here


            dispatchBotnetUserStatus(user);
          //recieveInfo(user.toStringEx());
          break;
        }
        case PACKET_USERLOGGINGOFF: {
          int number = is.readDWord();
          dispatchBotnetUserLogoff(number);
          break;
        }
        case PACKET_BOTNETCHAT: {
          int command = is.readDWord();
View Full Code Here

      BNetIcon[] icons = new BNetIcon[numIcons];

      for(int i = 0; i < numIcons; i++) {
        BNetIcon icon = new BNetIcon();
        icon.flags = is.readDWord();
        icon.xSize = is.readDWord();
        icon.ySize = is.readDWord();
        if(icon.flags != 0)
          icon.sortIndex = i;
        else
          icon.sortIndex = numIcons;
View Full Code Here

          int number = is.readDWord();
          dispatchBotnetUserLogoff(number);
          break;
        }
        case PACKET_BOTNETCHAT: {
          int command = is.readDWord();
          int action = is.readDWord();
          BotNetUser user = users.get(is.readDWord());
          ByteArray data = new ByteArray(is.readNTBytes());

          switch(command) {
View Full Code Here

      for(int i = 0; i < numIcons; i++) {
        BNetIcon icon = new BNetIcon();
        icon.flags = is.readDWord();
        icon.xSize = is.readDWord();
        icon.ySize = is.readDWord();
        if(icon.flags != 0)
          icon.sortIndex = i;
        else
          icon.sortIndex = numIcons;
        int numProducts;
View Full Code Here

          dispatchBotnetUserLogoff(number);
          break;
        }
        case PACKET_BOTNETCHAT: {
          int command = is.readDWord();
          int action = is.readDWord();
          BotNetUser user = users.get(is.readDWord());
          ByteArray data = new ByteArray(is.readNTBytes());

          switch(command) {
          case 0: //broadcast
View Full Code Here

        int numProducts;
        int products[] = new int[32];

        //Read in up to 32 products; stop if we see a null
        for(numProducts = 0; numProducts < 32; numProducts++) {
          products[numProducts] = is.readDWord();
          if(products[numProducts] == 0)
            break;
        }

        if(numProducts > 0) {
View Full Code Here

          break;
        }
        case PACKET_BOTNETCHAT: {
          int command = is.readDWord();
          int action = is.readDWord();
          BotNetUser user = users.get(is.readDWord());
          ByteArray data = new ByteArray(is.readNTBytes());

          switch(command) {
          case 0: //broadcast
            // TODO: change this to recieveBroadcast()
View Full Code Here

          break;
        }

        case PACKET_COMMAND: {
          // PROTOCOL VIOLATION!
          int err = is.readDWord();
          byte id = is.readByte();
          int lenOffending = is.readWord();
          int lenUnprocessed = is.readWord();
          dispatchRecieveError("Protocol violation: err=" + err + ", packet=" + BotNetPacketId.values()[id].name() + ", offending packet len=" + lenOffending + ", unprocessed data len=" + lenUnprocessed);
          disconnect(ConnectionState.LONG_PAUSE_BEFORE_CONNECT);
View Full Code Here

        cookie_out,
        c.getProductID().getDword(),
        seed);

    byte u = is.readByte();
    int cookie = is.readDWord();
    byte result = is.readByte();
    short dataLen = is.readWord();
    if(u != 0)
      throw new IOException("wrong useage");
    if(cookie != cookie_out)
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.