Annotation of OpenXM/doc/issac2000/ox-messages.tex, Revision 1.7
1.7 ! takayama 1: %%$OpenXM: OpenXM/doc/issac2000/ox-messages.tex,v 1.6 2000/01/15 12:18:42 takayama Exp $
1.1 takayama 2:
1.4 ohara 3: \section{OX messages}
1.1 takayama 4:
5: An OX message for TCP/IP is a byte stream consisting of
6: a header and a body.
7: \begin{center}
8: \begin{tabular}{|c|c|}
9: \hline
10: Header & \hspace{10mm} Body \hspace{10mm} \\
11: \hline
12: \end{tabular}
13: \end{center}
14: The header consists of two signed 32 bit integers.
15: The first one is an OX tag
16: and the second one is a serial number of the OX message.
1.6 takayama 17: %Negative numbers are expressed by the two's complement.
1.1 takayama 18: Several byte orders including the network byte order
19: are allowed and the byte order is determined as a part of
1.5 noro 20: the establishment of a connection. See Section \ref{secsession} for details.
1.1 takayama 21:
1.4 ohara 22: The OX messages are classified into three types:
1.5 noro 23: DATA, COMMAND, and SPECIAL.
1.6 takayama 24: We have currently the following general tags for the OX messages.
1.1 takayama 25: \begin{verbatim}
26: #define OX_COMMAND 513 // COMMAND
27: #define OX_DATA 514 // DATA
1.5 noro 28: #define OX_SYNC_BALL 515 // SPECIAL
1.1 takayama 29: #define OX_DATA_WITH_LENGTH 521 // DATA
30: #define OX_DATA_OPENMATH_XML 523 // DATA
31: #define OX_DATA_OPENMATH_BINARY 524 // DATA
32: #define OX_DATA_MP 525 // DATA
33: \end{verbatim}
34:
1.7 ! takayama 35: A new OX tag may be added.
1.1 takayama 36: The new tag should be classified into DATA or COMMAND.
1.6 takayama 37: For example, \verb+ OX_DATA_ASIR_LOCAL_BINARY + was added recently
1.7 ! takayama 38: to send internal serialized objects of Asir via the OpenXM protocol.
1.4 ohara 39: This is a tag classified to DATA.
1.6 takayama 40: See the web page of OpenXM to add a new tag \cite{openxm-web}.
1.1 takayama 41:
1.5 noro 42: %An OpenXM client admit that its own command sends some OX messages
43: %sequentially at once.
44: %
45: %For example, the asir command
46: %{\tt ox\_execute\_string(P, "Print[x+y]")} sends an OX data message
47: %{\tt (OX\_DATA, (CMO\_STRING, "Print[x+y]"))} and an OX command message
48: %{\tt (OX\_COMMAND, (SM\_executeStringByLocalParser))} to an OpenXM
49: %server.
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>