Package net.bnubot.util

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


         * (DWORD) Clan tag
         * (STRING) Clan name
         * (STRING) Inviter
         */
        int cookie = is.readDWord();
        int clanTag = is.readDWord();
        String clanName = is.readNTString();
        String inviter = is.readNTString();

        ClanInvitationCookie c = new ClanInvitationCookie(this, cookie, clanTag, clanName, inviter);
        dispatchClanInvitation(c);
View Full Code Here


        dispatchClanInvitation(c);
        break;
      }

      case SID_CLANRANKCHANGE: {
        int cookie = is.readDWord();
        byte status = is.readByte();

        Object obj = CookieUtility.destroyCookie(cookie);
        String statusCode = null;
        switch(status) {
View Full Code Here

        /*
         * (DWORD) Cookie
         * (DWORD) Unknown (0)
         * (STRING) MOTD
         */
        int cookieId = is.readDWord();
        is.readDWord();
        String text = is.readNTStringUTF8();

        Object cookie = CookieUtility.destroyCookie(cookieId);
        dispatchClanMOTD(cookie, text);
View Full Code Here

         * (DWORD) Cookie
         * (DWORD) Unknown (0)
         * (STRING) MOTD
         */
        int cookieId = is.readDWord();
        is.readDWord();
        String text = is.readNTStringUTF8();

        Object cookie = CookieUtility.destroyCookie(cookieId);
        dispatchClanMOTD(cookie, text);
        break;
View Full Code Here

         * (STRING) Username
         * (BYTE) Rank
         * (BYTE) Online Status
         * (STRING) Location
         */
        is.readDWord();
        byte numMembers = is.readByte();
        ClanMember[] members = new ClanMember[numMembers];

        for(int i = 0; i < numMembers; i++) {
          String uName = is.readNTString();
View Full Code Here

      }

      //Receive the file
      is.skip(2)//int headerLength = is.readWord();
      is.skip(2)//int unknown = is.readWord();
      int fileSize = is.readDWord();
      is.skip(4)//int bannersID = is.readDWord();
      is.skip(4)//int bannersFileExt = is.readDWord();
      Date fileTime = TimeFormatter.fileTime(is.readQWord());
      fileName = is.readNTString();
View Full Code Here

        break;
      }

      case SID_PING: {
        BNCSPacket p = new BNCSPacket(this, BNCSPacketId.SID_PING);
        p.writeDWord(is.readDWord());
        p.sendPacket(bncsOutputStream);
        break;
      }

      case SID_AUTH_INFO:
View Full Code Here

      }

      case SID_AUTH_INFO:
      case SID_STARTVERSIONING: {
        if (pr.packetId == BNCSPacketId.SID_AUTH_INFO) {
          nlsRevision = is.readDWord();
          serverToken = is.readDWord();
          is.skip(4); // int udpValue = is.readDWord();
        }
        long mpqFileTime = is.readQWord();
        String mpqFileName = is.readNTString();
View Full Code Here

      case SID_AUTH_INFO:
      case SID_STARTVERSIONING: {
        if (pr.packetId == BNCSPacketId.SID_AUTH_INFO) {
          nlsRevision = is.readDWord();
          serverToken = is.readDWord();
          is.skip(4); // int udpValue = is.readDWord();
        }
        long mpqFileTime = is.readQWord();
        String mpqFileName = is.readNTString();
        byte[] valueStr = is.readNTBytes();
View Full Code Here

            int numChars = is.readWord();

            List<MCPCharacter> chars = new ArrayList<MCPCharacter>(numChars);

            for(int i = 0; i < numChars; i++) {
              final long time = (1000L * is.readDWord()) - System.currentTimeMillis();
              final String name = is.readNTString();

              ByteArrayOutputStream baos = new ByteArrayOutputStream();
              byte[] data = new byte[33];
              is.read(data);
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.