version 1.4, 2000/01/07 06:27:55 |
version 1.5, 2000/01/11 05:35:48 |
|
|
% $OpenXM: OpenXM/doc/issac2000/session-management.tex,v 1.3 2000/01/04 09:14:14 noro Exp $ |
% $OpenXM: OpenXM/doc/issac2000/session-management.tex,v 1.4 2000/01/07 06:27:55 noro Exp $ |
|
|
\section{Session Management} |
\section{Session Management} |
\label{secsession} |
\label{secsession} |
Line 31 A server reads data from the stream {\bf 3} and writes |
|
Line 31 A server reads data from the stream {\bf 3} and writes |
|
stream {\bf 4}. The streams {\bf 1} and {\bf 2} are provided for |
stream {\bf 4}. The streams {\bf 1} and {\bf 2} are provided for |
diagnostic messages from the server. As {\bf 3} and {\bf 4} are |
diagnostic messages from the server. As {\bf 3} and {\bf 4} are |
streams for binary data, the byte order conversion is necessary when a |
streams for binary data, the byte order conversion is necessary when a |
client and a server have different byte orders. There are several |
client and a server have different byte orders. Various |
methods to treat it and we adopted the following scheme. |
methods are possible to treat it and we adopted the following scheme. |
|
|
\begin{itemize} |
\begin{itemize} |
\item A server writes 1 byte representing the preferable byte order. |
\item A server writes 1 byte representing the preferable byte order. |
Line 42 preferable byte order. |
|
Line 42 preferable byte order. |
|
the byte order is used. Otherwise the network byte order is used. |
the byte order is used. Otherwise the network byte order is used. |
\end{itemize} |
\end{itemize} |
|
|
This implies that all servers and clients can handle the network byte |
This implies that all servers and clients should be able to |
|
handle the network byte |
order. Nevertheless it is necessary to negotiate the byte order to |
order. Nevertheless it is necessary to negotiate the byte order to |
skip the byte order conversion because its cost is often dominant over |
skip the byte order conversion because its cost is often dominant over |
fast networks. |
fast networks. |
Line 192 then it is possible that the engine receives it before |
|
Line 193 then it is possible that the engine receives it before |
|
the signal. We note that we really encountered serious bugs caused |
the signal. We note that we really encountered serious bugs caused |
by such an inappropriate protocol before reaching the final specification. |
by such an inappropriate protocol before reaching the final specification. |
|
|
\subsection{Debugging} |
\subsection{Debugging supports} |
An OpenXM server may allow definition and execution of functions |
An OpenXM server may allow definition and execution of functions |
written in the user language proper to the server. To help debugging |
written in the user language proper to the server. To help debugging |
such functions on the server, various supports are possible. If |
such functions on the server, various supports are possible. If |