[icq-devel] Offline messages info



Alexandr V. Shutko AVShutko at mail.khstu.ru
Sat Nov 30 05:11:36 CET 2002


Hello icq-devel, (ping mail-list -t)
Here is offline messages request information (i didn't found it in
all available docs):

============================================================
First client sends offline_messages_request snac:

2A                 // FLAP id byte
02                 // FLAP channel
4E 6C              // FLAP sequence
00 18              // FLAP data size
-------------------------------------------------
00 15              // SNAC family 0x15
00 02              // SNAC subtype 0x02
00 00              // SNAC flags
00 01 00 02        // SNAC req-id
-------------------------------------------------
00 01              // TLV 0x01
00 0A              // TLV size
08 00              // incapsulated data size (LE)
-------------------------------------------------
8F E4 5E 00        // requester uin
3C 00              // cmd: request offline messages
02 00              // sequence

============================================================
Server responds with offline messages (if they exists)

2A                 // FLAP id byte
02                 // FLAP channel
CC 06              // FLAP sequence
00 2E              // FLAP data size
-------------------------------------------------
00 15              // SNAC family 0x15
00 03              // SNAC subtype 0x03
00 01              // SNAC flags (bit16=1 because more packets for
                   // this req-id will be sent)
00 01 00 02        // req-id (same as in request snac)
-------------------------------------------------
00 01              // TLV 0x01
00 20              // TLV size
1E 00              // incapsulated data size (LE)
8F E4 5E 00        // data owner uin (LE)
-------------------------------------------------
41 00              // cmd: requested offline message
02 00              // sequence (same as in request)
-------------------------------------------------
AA 0F D5 07        // uin that sends this message
D2 07              // year when this message was sent
0B                 // month when this message was sent
1D                 // day when this message was sent
0A                 // GMT hour when this message was sent
15                 // minutes when this message was sent
01 00              // MESSAGE TYPE (as in v5 protocol)
08 00              // messages asciiz string length
74 65 73 74 00     // message string

============================================================
...                // more offline messages

============================================================
After last message server sends end_of_offline_messages snac

2A                 // FLAP id byte
02                 // FLAP channel
CC 14              // FLAP sequence
00 19              // FLAP data size
-------------------------------------------------
00 15              // SNAC family 0x15
00 03              // SNAC subtype 0x03
00 00              // SNAC flags (bit16=0 -> last snac for this req-id)
00 01 00 02        // SNAC req-id
-------------------------------------------------
00 01              // TLV 0x01
00 0B              // TLV size
09 00              // incapsulated data size (LE)
8F E4 5E 00        // requester uin
42 00              // cmd: end_of_offline_messages
02 00              // sequence (same as in request)
00                 // flag: (00 - all messages delivered, 1 - some
                   // messages was dropped because there was too many
                   // offline messages for this user)

If there is no offline messages - server will respond only with
end_of_offline_messages snac

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




More information about the icq-devel mailing list