[icq-devel] Hello, How I get the SNAC(04,07) (ICBM) message?



Janosch Gräf janosch.graef at gmx.net
Mon Nov 6 20:26:37 CET 2006


Hi,

I'm new here, so I want to tell you a little bit about me.
My name is Janosch Graef (with "a, umlaut) and I live in Germany
(forgive me my hard english).
I'm developing a PHP (CLI) ICQ client. At the moment I finished the
Login and I want to get ICBM messages.

Now my problem:
I want to get the message out of a (ICBM) SNAC(04,07)
http://iserverd.khstu.ru/oscar/snac_04_07.html

This are all TLVs
00 01 00 02 00 50 00 06 00 04 20 03 00 00 00 0F  .....P.... .....
00 04 00 00 2B 74 00 03 00 04 45 4F 56 DB 00 02  ....+t....EOV...
00 13 05 01 00 02 01 06 01 01 00 09 00 00 00 00  ................
68 61 6C 6C 6F 00 0B 00 00 00 16 00 04 45 4F 82  hallo........EO.
4F 00 13 00 01 01                                O....

This are the first four TLVs. They're ok.

00 01 00 02 00 50 | TLV(0x01) Length: 0x02 USER CLASS
00 06 00 04 20 03 00 00 | TLV(0x04) Length: 0x04 USER STATUS
00 0F 00 04 00 00 2B 74 | TLV(0x0f) Length: 0x04 ONLINE TIME
00 03 00 04 45 4F 56 DB | TLV(0x03) Length: 0x04 USER ACCOUNT CREATION TIME

I know that in the next TLV is the message, but how can I get the
message correctly out of the TLVs? What system is behind this? And how I
get the TLV type numbers?

00 02 00 13 05 01 00 02 01 06 01 01 00 09 00 00 00 00 68 61 6C 6C 6F |
TLV(0x02) Length: 0x13
00 0B 00 00 | TLV(0x0b) Length: 0x00
00 16 00 04 45 4F 82 4F | TLV(0x16) Length: 0x04
00 13 00 01 01 | TLV(0x13) Length: 0x0

Thanks,
Janosch


More information about the icq-devel mailing list