Protocols/OSCAR/SNAC/ODIR KEYWORD LIST REPLY: Difference between revisions

From NINA Wiki
Jump to navigation Jump to search
(Created page with "{{Protocols/OSCAR}} {{Protocols/OSCAR/SNAC/Stats |origin={{Protocols/OSCAR/SNAC/ODIR__KEYWORD_LIST_REPLY/Origin}} |name=ODIR__KEYWORD_LIST_REPLY |id=0x000F, 0x0005 |service={{...")
 
Line 19: Line 19:
=== SNAC Data ===
=== SNAC Data ===
Unconfirmed: This SNAC contains no data
Unconfirmed: This SNAC contains no data
<table border="1">
<tr><th>Length</th><th>Description</th></tr>
<tr><td>2 bytes</td><td>Family (0x000f)</td></tr>
<tr><td>2 bytes</td><td>Subtype (0x0005)</td></tr>
<tr><td>2 bytes</td><td>Flags</td></tr>
<tr><td>4 bytes</td><td>Snac Request ID</td></tr>
<tr><td>2 bytes</td><td>0x0001</td></tr>
<tr><td>2 bytes</td><td>Number of interests to follow</td></tr>
<tr><td colspan="2">DATA</td></tr>
</table>
<h4>DATA</h4>
A series of interests, each with the following format
<table border="1"><tr><th>Length</th><th>Description</th></tr>
<tr><td>1 byte</td><td>Parent or child interest.  This is 0x01 if this is a parent (a group of interests), or 0x02 if this is a child (an interest).</td></tr>
<tr><td>1 byte</td><td>If this is a parent, then this is the ID of the group of interests.  If it is a child, then this is the ID of the parent.  If the ID is 0, then the interest is not in a group, it's just by itself.</td></tr>
<tr><td>2 bytes</td><td>Length <i>L</i> of the following</td></tr>
<tr><td><i>L</i> bytes</td><td>The name of the interest or interest group (ex. "Cars," "Books and Writing," "Careers").</td></tr>
</table>


=== ODIR SNACs ===
=== ODIR SNACs ===

Revision as of 11:12, 23 March 2020

OSCAR Protocol
IntroductionTermsClients
Basic
DatatypesFLAPSNACTLV
UUIDsErrorsTool IDs
Host Interaction
Rate LimitsMigrationMessages
Other Services
ADMINADVERTALERT
BARTBOSBUCPCHAT
CHAT_NAV
Tutorials
Sign OnBARTRendezvous
ICBMLocateBuddies
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
0x000F, 0x0005 Host ODIR__KEYWORD_LIST_REPLY Unspecified BOS Active 1.8

Host response to ODIR__KEYWORD_LIST_QUERY with list or error code and/or URL.

SNAC Header

Foodgroup uint16 (word) 00 0F
Subgroup uint16 (word) 00 05
Flags uint16 (word) 00 00
Request ID uint32 (dword) 00 00 00 00

SNAC Data

Unconfirmed: This SNAC contains no data

LengthDescription
2 bytesFamily (0x000f)
2 bytesSubtype (0x0005)
2 bytesFlags
4 bytesSnac Request ID
2 bytes0x0001
2 bytesNumber of interests to follow
DATA

DATA

A series of interests, each with the following format

LengthDescription
1 byteParent or child interest. This is 0x01 if this is a parent (a group of interests), or 0x02 if this is a child (an interest).
1 byteIf this is a parent, then this is the ID of the group of interests. If it is a child, then this is the ID of the parent. If the ID is 0, then the interest is not in a group, it's just by itself.
2 bytesLength L of the following
L bytesThe name of the interest or interest group (ex. "Cars," "Books and Writing," "Careers").

ODIR SNACs

SNAC List
Subgroup Origin Name
0x0001 Any ODIR__ERR
This is the error SNAC for the ODIR foodgroup.
0x0002 Client ODIR__INFO_QUERY
Client request to search for user.
0x0003 Host ODIR__INFO_REPLY
Host response to ODIR__INFO_QUERY with list of found users or error code and/or URL.
0x0004 Client ODIR__KEYWORD_LIST_QUERY
Request a list of keywords, or interests, associated with user.
0x0005 Host ODIR__KEYWORD_LIST_REPLY
Host response to ODIR__KEYWORD_LIST_QUERY with list or error code and/or URL.