changeset 355:c42c49f33228

moved a figure to a different place
date Wed, 28 Jan 2009 11:26:59 +0100
parents fa5fb3b77cc8
children 1bee308d0f1c
files thesis/tex/5-Improvements.tex
diffstat 1 files changed, 8 insertions(+), 8 deletions(-) [+]
line diff
     1.1 --- a/thesis/tex/5-Improvements.tex	Wed Jan 28 11:26:32 2009 +0100
     1.2 +++ b/thesis/tex/5-Improvements.tex	Wed Jan 28 11:26:59 2009 +0100
     1.3 @@ -405,14 +405,6 @@
     1.5  Left is only communication between the receiver modules and \name{queue-in}, and between \name{queue-out} and the transport modules. Data is exchanged using \unix\ pipes and a simple protocol. Figure \ref{fig:ipc-protocol} shows a state diagram for the protocol. Solid lines indicate client actions, dashed lines indicate server responses.
     1.7 -\begin{figure}[hbt]
     1.8 -	\begin{center}
     1.9 -		\includegraphics[scale=0.75]{img/ipc-protocol.eps}
    1.10 -	\end{center}
    1.11 -	\caption{State diagram of the \NAME{IPC} protocol}
    1.12 -	\label{fig:ipc-protocol}
    1.13 -\end{figure}
    1.14 -
    1.15  \paragraph{Timing}
    1.16  One dialog consists of exactly three phases: connection attempt, envelope and header transfer, and transfer of the message body. The order is always the same. The three phases are all initiated by the client process; after each phase the server process sends a success or error reply. Timeouts for each phase need to be implemented.
    1.18 @@ -421,6 +413,14 @@
    1.20  The client indicates the end of each data transfer with a special terminator sequence. The appearance of this terminator sequence tells the server process that the data transfer is complete and makes the server send a reply. The server process takes responsibility of the data in sending a success reply. A failure reply immediately stops the dialog and resets both client and server to the state before the connection attempt.
    1.22 +\begin{figure}
    1.23 +	\begin{center}
    1.24 +		\includegraphics[scale=0.75]{img/ipc-protocol.eps}
    1.25 +	\end{center}
    1.26 +	\caption{State diagram of the \NAME{IPC} protocol}
    1.27 +	\label{fig:ipc-protocol}
    1.28 +\end{figure}
    1.29 +
    1.30  \paragraph{Syntax}
    1.31  Data transfer is done by sending plain text data. \name{Line Feed}---the native line separator on \unix---is used as line separator. The terminator sequence used to indicate the end of the data transfer is the \NAME{ASCII} \name{null} character (`\texttt{\textbackslash0}'). Replies are one-digit numbers with `\texttt{0}' meaning success and any other number (`\texttt{1}'--`\texttt{9}') indicate failure.