CLI_SENDMSG Channel: 2 SNAC(4,6) Send a message. Parameters Length/TLV Content (If Fixed) Designations Description 8 xx xx xx xx xx xx xx xx MID Message Cookie. Used by clients to identify messages they send through server to the acks remote clients send back. 2 xx xx MSGFORMAT 1 for text messages 2 for 'advanced' messages 4 for for authentification stuff and url messages Varies ... UIN Target UIN in BUIN format TLV02 00 02 xx xx ... MESSAGE The message to send; only present for type 1. 7 05 01 00 01 01 01 01 UNKNOWN First part is a TLV (0x0501) length 0x0001, unknown byte inside Last 0x0101 is the start of another TLV that encapsulates the message data. 2 xx xx LENGTH The length of the following text + 4 4 00 00 00 00 UNKNOWN unknown; vicq uses 00 00 ff ff Varies ... MESSAGE The message text. TLV05 00 05 xx xx ... MESSAGE The message to send for type 2 and type 4. 4 xx xx xx xx UIN My UIN as a LE UDWORD. 1 xx TYPE The message type as in the old protocol. 1 00 FLAGS unknown flags Varies ... MESSAGE The message text itself as a LNTS (null terminated preceded by long endian 2byte length) TLV06 00 06 00 00 EMPTY Always present empty TLV. -------------------------------------------------------------------------------- 0000 2a 02 ?? ?? 00 73 00 04 00 06 ?? ?? ?? ?? ?? ?? *.O?..*. h6.].... 0010 00 00 00 00 00 b9 00 00 00 00 00 00 00 00 00 01 .....?.. ........ 0020 07 34 37 32 30 32 38 35 00 02 00 39 05 01 00 01 .4720285 ...9.... 0030 01 01 01 00 30 00 00 00 00 48 6d 6d 6d 2e 2e 2e ....0... .Hmmm... 0040 2e 20 73 74 69 6d 6d 74 2e 20 45 72 20 73 63 68 . stimmt . Er sch 0050 69 63 6b 74 20 65 69 6e 65 6e 20 53 4e 41 43 28 ickt ein en SNAC( 0060 34 2c 36 29 2e 00 06 00 00 4,6).... .