Protocols/OSCAR/Messages: Difference between revisions

From NINA Wiki
Jump to navigation Jump to search
Line 4: Line 4:


== Message Types ==
== Message Types ==
    <b>Message types</b>. Each OSCAR message has type. It can be just plain message,
    url message, contact list, wwp, email express or another. Only one byte used for
    message type. Here is the list of known message types:<br><br>
<table width=570 cellSpacing=1 cellPadding=1 border=0>
<tr>
<td bgcolor=#f9f9f9 width=50 valign=top>&nbsp;&nbsp;<b>0x01</b></td>
<td bgcolor=#f9f9f9 width=1 valign=top>&nbsp;&nbsp;MTYPE_PLAIN&nbsp;&nbsp;</td>
<td bgcolor=#f9f9f9 width=350 valign=top>&nbsp;&nbsp;Plain text (simple) message</td>
</tr>
<tr>
<td bgcolor=#f9f9f9 valign=top>&nbsp;&nbsp;<b>0x02</b></td>
<td bgcolor=#f9f9f9 valign=top>&nbsp;&nbsp;MTYPE_CHAT&nbsp;&nbsp;</td>
<td bgcolor=#f9f9f9 valign=top>&nbsp;&nbsp;Chat request message</td>
</tr>
<tr>
<td bgcolor=#f9f9f9 valign=top>&nbsp;&nbsp;<b>0x03</b></td>
<td bgcolor=#f9f9f9 valign=top>&nbsp;&nbsp;MTYPE_FILEREQ&nbsp;&nbsp;</td>
<td bgcolor=#f9f9f9 valign=top>&nbsp;&nbsp;File request / file ok message</td>
</tr>
<tr>
<td bgcolor=#f9f9f9 valign=top>&nbsp;&nbsp;<b>0x04</b></td>
<td bgcolor=#f9f9f9 valign=top>&nbsp;&nbsp;MTYPE_URL&nbsp;&nbsp;</td>
<td bgcolor=#f9f9f9 valign=top>&nbsp;&nbsp;URL message (0xFE formatted)</td>
</tr>
<tr>
<td bgcolor=#f9f9f9 valign=top>&nbsp;&nbsp;<b>0x06</b></td>
<td bgcolor=#f9f9f9 valign=top>&nbsp;&nbsp;MTYPE_AUTHREQ&nbsp;&nbsp;</td>
<td bgcolor=#f9f9f9 valign=top>&nbsp;&nbsp;Authorization request message (0xFE formatted)</td>
</tr>
<tr>
<td bgcolor=#f9f9f9 valign=top>&nbsp;&nbsp;<b>0x07</b></td>
<td bgcolor=#f9f9f9 valign=top>&nbsp;&nbsp;MTYPE_AUTHDENY&nbsp;&nbsp;</td>
<td bgcolor=#f9f9f9 valign=top>&nbsp;&nbsp;Authorization denied message (0xFE formatted)</td>
</tr>
<tr>
<td bgcolor=#f9f9f9 valign=top>&nbsp;&nbsp;<b>0x08</b></td>
<td bgcolor=#f9f9f9 valign=top>&nbsp;&nbsp;MTYPE_AUTHOK&nbsp;&nbsp;</td>
<td bgcolor=#f9f9f9 valign=top>&nbsp;&nbsp;Authorization given message (empty)</td>
</tr>
<tr>
<td bgcolor=#f9f9f9 valign=top>&nbsp;&nbsp;<b>0x09</b></td>
<td bgcolor=#f9f9f9 valign=top>&nbsp;&nbsp;MTYPE_SERVER&nbsp;&nbsp;</td>
<td bgcolor=#f9f9f9 valign=top>&nbsp;&nbsp;Message from OSCAR server (0xFE formatted)</td>
</tr>
<tr>
<td bgcolor=#f9f9f9 valign=top>&nbsp;&nbsp;<b>0x0C</b></td>
<td bgcolor=#f9f9f9 valign=top>&nbsp;&nbsp;MTYPE_ADDED&nbsp;&nbsp;</td>
<td bgcolor=#f9f9f9 valign=top>&nbsp;&nbsp;"You-were-added" message (0xFE formatted)</td>
</tr>
<tr>
<td bgcolor=#f9f9f9 valign=top>&nbsp;&nbsp;<b>0x0D</b></td>
<td bgcolor=#f9f9f9 valign=top>&nbsp;&nbsp;MTYPE_WWP&nbsp;&nbsp;</td>
<td bgcolor=#f9f9f9 valign=top>&nbsp;&nbsp;Web pager message (0xFE formatted)</td>
</tr>
<tr>
<td bgcolor=#f9f9f9 valign=top>&nbsp;&nbsp;<b>0x0E</b></td>
<td bgcolor=#f9f9f9 valign=top>&nbsp;&nbsp;MTYPE_EEXPRESS&nbsp;&nbsp;</td>
<td bgcolor=#f9f9f9 valign=top>&nbsp;&nbsp;Email express message (0xFE formatted)</td>
</tr>
<tr>
<td bgcolor=#f9f9f9 valign=top>&nbsp;&nbsp;<b>0x13</b></td>
<td bgcolor=#f9f9f9 valign=top>&nbsp;&nbsp;MTYPE_CONTACTS&nbsp;&nbsp;</td>
<td bgcolor=#f9f9f9 valign=top>&nbsp;&nbsp;Contact list message</td>
</tr>
<tr>
<td bgcolor=#f9f9f9 valign=top>&nbsp;&nbsp;<b>0x1A</b></td>
<td bgcolor=#f9f9f9 valign=top>&nbsp;&nbsp;MTYPE_PLUGIN&nbsp;&nbsp;</td>
<td bgcolor=#f9f9f9 valign=top>&nbsp;&nbsp;Plugin message described by text string</td>
</tr>
<tr>
<td bgcolor=#f9f9f9 valign=top>&nbsp;&nbsp;<b>0xE8</b></td>
<td bgcolor=#f9f9f9 valign=top>&nbsp;&nbsp;MTYPE_AUTOAWAY&nbsp;&nbsp;</td>
<td bgcolor=#f9f9f9 valign=top>&nbsp;&nbsp;Auto away message </td>
</tr>
<tr>
<td bgcolor=#f9f9f9 valign=top>&nbsp;&nbsp;<b>0xE9</b></td>
<td bgcolor=#f9f9f9 valign=top>&nbsp;&nbsp;MTYPE_AUTOBUSY&nbsp;&nbsp;</td>
<td bgcolor=#f9f9f9 valign=top>&nbsp;&nbsp;Auto occupied message </td>
</tr>
<tr>
<td bgcolor=#f9f9f9 valign=top>&nbsp;&nbsp;<b>0xEA</b></td>
<td bgcolor=#f9f9f9 valign=top>&nbsp;&nbsp;MTYPE_AUTONA&nbsp;&nbsp;</td>
<td bgcolor=#f9f9f9 valign=top>&nbsp;&nbsp;Auto not available message </td>
</tr>
<tr>
<td bgcolor=#f9f9f9 valign=top>&nbsp;&nbsp;<b>0xEB</b></td>
<td bgcolor=#f9f9f9 valign=top>&nbsp;&nbsp;MTYPE_AUTODND&nbsp;&nbsp;</td>
<td bgcolor=#f9f9f9 valign=top>&nbsp;&nbsp;Auto do not disturb message </td>
</tr>
<tr>
<td bgcolor=#f9f9f9 valign=top>&nbsp;&nbsp;<b>0xEC</b></td>
<td bgcolor=#f9f9f9 valign=top>&nbsp;&nbsp;MTYPE_AUTOFFC&nbsp;&nbsp;</td>
<td bgcolor=#f9f9f9 valign=top>&nbsp;&nbsp;Auto free for chat message </td>
</tr>
</table>


