Examples of readNTStringUTF8()


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

        int status = is.readDWord();
        byte server_M2[] = new byte[20];
        is.read(server_M2, 0, 20);
        String additionalInfo = null;
        if (is.available() != 0)
          additionalInfo = is.readNTStringUTF8();

        switch (status) {
        case 0x00:
          break;
        case 0x02:
View Full Code Here

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

        // int newestNews = is.readDWord();;
        is.skip(12);

        for(int i = 0; i < numEntries; i++) {
          int timeStamp = is.readDWord();
          String news = is.readNTStringUTF8().trim();
          if(timeStamp == 0// MOTD
            dispatchRecieveServerInfo(news);
        }

        break;
View Full Code Here

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

        break;
      }

      case SID_MESSAGEBOX: {
        /* int style = */ is.readDWord();
        String text = is.readNTStringUTF8();
        String caption = is.readNTStringUTF8();

        dispatchRecieveInfo("<" + caption + "> " + text);
        break;
      }
View Full Code Here

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

      }

      case SID_MESSAGEBOX: {
        /* int style = */ is.readDWord();
        String text = is.readNTStringUTF8();
        String caption = is.readNTStringUTF8();

        dispatchRecieveInfo("<" + caption + "> " + text);
        break;
      }

View Full Code Here

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

        is.readDWord();
        int numRealms = is.readDWord();
        String realms[] = new String[numRealms];
        for(int i = 0; i < numRealms; i++) {
          is.readDWord();
          realms[i] = is.readNTStringUTF8();
          is.readNTStringUTF8();
        }
        dispatchQueryRealms2(realms);
        break;
      }
View Full Code Here

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

        int numRealms = is.readDWord();
        String realms[] = new String[numRealms];
        for(int i = 0; i < numRealms; i++) {
          is.readDWord();
          realms[i] = is.readNTStringUTF8();
          is.readNTStringUTF8();
        }
        dispatchQueryRealms2(realms);
        break;
      }
View Full Code Here

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

        UserProfile up = new UserProfile((String)keys.remove(0));
        dispatchRecieveInfo("Profile for " + up.getUser());
        for(int i = 0; i < numKeys; i++) {
          String key = (String)keys.get(i);
          String value = is.readNTStringUTF8();
          if((key == null) || (key.length() == 0))
            continue;
          value = prettyProfileValue(key, value);

          if(value.length() != 0) {
View Full Code Here

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

        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);
        }

        dispatchFriendsList(entries);
View Full Code Here

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

         */
        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

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

         */
        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
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.