Protocols/OSCAR/SNAC/LOCATE SET INFO: Difference between revisions
No edit summary |
|||
Line 28: | Line 28: | ||
| [[Protocols/OSCAR/TLV|TLV]] | | [[Protocols/OSCAR/TLV|TLV]] | ||
| ''[Class: [[Protocols/OSCAR/Foodgroups/LOCATE#TLV_Class:_LOCATE_TAGS|LOCATE__TAGS]]]'' Information to set or replace - empty tags will cause that data to be cleared; tags not present will cause no change | | ''[Class: [[Protocols/OSCAR/Foodgroups/LOCATE#TLV_Class:_LOCATE_TAGS|LOCATE__TAGS]]]'' Information to set or replace - empty tags will cause that data to be cleared; tags not present will cause no change | ||
|} | |||
'''Set user information [Source: Client]''' | |||
This sends up the intial profile and capability set. It's also used while online to set yourself away and back. Capabilities are represented by blocks of data, 16 bytes long. | |||
The final portion of this packet is the capability set; it's technically a TLV, but it's easier in code to refer to it otherwise, since the value of the TLV differs based on capabilites. | |||
{| border="1" | |||
| <u>Container</u> | |||
| <u>Data</u> | |||
| <u>TLV Type</u> | |||
|- | |||
| RAW | |||
| SNAC Header | |||
| | |||
|- | |||
| TLV | |||
| TLV containing string: text/x-aolrtf; charset="us-ascii" | |||
| 0x0001 | |||
|- | |||
| TLV | |||
| Profile string | |||
| 0x0002 | |||
|- | |||
| TLV | |||
| TLV containing string: text/x-aolrtf; charset="us-ascii" | |||
| 0x0003 | |||
|- | |||
| TLV | |||
| Away message. TLV value is NULL (and len is 0) if you're not away. | |||
| 0x0004 | |||
|- | |||
| TLV | |||
| Capability block | |||
| 0x0005 | |||
|} | |||
The following table illustrates the capability sets; you could easily send up this entire thing and forget about it, but if you want to be specific, send only those that your client supports. This way, other clients will be notified of your capabilites, and be stopped/warned when sending you requests that you're not capable of dealing with. Hence the word "capability".. :) | |||
{| border="1" | |||
| <u>Container</u> | |||
| <u>Data</u> | |||
|- | |||
| Buddy icon | |||
| 0x09, 0x46, 0x13, 0x46, 0x4c, 0x7f, 0x11, 0xd1, 0x82, 0x22, 0x44, 0x45, 0x53, 0x54, 0x00, 0x00 | |||
|- | |||
| Voice | |||
| 0x09, 0x46, 0x13, 0x41, 0x4c, 0x7f, 0x11, 0xd1, 0x82, 0x22, 0x44, 0x45, 0x53, 0x54, 0x00, 0x00 | |||
|- | |||
| IM image | |||
| 0x09, 0x46, 0x13, 0x45, 0x4c, 0x7f, 0x11, 0xd1, 0x82, 0x22, 0x44, 0x45, 0x53, 0x54,0x00, 0x00 | |||
|- | |||
| Chat | |||
| 0x74, 0x8f, 0x24, 0x20, 0x62, 0x87, 0x11, 0xd1, 0x82, 0x22, 0x44, 0x45, 0x53, 0x54, 0x00, 0x00 | |||
|- | |||
| Get file | |||
| 0x09, 0x46, 0x13, 0x48, 0x4c, 0x7f, 0x11, 0xd1, 0x82, 0x22, 0x44, 0x45, 0x53, 0x54, 0x00, 0x00 | |||
|- | |||
| Send file | |||
| 0x09, 0x46, 0x13, 0x43, 0x4c, 0x7f, 0x11, 0xd1, 0x82, 0x22, 0x44, 0x45, 0x53, 0x54, 0x00, 0x00 | |||
|} | |} | ||
Revision as of 09:50, 24 March 2020
OSCAR Protocol |
Introduction • Terms • Clients |
Basic |
Datatypes • FLAP • SNAC • TLV |
UUIDs • Errors • Tool IDs |
Host Interaction |
Rate Limits • Migration • Messages |
Other Services |
ADMIN • ADVERT • ALERT |
BART • BOS • BUCP • CHAT |
CHAT_NAV |
Tutorials |
Sign On • BART • Rendezvous |
ICBM • Locate • Buddies |
Foodgroups |
OSERVICE (0x0001) |
LOCATE (0x0002) |
BUDDY (0x0003) |
ICBM (0x0004) |
ADVERT (0x0005) |
INVITE (0x0006) |
ADMIN (0x0007) |
POPUP (0x0008) |
PD (0x0009) |
USER_LOOKUP (0x000A) |
STATS (0x000B) |
TRANSLATE (0x000C) |
CHAT_NAV (0x000D) |
CHAT (0x000E) |
ODIR (0x000F) |
BART (0x0010) |
FEEDBAG (0x0013) |
ICQ (0x0015) |
BUCP (0x0017) |
ALERT (0x0018) |
PLUGIN (0x0022) |
UNNAMED_FG_24 (0x0024) |
MDIR (0x0025) |
ARS (0x044A) |
ID | Origin | Name | Foodgroup | Service | Status | Version |
---|---|---|---|---|---|---|
0x0002, 0x0004 | Client | LOCATE__SET_INFO | Unspecified | BOS | Active | 1.19 |
The client may set SIG, UNAVAILABLE, and CAPABILITIES type and data tags with this SNAC.
SNAC Header
Foodgroup | uint16 (word) | 00 02 |
Subgroup | uint16 (word) | 00 04 |
Flags | uint16 (word) | 00 00 |
Request ID | uint32 (dword) | 00 00 00 00 |
SNAC Data
A tag with no data clears the SIG, UNAVAILABLE message, or CAPABILITIES.
Name | Type | Notes |
---|---|---|
infoData | TLV | [Class: LOCATE__TAGS] Information to set or replace - empty tags will cause that data to be cleared; tags not present will cause no change |
Set user information [Source: Client]
This sends up the intial profile and capability set. It's also used while online to set yourself away and back. Capabilities are represented by blocks of data, 16 bytes long.
The final portion of this packet is the capability set; it's technically a TLV, but it's easier in code to refer to it otherwise, since the value of the TLV differs based on capabilites.
Container | Data | TLV Type |
RAW | SNAC Header | |
TLV | TLV containing string: text/x-aolrtf; charset="us-ascii" | 0x0001 |
TLV | Profile string | 0x0002 |
TLV | TLV containing string: text/x-aolrtf; charset="us-ascii" | 0x0003 |
TLV | Away message. TLV value is NULL (and len is 0) if you're not away. | 0x0004 |
TLV | Capability block | 0x0005 |
The following table illustrates the capability sets; you could easily send up this entire thing and forget about it, but if you want to be specific, send only those that your client supports. This way, other clients will be notified of your capabilites, and be stopped/warned when sending you requests that you're not capable of dealing with. Hence the word "capability".. :)
Container | Data |
Buddy icon | 0x09, 0x46, 0x13, 0x46, 0x4c, 0x7f, 0x11, 0xd1, 0x82, 0x22, 0x44, 0x45, 0x53, 0x54, 0x00, 0x00 |
Voice | 0x09, 0x46, 0x13, 0x41, 0x4c, 0x7f, 0x11, 0xd1, 0x82, 0x22, 0x44, 0x45, 0x53, 0x54, 0x00, 0x00 |
IM image | 0x09, 0x46, 0x13, 0x45, 0x4c, 0x7f, 0x11, 0xd1, 0x82, 0x22, 0x44, 0x45, 0x53, 0x54,0x00, 0x00 |
Chat | 0x74, 0x8f, 0x24, 0x20, 0x62, 0x87, 0x11, 0xd1, 0x82, 0x22, 0x44, 0x45, 0x53, 0x54, 0x00, 0x00 |
Get file | 0x09, 0x46, 0x13, 0x48, 0x4c, 0x7f, 0x11, 0xd1, 0x82, 0x22, 0x44, 0x45, 0x53, 0x54, 0x00, 0x00 |
Send file | 0x09, 0x46, 0x13, 0x43, 0x4c, 0x7f, 0x11, 0xd1, 0x82, 0x22, 0x44, 0x45, 0x53, 0x54, 0x00, 0x00 |
LOCATE SNACs
|