/** Method updatePacket. */
  private void updatePacket() {
    String body = SNAC3_4 + "000000000000";

    for (int i = 0; i < uins.size(); i++) {
      // System.out.println(uins.size());
      ICQContact c = (ICQContact) uins.elementAt(i);
      String Uin = c.getUIN();
      body +=
          Utils.TwoByteInt2FourCharString(Utils.UIN(Uin).length() / 2)
              + Utils.UIN(Uin); // lengte zit al mee ingecalculeerd
    }

    setContent(
        Utils.fromHexString(
            SNACS
                + Utils.TwoByteInt2FourCharString(SEQUENCE)
                + Utils.TwoByteInt2FourCharString(body.length() / 2)
                + body));
  }
Пример #2
0
 public ICQSRV_REFUSEDPacket(String s) {
   setContent(Utils.fromHexString(s));
   setKindOfPacket("SRV_REFUSED");
 }
Пример #3
0
 public YahooSRV_NOTIFYPacket(String s) {
   setContent(Utils.fromHexString(s));
   setKindOfPacket("SRV_NOTIFY");
 }