Package net.bnubot.util

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


        p.sendPacket(bncsOutputStream);
        break;
      }

      case SID_NEWS_INFO: {
        int numEntries = is.readByte();
        // int lastLogon = is.readDWord();
        // int oldestNews = is.readDWord();
        // int newestNews = is.readDWord();;
        is.skip(12);
View Full Code Here


         * (BYTE) Status
         * (BYTE) Location
         * (DWORD) ProductID
         * (STRING) Location name
         */
        byte numEntries = is.readByte();
        FriendEntry[] entries = new FriendEntry[numEntries];

        for(int i = 0; i < numEntries; i++) {
          String uAccount = is.readNTString();
          byte uStatus = is.readByte();
View Full Code Here

        byte numEntries = is.readByte();
        FriendEntry[] entries = new FriendEntry[numEntries];

        for(int i = 0; i < numEntries; i++) {
          String uAccount = is.readNTString();
          byte uStatus = is.readByte();
          byte uLocation = is.readByte();
          int uProduct = is.readDWord();
          String uLocationName = is.readNTStringUTF8();

          entries[i] = new FriendEntry(uAccount, uStatus, uLocation, uProduct, uLocationName);
View Full Code Here

        FriendEntry[] entries = new FriendEntry[numEntries];

        for(int i = 0; i < numEntries; i++) {
          String uAccount = is.readNTString();
          byte uStatus = is.readByte();
          byte uLocation = is.readByte();
          int uProduct = is.readDWord();
          String uLocationName = is.readNTStringUTF8();

          entries[i] = new FriendEntry(uAccount, uStatus, uLocation, uProduct, uLocationName);
        }
View Full Code Here

         * (BYTE) Friend Location
         * (BYTE) Friend Status
         * (DWORD) ProductID
         * (STRING) Location
         */
        byte fEntry = is.readByte();
        byte fLocation = is.readByte();
        byte fStatus = is.readByte();
        int fProduct = is.readDWord();
        String fLocationName = is.readNTStringUTF8();

View Full Code Here

         * (BYTE) Friend Status
         * (DWORD) ProductID
         * (STRING) Location
         */
        byte fEntry = is.readByte();
        byte fLocation = is.readByte();
        byte fStatus = is.readByte();
        int fProduct = is.readDWord();
        String fLocationName = is.readNTStringUTF8();

        dispatchFriendsUpdate(new FriendEntry(fEntry, fStatus, fLocation, fProduct, fLocationName));
View Full Code Here

         * (DWORD) ProductID
         * (STRING) Location
         */
        byte fEntry = is.readByte();
        byte fLocation = is.readByte();
        byte fStatus = is.readByte();
        int fProduct = is.readDWord();
        String fLocationName = is.readNTStringUTF8();

        dispatchFriendsUpdate(new FriendEntry(fEntry, fStatus, fLocation, fProduct, fLocationName));
        break;
View Full Code Here

         * (BYTE) Friend Status
         * (DWORD) ProductID
         * (STRING) Location
         */
        String fAccount = is.readNTString();
        byte fLocation = is.readByte();
        byte fStatus = is.readByte();
        int fProduct = is.readDWord();
        String fLocationName = is.readNTStringUTF8();

        dispatchFriendsAdd(new FriendEntry(fAccount, fStatus, fLocation, fProduct, fLocationName));
View Full Code Here

         * (DWORD) ProductID
         * (STRING) Location
         */
        String fAccount = is.readNTString();
        byte fLocation = is.readByte();
        byte fStatus = is.readByte();
        int fProduct = is.readDWord();
        String fLocationName = is.readNTStringUTF8();

        dispatchFriendsAdd(new FriendEntry(fAccount, fStatus, fLocation, fProduct, fLocationName));
        break;
View Full Code Here

      case SID_FRIENDSREMOVE: {
        /*
         * (BYTE) Entry Number
         */
        byte entry = is.readByte();

        dispatchFriendsRemove(entry);
        break;
      }

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.