version 1.1, 2001/06/19 07:32:58 |
version 1.3, 2001/06/21 03:09:46 |
|
|
%%$OpenXM$ |
%%$OpenXM: OpenXM/doc/ascm2001p/ox-messages.tex,v 1.2 2001/06/20 03:08:05 takayama Exp $ |
|
|
\section{OX messages} |
\section{OX messages} |
|
|
An OX message for TCP/IP is a byte stream consisting of |
An OX message for TCP/IP is a byte stream consisting of |
a header and a body. |
a header and a body. |
\begin{center} |
%\begin{tabular}{|c|c|} |
\begin{tabular}{|c|c|} |
%\hline |
\hline |
%Header & \hspace{10mm} Body \hspace{10mm} \\ |
Header & \hspace{10mm} Body \hspace{10mm} \\ |
%\hline |
\hline |
%\end{tabular}. |
\end{tabular} |
|
\end{center} |
|
The header consists of two signed 32 bit integers. |
The header consists of two signed 32 bit integers. |
The first one is an OX tag |
The first one is an OX tag |
and the second one is a serial number of the OX message. |
and the second one is a serial number of the OX message. |
|
|
%Negative numbers are expressed by the two's complement. |
%Negative numbers are expressed by the two's complement. |
%Several byte orders including the network byte order |
%Several byte orders including the network byte order |
%are allowed and the byte order is determined as a part of |
%are allowed and the byte order is determined as a part of |
%the establishment of a connection. See Section \ref{secsession} for details. |
%the establishment of a connection. See Section \ref{secsession} for details. |
|
|
The OX messages are classified into three types: |
The OX messages are classified into three types: |
DATA, COMMAND, and SPECIAL. |
DATA, COMMAND, and SPECIAL. |
%We have currently the following general tags for the OX messages: |
%We have currently the following general tags for the OX messages: |
Typical OX tags are |
Typical OX tags are |
\verb+OX_COMMAND+ (COMMAND), \verb+OX_DATA+ (DATA) and \verb+OX_SYNC_BALL+ (SPECIAL). |
\verb+OX_COMMAND+, \verb+OX_DATA+, \verb+OX_DATA_DATA_OPENMATH_XML+ |
|
and \verb+OX_SYNC_BALL+. The last one belongs to the SPECIAL category. |
|
|
%\begin{verbatim} |
%\begin{verbatim} |
%#define OX_COMMAND 513 // COMMAND |
%#define OX_COMMAND 513 // COMMAND |