From 9662c4d7b36e5ddbe648fab6e2cde3101b89e800 Mon Sep 17 00:00:00 2001 From: Refik Hadzialic Date: Wed, 12 Oct 2011 19:42:46 +0200 Subject: Report writing --- notFinishedCode/Report/test.tex.backup | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'notFinishedCode/Report/test.tex.backup') diff --git a/notFinishedCode/Report/test.tex.backup b/notFinishedCode/Report/test.tex.backup index 9d14bcc..d520c00 100644 --- a/notFinishedCode/Report/test.tex.backup +++ b/notFinishedCode/Report/test.tex.backup @@ -137,20 +137,20 @@ packets are ordered when received and data are received in a stream (i.e. multip The Server class can be seen in the following figure. The server class is implemented to accept only local connections\footnote{More details are given in the section 7.1}. First we determine our IP address and then create the socket to listen only for the same IP address (with a different IP address than the selected one a connection cannot be even established.) One has to define the port on which the server object should listen. -When receiving data one can easily define the timeout to be raised if data are not received in the timeout range or set it to \emph{0} to infinitely wait for the buffer to be filled with received data. While testing the server class we had the problem to listen on the same port if it was closed and started again in less than 60 seconds. We got the error message: "Address already in use". -This is not known as an error but rather an option to help the server to catch lost live packets. -We solved the problem by setting the socket options with the \emph{SO\_REUSEADDR} parameter. This enabled us to get around the error when we tried to restart our server application and it would not start. +When receiving data one can easily define the timeout to be raised if data are not received in the timeout range or set it to \emph{0} to infinitely wait for the buffer to be filled with received data. While testing the server class we had the problem to listen on the same port if the application was forcibly\footnote{Manually closed using CTRL+C and run again.} restarted in less than 60 seconds. We got the error message: \emph{"Address already in use"}. +This is not known as error behavior but rather an option to help the server to catch lost live packets (i.e. packets that are still in the network looking for it is goal destination.) +We solved the problem by changing the socket options with the \emph{SO\_REUSEADDR} parameter. This enabled us to get around the error when we tried to restart our server application. Before solving the problem without using the socket parameter, we had another solution to get around this problem by killing the application running the port, this old method is obsolete now. \begin{figure}[ht!] \centering - \includegraphics[width=97mm]{ServerHandlerClass.png} - \caption[]{Server class} + \includegraphics[scale=0.8]{serverClass.png} + \caption[]{Server class, used by the server application} \end{figure} -The client class can be seen in the following figure. -\begin{figure}[ht!] +With the client class we did not have any problems. There The client class can be seen in the following figure. +\begin{figure}[hb!] \centering - \includegraphics[width=90mm]{ClientClass.png} - \caption[]{Client class} + \includegraphics[scale=0.5]{ClientClass.png} + \caption[]{Client class, used by the client application} \end{figure} -- cgit v1.2.3-55-g7522