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



Roar jannikovacs at roar-software.net
Mon Nov 6 23:22:33 CET 2006


Hi,

The format of the data depends on the message's type (channel1, channel 
2 or channel 4). You get a channel 1 type message: a 0x02 tlv as its 
described here: http://iserverd.khstu.ru/oscar/snac_04_07_ch1.html
you can skip the first part of the tlv (05 01 xx xx [yy]) where xx xx is 
the length of the following yy bytes and go directly to the second part: 
01 01 xx xx [skip another 4 bytes here] then read xx xx - 4 bytes 
further - that's your message.

Hope it helped - My English isn't that good, too ;)

Janni Kovacs

Janosch Gräf wrote:
> 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
> -------------------------------------------------
> 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