[icq-devel] V7/V8 search info...



Alexandr V. Shutko AVShutko at mail.khstu.ru
Wed Nov 27 04:08:47 CET 2002


Hello icq-devel,
This is information about search packets...
I forgot to copy META_15_02_0533 packet format (i'l post it later)

// ========================================================
// META_15_02_0515 (client also sends META_15_02_053D_WILDCARD
// with same struct if search params contains '*' symbol)
// old search by details request packet
// not tlv based.

2A                      // flap id
02                      // flap channel
28 6F                   // flap sequence
00 30                   // flap data size
------------------------------------------------
00 15                   // snac family 0x15
00 02                   // snac subtype 0x02
00 00                   // snac flags
00 18 00 02             // snac req-id
------------------------------------------------
00 01                   // TLV 0x01
00 22                   // TLV len
20 00                   // data chunk size
92 E4 5E 00             // request owner uin
------------------------------------------------
D0 07                   // cmd: information services
25 00                   // sequence
15 05                   // subcmd: search by details
------------------------------------------------
06 00                   // first name len
66 69 72 73 74 00       // first name string
05 00                   // last name len
6C 61 73 74 00          // last name string
05 00                   // nick name len
6E 69 63 6B 00          // nick name string

// server responds with 1 or more packets
// last reply packet allways META 15_03_01AE
// other reply packets META 15_03_01A4
// all server reply packets has snac flags = 0x0001

// ========================================================
// META_15_02_0529
// Search by email request packet.
// Non-wildcard request. Not TLV based

2A              // flap id
02              // flap channel
28 62           // flap sequence
00 30           // flap id
------------------------------------------------
00 15           // snac family 0x15
00 02           // snac subtype 0x02
00 00           // snac sequence
00 11 00 02     // snac id
------------------------------------------------
00 01           // TLV 0x01
00 22           // TLV size
20 00           // data chunk size
92 E4 5E 00     // request owner uin
------------------------------------------------
D0 07           // cmd: information services
18 00           // sequence
29 05           // subcmd: search by email
------------------------------------------------
14 00           // email length
73 .. 75 00     // email to search for

// server responds with 1 or more packets
// last reply packet allways META 15_03_01AE
// other reply packets META 15_03_01A4
// all server reply packets has snac flags = 0x0001

// ========================================================
// META_15_02_055F
// White pages search from icq2002a
// icq2002a using awful mix of incapsulated v5 data
// and aim tlvs... 
------------------------------------------------
2A                      // flap id
02                      // flap channel
7F BE                   // flap sequence
01 35                   // flap data size
------------------------------------------------
00 15                   // snac family 0x15
00 02                   // snac subtype 0x02
00 00                   // snac flags
00 0F 00 02             // snac id
------------------------------------------------
00 01                   // TLV 0x01
01 27                   // TLV size
25 01                   // remaining chunk size
92 E4 5E 00             // data owner uin
------------------------------------------------
D0 07                   // cmd: request information
10 00                   // sequence
5F 05                   // subcmd: icq2002a wp search
------------------------------------------------
90 01                   // TLV 0x0190
07 00                   // TLV len
05 00                   // city strlen
43 .. 79 00             // city str

9A 01                   // TLV 0x019A
08 00                   // TLV len
06 00                   // state strlen
73 .. 65 00             // state str

AE 01                   // TLV 0x01AE
0A 00                   // TLV len
08 00                   // company strlen
63 .. 79 00             // company name string

B8 01                   // TLV 0x01B8
0D 00                   // TLV len
0B 00                   // department strlen
64 .. 74 00             // department string

C2 01                   // TLV 0x01C2
0B 00                   // TLV len
09 00                   // position strlen
70 .. 6E 00             // position string

68 01                   // TLV 0x0168
04 00                   // TLV len
1E 00                   // min age
27 00                   // max age

7C 01                   // TLV 0x017C
01 00                   // TLV len
02                      // gender

86 01                   // TLV 0x0186
02 00                   // TLV len
26 00                   // language code

A4 01                   // TLV 0x01A4
02 00                   // TLV len
07 00                   // country 

CC 01                   // TLV 0x01CC
02 00                   // TLV len
07 00                   // ocupation code

D6 01                   // TLV 0x01FE
0E 00                   // TLV len
2E 01                   // past category
0A 00                   // past keys strlen
70 .. 73 00             // past keys str

EA 01                   // TLV 0x01EA
28 00                   // TLV len
64 00                   // interests category
24 00                   // interests keys strlen
41 .. 73 00             // interests keys string

D6 01                   // TLV 0x01D6
0F 00                   // TLV len
C9 00                   // affilations category
0B 00                   // affilations keys strlen
61 .. 73 00             // affilations keys string

12 02                   // TLV 0x0212 
0A 00                   // TLV len
42 05                   // homepage code
06 00                   // homepage keywords strlen
71 .. 77 00             // homepage keywords string

40 01                   // TLV 0x0140
0B 00                   // TLV len
09 00                   // first name len
41 .. 72 00             // first Name

4A 01                   // TLV 0x014A
09 00                   // TLV len
07 00                   // last name len
53 .. 6F 00             // last name

54 01                   // TLV 0x0154
0C 00                   // TLV len
0A 00                   // nick name len
52 .. 72 00             // nick name

26 02                   // TLV 0x0226
06 00                   // TLV len
04 00                   // data len
6B 65 79 00             // keyword (for interests & aff & past & notes)

5E 01                   // TLV 0x015E
19 00                   // TLV len
17 00                   // email strlen
56 .. 75 00             // email

30 02                   // TLV 0x0230
01 00                   // TLV len
01                      // show only online users flag

// server responds with 1 or more packets
// last reply packet allways META 15_03_01AE
// other reply packets META 15_03_01A4
// all server reply packets has snac flags = 0x0001

// ========================================================
// META_15_02_0569
// Search by uin packet (icq 2001/2002)
// tlv based search snac

2A                      // flap id
02                      // flap channel
36 BE                   // flap sequence
00 22                   // flap data length
-------------------------------------------------
00 15                   // snac family 0x15
00 02                   // snac subtype 0x02
00 00                   // snac flags
00 12 00 02             // snac req-id
-------------------------------------------------
00 01                   // TLV 0x01
00 14                   // TLV len
12 00                   // data chunk len
92 E4 5E 00             // data owner uin
-------------------------------------------------
D0 07                   // cmd: information service
13 00                   // sequence
69 05                   // subcmd: search by uin
-------------------------------------------------
36 01                   // TLV 0x0136
04 00                   // TLV len
8F E4 5E 00             // uin to search

// server responds with 1 or more packets
// last reply packet allways META 15_03_01AE
// other reply packets META 15_03_01A4
// all server reply packets has snac flags = 0x0001

// ========================================================
// META_15_02_0573
// Search by email packet (icq 2001/2002)
// tlv based search snac

2A                      // flap id
02                      // flap channel
36 D2                   // flap sequence
00 37                   // flap data size
-------------------------------------------
00 15                   // snac family 0x15
00 02                   // snac subtype 0x02
00 00                   // snac flags
00 24 00 02             // snac id
-------------------------------------------
00 01                   // TLV 0x01
00 29                   // TLV len
27 00                   // data chunk size
92 E4 5E 00             // data owner uin
-------------------------------------------
D0 07                   // cmd: information service
27 00                   // sequence
73 05                   // subcmd: icq2001/2002 search by email
-------------------------------------------
5E 01                   // TLV 0x015E
19 00                   // TLV len
17 00                   // email strlen
41 .. 75 00             // email string

// server responds with 1 or more packets
// last reply packet allways META 15_03_01AE
// other reply packets META 15_03_01A4
// all server reply packets has snac flags = 0x0001

// ========================================================
// META_15_03_01A4
// search user found (wp search, uin search, email/details search)
// server also reply by this packet for TLV based search snacs

2A                      // flap id
02                      // flap channel
3E D8                   // flap sequence
00 5D                   // flap data size
------------------------------------------------
00 15                   // snac subtype 0x15
00 03                   // snac subtype 0x03
00 01                   // snac flags (allways 0x0001)
00 7C 00 02             // snac id
------------------------------------------------
00 01                   // TLV 0x01
00 4F                   // TLV size
4D 00                   // data chunk size
8F E4 5E 00             // data owner uin
------------------------------------------------
DA 07                   // cmd: info service
7E 00                   // sequence
A4 01                   // subcmd: 2001 wp found user
0A                      // info was found - success
------------------------------------------------
40 00 
34 BB 6C 07             // found user uin

09 00                   // nickname len
6E .. 61 6D 65 00       // nickname

0A 00                   // firstname len
66 .. 61 6D 65 00       // firstname

09 00                   // lastname len
6C .. 61 6D 65 00       // lastname

12 00                   // email len
65 .. 63 6F 6D 00       // email

00                      // auth
01 00                   // online status (0 - offline, 1 - online, 2 - not webaware)
02                      // gender
16 00                   // age (2 bytes) (age was allways 2 bytes long)

// ========================================================
// META_15_03_01AE
// last user found in search.

2A                      // flap id
02                      // flap channel
3E D8                   // flap sequence
00 5D                   // flap data size
------------------------------------------------
00 15                   // snac subtype 0x15
00 03                   // snac subtype 0x03
00 01                   // snac flags
00 7C 00 02             // snac id
------------------------------------------------
00 01                   // TLV 0x01
00 4F                   // TLV size
4D 00                   // data chunk size
8F E4 5E 00             // data owner uin
------------------------------------------------
DA 07                   // cmd: info service
7E 00                   // sequence
AE 01                   // subcmd: 2001 wp found user
0A                      // info was found - success
------------------------------------------------
40 00 
34 BB 6C 07             // found user uin

09 00                   // nickname len
6E .. 61 6D 65 00       // nickname

0A 00                   // firstname len
66 .. 61 6D 65 00       // firstname

09 00                   // lastname len
6C .. 61 6D 65 00       // lastname

12 00                   // email len
65 .. 63 6F 6D 00       // email

00                      // auth
00 00                   // online status (2 bytes)
02                      // gender
16 00                   // age (2 bytes)
20 03 00 00             // remaining users (0 if search returned all users)

-- 
With respect,
Alexandr V. Shutko                           mailto:AVShutko at mail.khstu.ru




More information about the icq-devel mailing list