Oscar Protocol uses 5 Channels to multiplex information over one Socket Connection.
Channel | Description |
---|---|
0x01 | New Connection Negotiation |
0x02 | SNAC Messages |
0x03 | FLAP-level Error |
0x04 | Close Connection Negotiation |
0x05 | Keep alive |
Flap is the low-level message exchange Protocol in Oscar. Every Message in Oscar is wrapped into a Flap. A Flap consists of a Flap Header and a Channel and Message dependent Body.
Value | Type | Description |
---|---|---|
2A | byte | ID - Start Token that with fixed value. |
0xNN | byte | Channel |
0xNN 0xNN | word | Message Sequence Number |
0xNN 0xNN | word | Body length in bytes |
The content of the Flap Body depends on the Channel over which the Flap was transmitted.
Channel | Body Type |
---|---|
0x01 | Raw Byte data AND TLV data types - TODO - Description |
0x02 | SNAC Messages |
0x03 | Error Messages - TODO - Description |
0x04 | Close Connection Negotiation - TODO - Description |
0x05 | Keep Alive Messages - TODO - Description |
Messages sent over Channel 0x01 must fit into