Protocols/OSCAR/Services/BART/Tutorials: Difference between revisions
Jump to navigation
Jump to search
m (AD moved page Prootcols/OSCAR/Services/BART/Tutorials to Protocols/OSCAR/Services/BART/Tutorials: Bad URL) |
No edit summary |
||
Line 24: | Line 24: | ||
Display the image. | Display the image. | ||
=== From Aleksandr Shutko: Upload icon sequence example dump === | |||
<table width=640 bgcolor=darkblue cellSpacing=0 cellPadding=0 border=0><tr><td> | |||
<table width=100% cellSpacing=2 cellPadding=0 border=0><tr><td bgcolor=#4040FF > | |||
<table width=100% cellSpacing=0 cellPadding=0 border=0> | |||
<tr><td><b><font color="white"> Upload icon sequence example dump </font></b></td> | |||
<td width=20% align=right><b><font color="white"> </font></b></td> | |||
</tr></table></td></tr></table> | |||
</td></tr></table> | |||
<table width=640 cellSpacing=0 cellPadding=0 border=0><tr><td><br> | |||
<table width=640 bgcolor=darkblue cellSpacing=0 cellPadding=0 border=0><tr><td> | |||
<table width=100% cellSpacing=2 cellPadding=0 border=0><tr><td bgcolor=#E9E9E9> | |||
<table width=610 cellSpacing=0 cellPadding=0 align=center border=0> | |||
<tr><td colspan=3 height=4> </td></tr><tr> | |||
<td width=7> </td><td valign=top> | |||
<font size=3><pre style="font-size: 13px"> | |||
// [BOS] Client command: add icon md5 hash item type=0x14 to ssi | |||
2A 02 12 AA 00 2F 00 13 00 08 00 00 3E C9 00 08 *..../......>... | |||
00 01 31 00 00 18 13 00 14 00 1A 00 D5 00 12 01 ..1............. | |||
10 EC 7B 60 67 CF D1 01 99 0C BD 33 F9 00 FC 4B ..{`g......3...K | |||
9B 01 31 00 00 ..1.. | |||
// [BOS] Server ack - success | |||
2A 02 26 04 00 14 00 13 00 0E 80 00 3E C9 00 08 *.&.........>... | |||
00 06 00 01 00 02 00 04 00 00 .......... | |||
// [BOS] Server ext status - command to start upload (flags=0x41) | |||
2A 02 26 05 00 26 00 01 00 21 80 00 C8 48 FF FB *.&..&...!...H.. | |||
00 06 00 01 00 02 00 04 00 01 41 10 EC 7B 60 67 ..........A..{`g | |||
CF D1 01 99 0C BD 33 F9 00 FC 4B 9B ......3...K. | |||
------------------------------------------------------------------- | |||
// Client request and setup SSBI service connection | |||
// [SSBI] Icon upload request | |||
2A 02 01 0C 16 19 00 10 00 02 00 00 77 C3 00 02 *...........w... | |||
00 01 16 0B FF D8 FF E0 00 10 4A 46 49 46 00 01 ..........JFIF.. | |||
01 01 00 60 00 60 00 00 FF DB 00 43 00 01 01 01 ...`.`.....C.... | |||
01 01 01 01 01 01 01 01 01 01 01 01 01 01 01 01 ................ | |||
01 01 01 01 01 01 01 01 01 01 01 01 01 01 01 01 ................ | |||
01 01 01 01 01 01 01 01 01 01 01 01 01 01 01 01 ................ | |||
01 01 01 01 01 01 01 01 01 01 01 01 01 FF DB 00 ................ | |||
43 01 01 01 01 01 01 01 01 01 01 01 01 01 01 01 C............... | |||
01 01 01 01 01 01 01 01 01 01 01 01 01 01 01 01 ................ | |||
........... | |||
AF 62 78 7B CD DA 35 E2 AE 92 55 27 4A 13 49 72 .bx{..5...U'J.Ir | |||
2F 7A 0E B5 E3 27 76 DC 5D 9A D9 A4 EE 8C 28 E4 /z...'v.].....(. | |||
B8 BA 94 A9 CE 58 8C B9 4A 51 8B 92 78 C4 DF 35 .....X..JQ..x..5 | |||
A3 CC EE A9 C9 35 74 DA 92 94 94 92 52 52 69 A6 .....5t.....RRi. | |||
7F FF D9 ... | |||
// [SSBI] Server upload result reply - success | |||
2A 02 B9 0A 00 1F 00 10 00 03 00 00 77 C3 00 02 *...........w... | |||
00 00 01 01 10 EC 7B 60 67 CF D1 01 99 0C BD 33 ......{`g......3 | |||
F9 00 FC 4B 9B ...K. | |||
------------------------------------------------------------------- | |||
// [BOS] Server ext status notification | |||
2A 02 26 07 00 26 00 01 00 21 80 00 C8 49 4C 87 *.&..&...!...IL. | |||
00 06 00 01 00 02 00 04 00 01 01 10 EC 7B 60 67 .............{`g | |||
CF D1 01 99 0C BD 33 F9 00 FC 4B 9B ......3...K. | |||
</pre></font> | |||
</font> | |||
</td><td width=7> </td></tr> | |||
<tr><td colspan=3> </td></tr></table> | |||
</td></tr></table> | |||
</td></tr></table> | |||
</td></tr></table> | |||
[[Category:With_Contrib]] | |||
[[Category:Stub]] | [[Category:Stub]] |
Revision as of 06:31, 13 February 2021
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) |
Getting a User's Buddy Icon
Step #1 - Finding the icon for a user
First the client will need to discover what the Buddy icon BART ID is for the user. Depending on display, the client will want to look inside the USERINFO for either the ICBM__CHANNEL_MSG_TOCLIENT SNAC or BUDDY__ARRIVED SNAC. The USERINFO will contain an array of BART IDs and the client should select the one with the BART__ID_TYPES Class for which it is looking.
Step #2 - Connecting to BART
If the client is not already connected to the BART server it will need to do so.
- Send a OSERVICE__SERVICE_REQUEST to BOSS with the foodgroup of BART.
- Wait for a OSERVICE__SERVICE_RESPONSE from BOSS.
- Using the RECONNECT_HERE tag, connect to the BART server.
- Using the LOGIN_COOKIE tag send a FLAP SIGNON packet, just like connecting to BOSS.
- Send a OSERVICE__CLIENT_ONLINE SNAC to the BART server.
Step #3 - Downloading from BART
Once connected to BART, use the BART__DOWNLOAD2_QUERY SNAC to download as many assets as required.
Step #4 - Display Icon
Display the image.
From Aleksandr Shutko: Upload icon sequence example dump
|
|