Protocols/OSCAR/SNAC/OSERVICE MIGRATE GROUPS: Difference between revisions
No edit summary |
No edit summary |
||
(2 intermediate revisions by the same user not shown) | |||
Line 9: | Line 9: | ||
{{Protocols/OSCAR/SNAC/OSERVICE__MIGRATE_GROUPS/Description}} | {{Protocols/OSCAR/SNAC/OSERVICE__MIGRATE_GROUPS/Description}} | ||
[[Protocols/OSCAR/Migration|See more]] information about client migration. | |||
=== SNAC Header === | === SNAC Header === | ||
Line 18: | Line 20: | ||
=== SNAC Data === | === SNAC Data === | ||
The client needs to present the OSERVICE__TLV_TAGS_LOGIN_COOKIE to sign in so that it can reacquire the services which were previously OSERVICE__PAUSE_REQ'd by the server and OSERVICE__PAUSE_ACK'd by the client. | |||
All groups currently provided on the existing connection are migrated to the new location. The client should drop the existing connection since services will no longer be available from it. | |||
{| class="wikitable" | |||
! Name | |||
! Type | |||
! Notes | |||
|- | |||
| allGroups | |||
| uint16 (word) | |||
| Will be zero | |||
|- | |||
| tlvAuthData | |||
| Rest of SNAC array of [[Protocols/OSCAR/TLV|TLV]] | |||
| ''[Class: [[Protocols/OSCAR/SNAC/OSERVICE_MIGRATE_GROUPS#TLV_Class:_OSERVICE_MIGRATE_TAGS|OSERVICE__MIGRATE_TAGS]]]'' Information about where to reconnect | |||
|} | |||
=== TLV Class: OSERVICE__MIGRATE_TAGS === | === TLV Class: OSERVICE__MIGRATE_TAGS === | ||
Line 50: | Line 68: | ||
| ''[Class:[[Protocols/OSCAR/SNAC/OSERVICE_SERVICE_RESPONSE#Class:_OSERVICE_SERVICE_RESPONSE_SSL_STATE|OSERVICE__SERVICE_RESPONSE_SSL_STATE]]]'' SSL state | | ''[Class:[[Protocols/OSCAR/SNAC/OSERVICE_SERVICE_RESPONSE#Class:_OSERVICE_SERVICE_RESPONSE_SSL_STATE|OSERVICE__SERVICE_RESPONSE_SSL_STATE]]]'' SSL state | ||
|} | |} | ||
=== From Aleksandr Shutko: SNAC(01,12) server migration notice === | |||
<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">SNAC(01,12) </font></b></td> | |||
<td width=70% align=right><b><font color="white">OSERVICE__MIGRATE_GROUPS </font></b></td> | |||
</tr> | |||
</table> | |||
</td></tr></table> | |||
</td></tr></table> | |||
<table width=640 cellSpacing=0 cellPadding=0 border=0> | |||
<tr> | |||
<td> | |||
<br> | |||
This is the last SNAC in [[Protocols/OSCAR/Migration|client migration]] sequence. | |||
See also known [[Protocols/OSCAR#Foodgroups|families list]]. | |||
Client should open new connection to specified server and use this connection for specified families. If there is no | |||
family list (empty) or it contain all connection families - client should close current connection and use new one. | |||
Migration sequence used to redirect client to new BOS server during current BOS shutdown. | |||
<br><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=640 cellSpacing=0 cellPadding=0 align=center border=0> | |||
<tr> | |||
<td width=169> 00 01</td> | |||
<td width=5> </td> | |||
<td>word</td> | |||
<td width=5> </td> | |||
<td width=58%>SNAC family</td> | |||
</tr> | |||
<tr> | |||
<td> 00 12</td> | |||
<td> </td> | |||
<td>word</td> | |||
<td> </td> | |||
<td>SNAC subtype</td> | |||
</tr> | |||
<tr> | |||
<td> 00 00</td> | |||
<td> </td> | |||
<td>word</td> | |||
<td> </td> | |||
<td>SNAC flags</td> | |||
</tr> | |||
<tr> | |||
<td> xx xx xx xx</td> | |||
<td> </td> | |||
<td>dword</td> | |||
<td> </td> | |||
<td>SNAC request-id</td> | |||
</tr> | |||
</table> | |||
</td></tr> | |||
<tr><td bgcolor=#E9E9E9> | |||
<!-- TLV --> | |||
<table width=640 cellSpacing=0 cellPadding=0 align=center border=0> | |||
<tr><td height=8 colspan=3></td></tr> | |||
<tr><td width=20> </td> | |||
<td> | |||
<table width=610 bgcolor=darkgreen cellSpacing=0 cellPadding=0 border=0><tr><td> | |||
<table width=100% cellSpacing=2 cellPadding=0 align=center border=0> <tr><td bgcolor=#f9f9f9 > | |||
<table width=610 cellSpacing=0 cellPadding=0 align=center border=0> | |||
<tr> | |||
<td width=147> xx xx</td> | |||
<td width=5> </td> | |||
<td>word</td> | |||
<td width=5> </td> | |||
<td width=60%>Number of families in migration list</td> | |||
</tr> | |||
</table> | |||
</td></tr> | |||
<tr><td bgcolor=#f9f9f9> | |||
<table width=610 cellSpacing=0 cellPadding=0 align=center border=0> | |||
<tr> | |||
<td width=147> xx xx</td> | |||
<td width=5> </td> | |||
<td>word</td> | |||
<td width=5> </td> | |||
<td width=60%>Family to migrate #1</td> | |||
</tr> | |||
<tr> | |||
<td> ....</td> | |||
<td width=5> </td> | |||
<td>....</td> | |||
<td width=5> </td> | |||
<td width=60%>....</td> | |||
</tr> | |||
<tr> | |||
<td> xx xx</td> | |||
<td> </td> | |||
<td>word</td> | |||
<td> </td> | |||
<td>Family to migrate #n</td> | |||
</tr> | |||
</table> | |||
</td></tr> | |||
</table> | |||
</td></tr></table> | |||
</td><td width=5> </td> | |||
</tr> | |||
<tr><td height=5 colspan=3> </td></tr> | |||
</table> | |||
<!-- TLV --> | |||
<table width=640 cellSpacing=0 cellPadding=0 align=center border=0> | |||
<tr><td height=8 colspan=3></td></tr> | |||
<tr><td width=20> </td> | |||
<td> | |||
<table width=610 bgcolor=darkgreen cellSpacing=0 cellPadding=0 border=0><tr><td> | |||
<table width=100% cellSpacing=2 cellPadding=0 align=center border=0> <tr><td bgcolor=#f9f9f9 > | |||
<table width=610 cellSpacing=0 cellPadding=0 align=center border=0> | |||
<tr> | |||
<td width=147> 00 05</td> | |||
<td width=5> </td> | |||
<td>word</td> | |||
<td width=5> </td> | |||
<td width=60%>TLV.Type(0x05) - server address</td> | |||
</tr> | |||
<tr> | |||
<td> xx xx</td> | |||
<td> </td> | |||
<td>word</td> | |||
<td> </td> | |||
<td>TLV.Length</td> | |||
</tr> | |||
</table> | |||
</td></tr> | |||
<tr><td bgcolor=#f9f9f9> | |||
<table width=610 cellSpacing=0 cellPadding=0 align=center border=0> | |||
<tr> | |||
<td width=147> xx ..</td> | |||
<td width=5> </td> | |||
<td>string</td> | |||
<td width=5> </td> | |||
<td width=60%>Server address and (optional) port</td> | |||
</tr> | |||
</table> | |||
</td></tr> | |||
</table> | |||
</td></tr></table> | |||
</td><td width=5> </td> | |||
</tr> | |||
<tr><td height=5 colspan=3> </td></tr> | |||
</table> | |||
<!-- TLV --> | |||
<table width=640 cellSpacing=0 cellPadding=0 align=center border=0> | |||
<tr><td height=8 colspan=3></td></tr> | |||
<tr><td width=20> </td> | |||
<td> | |||
<table width=610 bgcolor=darkgreen cellSpacing=0 cellPadding=0 border=0><tr><td> | |||
<table width=100% cellSpacing=2 cellPadding=0 align=center border=0><tr><td bgcolor=#f9f9f9> | |||
<table width=610 cellSpacing=0 cellPadding=0 align=center border=0> | |||
<tr> | |||
<td width=147> 00 06</td> | |||
<td width=5> </td> | |||
<td>word</td> | |||
<td width=5> </td> | |||
<td width=60%>TLV.Type(0x06) - authorization cookie</td> | |||
</tr> | |||
<tr> | |||
<td> xx xx</td> | |||
<td> </td> | |||
<td>word</td> | |||
<td> </td> | |||
<td>TLV.Length</td> | |||
</tr> | |||
</table> | |||
</td></tr> | |||
<tr><td bgcolor=#f9f9f9> | |||
<table width=610 cellSpacing=0 cellPadding=0 align=center border=0> | |||
<tr> | |||
<td width=147> xx ..</td> | |||
<td width=5> </td> | |||
<td>string</td> | |||
<td width=5> </td> | |||
<td width=60%>Authorization cookie</td> | |||
</tr> | |||
</table> | |||
</td></tr></table> | |||
</td></tr></table> | |||
</td><td width=5> </td></tr> | |||
<tr><td height=5 colspan=3> </td></tr> | |||
</table> | |||
<!-- TLV 0x?? --> | |||
<table width=640 cellSpacing=0 cellPadding=0 align=center border=0> | |||
<tr><td height=8 colspan=3></td></tr> | |||
<tr><td width=20> </td> | |||
<td> | |||
<table width=610 bgcolor=darkgreen cellSpacing=0 cellPadding=0 border=0><tr><td> | |||
<table width=100% cellSpacing=2 cellPadding=0 align=center border=0> | |||
<tr><td bgcolor=#f9f9f9 > | |||
<table width=610 cellSpacing=0 cellPadding=0 align=center border=0 > | |||
<tr><td> May contain other tlv from the [[Protocols/OSCAR/TLV#Common_TLVs|following list]]</td></tr> | |||
</table> | |||
</td></tr> | |||
</table> | |||
</td></tr></table> | |||
</td><td width=5> </td> | |||
</tr> | |||
<tr><td height=5 colspan=3> </td></tr> | |||
</table> | |||
</td></tr></table> | |||
</td></tr></table> | |||
</td></tr></table> | |||
<br>Example SNAC dump with flap header: | |||
<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> | |||
<font size=3><pre style="font-size: 13px"> | |||
2A 02 E5 66 00 3A 00 01 00 12 00 00 8E CC C4 E0 *..f.:.......... | |||
00 04 00 01 00 02 00 03 00 15 00 05 00 0F 31 30 ..............10 | |||
2E 31 30 2E 31 30 2E 38 3A 35 31 39 30 00 06 00 .10.10.8:5190... | |||
0F 31 32 33 34 35 36 37 38 39 41 42 43 44 45 46 .123456789ABCDEF | |||
</pre></font> | |||
</td></tr></table> | |||
</td></tr></table> | |||
[[Category:With_Contrib]] | |||
=== OSERVICE SNACs === | === OSERVICE SNACs === |
Latest revision as of 06:24, 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) |
ID | Origin | Name | Foodgroup | Service | Status | Version |
---|---|---|---|---|---|---|
0x0001, 0x0012 | Host | OSERVICE__MIGRATE_GROUPS | Unspecified | All | Active | 4.0 |
This SNAC commands the client to reconnect to the server specified by the included OSERVICE__TLV_TAGS_RECONNECT_HERE TLV.
See more information about client migration.
SNAC Header
Foodgroup | uint16 (word) | 00 01 |
Subgroup | uint16 (word) | 00 12 |
Flags | uint16 (word) | 00 00 |
Request ID | uint32 (dword) | 00 00 00 00 |
SNAC Data
The client needs to present the OSERVICE__TLV_TAGS_LOGIN_COOKIE to sign in so that it can reacquire the services which were previously OSERVICE__PAUSE_REQ'd by the server and OSERVICE__PAUSE_ACK'd by the client.
All groups currently provided on the existing connection are migrated to the new location. The client should drop the existing connection since services will no longer be available from it.
Name | Type | Notes |
---|---|---|
allGroups | uint16 (word) | Will be zero |
tlvAuthData | Rest of SNAC array of TLV | [Class: OSERVICE__MIGRATE_TAGS] Information about where to reconnect |
TLV Class: OSERVICE__MIGRATE_TAGS
These are the codes used in OSERVICE__MIGRATE_GROUPS to describe where the client should reconnect.
Name | Tag | Type | Notes |
---|---|---|---|
OSERVICE__TLV_TAGS_RECONNECT_HERE | 0x05 | string | IP address followed by optional colon and port, 10.0.0.1:5190 |
OSERVICE__TLV_TAGS_LOGIN_COOKIE | 0x06 | string | Binary opaque data |
OSERVICE__TLV_TAGS_SSL_CERTNAME | 0x8D | string | Certificate name to use for SSL validation |
OSERVICE__TLV_TAGS_SSL_STATE | 0x8E | uint8 (byte) | [Class:OSERVICE__SERVICE_RESPONSE_SSL_STATE] SSL state |
From Aleksandr Shutko: SNAC(01,12) server migration notice
|
|
Example SNAC dump with flap header:
|
OSERVICE SNACs
|