[icq-devel] get contactlist via SNAC(13,04)



Josef Kucera Josef.Kucera at sh.cvut.cz
Sat Nov 11 18:18:42 CET 2006


Hi,
the flag 0x8000 means that extra bytes were added to the packet (valid for 
all families), I have corrected your split a bit (see the comments:

2A 02 C1 B3 00 A1 | FLAP HEAD
  00 13 00 06 80 00 00 00 00 04 | SNAC(0x13,0x06) | FLAGS: 8x80 0x00 | REQ: 
0x00 0x00 0x00 0x04
    00 06 | Extra bytes len (now 6 bytes, I have seen 0x0E also)
    00 01 00 02 00 02 | This is most probably a TLV(1) with packet version 
(it is always the same as you negotiated with the server for whole SNAC 
family)
    00 | SSI PROTCOL VERSION
    00 04 | NUMBER OF ITEMS
      00 00 00 00 00 00 00 01 | Item 1: Master Group | ItemID: 0 | GroupID: 
0 | Type: 1
        00 06 00 C8 00 02 00 01 | TLV data - list of groups (one group with 
id 0x01)
      00 00 00 00 07 DD 00 1D | Item 2: ? | ItemID: 0x07DD | GroupID: 0 | 
Type: 0x1D - these are managed by server, do not touch
        00 28 00 67 00 04 45 4E 19 1C 01 50 00 04 00 00 | TLV data - meaning 
unknown
        00 00 01 53 00 04 00 00 00 69 01 52 00 04 00 00
        00 00 01 51 00 04 00 00 19 F9
      00 09 41 6C 6C 67 65 6D 65 69 6E 00 01 00 00 00 01 | Item 3: Group | 
ItemID: 0 | GroupID: 1 | Type: 1
        00 06 00 C8 00 02 00 01 | TLV data - list of contacts in group
      00 09 32 30 30 32 38 37 30 34 37 00 01 00 01 00 00 | Item 4: Buddy | 
ItemID: 1 | GroupID: 1 | Type: 0
        00 1A 01 31 00 0A 53 63 68 6E 65 65 6D 61 6E 6E | TLV data - custom 
nick name & serverdata TLV(0x6D) - when you delete this buddy from list, 
server will create list item 0x1D with this data (reason unknown)
        00 6D 00 08 45 53 7A 15 00 00 00 00
    45 55 E8 08 | SSI list last change time

Have a nice day,
Joe @ Whale

----- Original Message ----- 
From: "Janosch Gräf" <janosch.graef at gmx.net>
To: "ICQ-devel Mailinglist" <icq-devel at blipp.com>
Sent: Saturday, November 11, 2006 5:44 PM
Subject: [icq-devel] get contactlist via SNAC(13,04)


> Hi,
>
> I want to get my contactlist (first time) via SNAC(13,04) from server.
> http://iserverd.khstu.ru/oscar/snac_13_04.html
> I get this reply:
> http://iserverd.khstu.ru/oscar/snac_13_06.html
>
> 2A 02 C1 B3 00 A1 00 13 00 06 80 00 00 00 00 04  *...............
> 00 06 00 01 00 02 00 02 00 00 04 00 00 00 00 00  ................
> 00 00 01 00 06 00 C8 00 02 00 01 00 00 00 00 07  ................
> DD 00 1D 00 28 00 67 00 04 45 4E 19 1C 01 50 00  ....(.g..EN...P.
> 04 00 00 00 00 01 53 00 04 00 00 00 69 01 52 00  ......S.....i.R.
> 04 00 00 00 00 01 51 00 04 00 00 19 DE 00 09 41  ......Q........A
> 6C 6C 67 65 6D 65 69 6E 00 01 00 00 00 01 00 06  llgemein........
> 00 C8 00 02 00 01 00 09 32 30 30 32 38 37 30 34  ........20028704
> 37 00 01 00 01 00 00 00 1A 01 31 00 0A 53 63 68  7.........1..Sch
> 6E 65 65 6D 61 6E 6E 00 6D 00 08 45 53 7A 15 00  neemann.m..ESz..
> 00 00 00 45 55 E6 C6                             ...EU..
>
> I've splitted it up:
>
> 2A 02 C1 B3 00 A1 | FLAP HEAD
>   00 13 00 06 80 00 00 00 00 04 | SNAC(0x13,0x06) | FLAGS: 8x80 0x00 |
> REQ: 0x00 0x00 0x00 0x04
>      00 | SSI PROTCOL VERSION
>      06 00 | NUMBER OF ITEMS
>      01 00 02 00 02 00 00 04 00 00 00 00 00 00 00 01
>      00 06 00 C8 00 02 00 01 00 00 00 00 07 DD 00 1D
>      00 28 00 67 00 04 45 4E 19 1C 01 50 00 04 00 00
>      00 00 01 53 00 04 00 00 00 69 01 52 00 04 00 00
>      00 00 01 51 00 04 00 00 19 F9 00 09 41 6C 6C 67
>      65 6D 65 69 6E 00 01 00 00 00 01 00 06 00 C8 00
>      02 00 01 00 09 32 30 30 32 38 37 30 34 37 00 01
>      00 01 00 00 00 1A 01 31 00 0A 53 63 68 6E 65 65
>      6D 61 6E 6E 00 6D 00 08 45 53 7A 15 00 00 00 00
>      45 55 E8 08 | LIST OF ITEMS
>
> I don't have 1536 buddies in my contactlist! I have just _one_ buddy in
> my contactlist. And what's the matter of the SNAC-Flag (first byte)?
> -------------------------------------------------
> icq-devel - The forum for ICQ protocol discussion
> For unsubscribe and other mailing list info, see:
> http://www.ihse.net/icq/icq-devel/ 



More information about the icq-devel mailing list