next up previous contents
Next: Expression of OX messages Up: OX Messages Previous: OX Messages

Expressions of OX messages (Lisp like)


\begin{eqnarray*}\mbox{OXexpression}
&:& \quad
\mbox{\tt (} \mbox{\tt OX\_tag} ...
...\mbox{\tt SM\_tag} \
\{ \mbox{CMOexpression} \} \mbox{\tt )}\\
\end{eqnarray*}


A comma `,' may be used to separate elements in an expression. OX_tag is a constant which denotes an OX message tag. SM_tag is a constant which denotes an SM command tag. If a sender AAA or a receiver BBB has to be specified, 'From AAA' or 'To BBB' is written before the OXexpression.

For example the following expression means a request to push a CMO string ``Hello''.

(OX_DATA, (CMO_STRING, 5, "Hello"))

The following expression means a request to execute a local function ``hoge''.

(OX_DATA, (CMO_STRING, 5, "hoge"))
(OX_COMMAND, SM_executeStringByLocalParser)

In our standard encoding method, each tag is expressed as a 32 bit (4 bytes) integer with the network byte order.



Nobuki Takayama 平成14年1月21日