== Message Flags ==
== Message Flags ==

Revision as of 11:33, 14 February 2021

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)


Message

Message Types

   Message types. Each OSCAR message has type. It can be just plain message,
   url message, contact list, wwp, email express or another. Only one byte used for
   message type. Here is the list of known message types:

  0x01   MTYPE_PLAIN     Plain text (simple) message
  0x02   MTYPE_CHAT     Chat request message
  0x03   MTYPE_FILEREQ     File request / file ok message
  0x04   MTYPE_URL     URL message (0xFE formatted)
  0x06   MTYPE_AUTHREQ     Authorization request message (0xFE formatted)
  0x07   MTYPE_AUTHDENY     Authorization denied message (0xFE formatted)
  0x08   MTYPE_AUTHOK     Authorization given message (empty)
  0x09   MTYPE_SERVER     Message from OSCAR server (0xFE formatted)
  0x0C   MTYPE_ADDED     "You-were-added" message (0xFE formatted)
  0x0D   MTYPE_WWP     Web pager message (0xFE formatted)
  0x0E   MTYPE_EEXPRESS     Email express message (0xFE formatted)
  0x13   MTYPE_CONTACTS     Contact list message
  0x1A   MTYPE_PLUGIN     Plugin message described by text string
  0xE8   MTYPE_AUTOAWAY     Auto away message
  0xE9   MTYPE_AUTOBUSY     Auto occupied message
  0xEA   MTYPE_AUTONA     Auto not available message
  0xEB   MTYPE_AUTODND     Auto do not disturb message
  0xEC   MTYPE_AUTOFFC     Auto free for chat message

Message Flags

   Message flags. Message flag used to indicate additional message properties.

like auto message, multiple recipients message, etc. Message flag field occupy 1 byte. Here is the list of known message flag codes:

  0x01   MFLAG_NORMAL     Normal message
  0x03   MFLAG_AUTO     Auto-message flag
  0x80   MFLG_MULTI     This is multiple recipients message