summaryrefslogtreecommitdiffstats
path: root/notFinishedCode
diff options
context:
space:
mode:
Diffstat (limited to 'notFinishedCode')
-rw-r--r--notFinishedCode/Report/serverClass.pngbin0 -> 7821 bytes
-rw-r--r--notFinishedCode/Report/test.log31
-rw-r--r--notFinishedCode/Report/test.pdfbin703705 -> 704223 bytes
-rw-r--r--notFinishedCode/Report/test.tex13
-rw-r--r--notFinishedCode/Report/test.tex.backup18
-rw-r--r--notFinishedCode/Report/test.tex~18
6 files changed, 40 insertions, 40 deletions
diff --git a/notFinishedCode/Report/serverClass.png b/notFinishedCode/Report/serverClass.png
new file mode 100644
index 0000000..a6914a4
--- /dev/null
+++ b/notFinishedCode/Report/serverClass.png
Binary files differ
diff --git a/notFinishedCode/Report/test.log b/notFinishedCode/Report/test.log
index 78507a7..636b0b7 100644
--- a/notFinishedCode/Report/test.log
+++ b/notFinishedCode/Report/test.log
@@ -1,4 +1,4 @@
-This is pdfTeX, Version 3.1415926-1.40.10 (TeX Live 2009/Debian) (format=pdflatex 2011.9.27) 12 OCT 2011 19:08
+This is pdfTeX, Version 3.1415926-1.40.10 (TeX Live 2009/Debian) (format=pdflatex 2011.9.27) 12 OCT 2011 19:42
entering extended mode
%&-line parsing enabled.
**test.tex
@@ -315,18 +315,17 @@ LaTeX Font Info: External font `cmex10' loaded for size
LaTeX Font Info: External font `cmex10' loaded for size
(Font) <5> on input line 136.
-<ServerHandlerClass.png, id=31, 359.3425pt x 181.67876pt>
-File: ServerHandlerClass.png Graphic file (type png)
-
-<use ServerHandlerClass.png>
+<serverClass.png, id=31, 302.12875pt x 181.67876pt>
+File: serverClass.png Graphic file (type png)
+ <use serverClass.png>
<ClientClass.png, id=32, 507.30705pt x 256.48764pt>
File: ClientClass.png Graphic file (type png)
<use ClientClass.png>
-[7 <./serialPort.png (PNG copy)>] [8 <./ServerHandlerClass.png (PNG copy)> <./C
-lientClass.png (PNG copy)>] <bb.jpg, id=43, 521.95pt x 516.93124pt>
+[7 <./serialPort.png (PNG copy)>] [8 <./serverClass.png (PNG copy)> <./ClientCl
+ass.png (PNG copy)>] <bb.jpg, id=43, 521.95pt x 516.93124pt>
File: bb.jpg Graphic file (type jpg)
-
-<use bb.jpg> [9
+ <use bb.jpg>
+[9
<./bb.jpg>] [10]
<protocolCommunicationHandler.png, id=51, 2486.93823pt x 792.13588pt>
@@ -349,23 +348,23 @@ File: sshTunnel.png Graphic file (type png)
<use sshTunnel.png> [13
<./sshTunnel.png (PNG copy)>] [14] [15]
-LaTeX Font Info: Try loading font information for OMS+cmr on input line 398.
+LaTeX Font Info: Try loading font information for OMS+cmr on input line 399.
(/usr/share/texmf-texlive/tex/latex/base/omscmr.fd
File: omscmr.fd 1999/05/25 v2.5h Standard LaTeX font definitions
)
LaTeX Font Info: Font shape `OMS/cmr/m/n' in size <9> not available
-(Font) Font shape `OMS/cmsy/m/n' tried instead on input line 398.
+(Font) Font shape `OMS/cmsy/m/n' tried instead on input line 399.
[16] [17] [18]
LaTeX Font Info: Font shape `OMS/cmr/m/n' in size <12> not available
-(Font) Font shape `OMS/cmsy/m/n' tried instead on input line 470.
+(Font) Font shape `OMS/cmsy/m/n' tried instead on input line 471.
<resultsImage.png, id=81, 702.625pt x 431.6125pt>
File: resultsImage.png Graphic file (type png)
<use resultsImage.png>
[19 <./resultsImage.png (PNG copy)>] [20]
-LaTeX Font Info: Try loading font information for T1+cmtt on input line 494.
+LaTeX Font Info: Try loading font information for T1+cmtt on input line 495.
(/usr/share/texmf-texlive/tex/latex/base/t1cmtt.fd
@@ -374,7 +373,7 @@ File: t1cmtt.fd 1999/05/25 v2.5h Standard LaTeX font definitions
AED: lastpage setting LastPage [21] (./test.aux) )
Here is how much of TeX's memory you used:
4908 strings out of 495061
- 67986 string characters out of 1182621
+ 67951 string characters out of 1182621
255271 words of memory out of 3000000
8021 multiletter control sequences out of 15000+50000
18484 words of font info for 43 fonts, out of 3000000 for 9000
@@ -394,9 +393,9 @@ ur/jknappen/ec/ecsx1440.600pk> </home/refik/.texmf-var/fonts/pk/ljfour/jknappen
sr/share/texmf-texlive/fonts/type1/public/amsfonts/cm/cmmi12.pfb></usr/share/te
xmf-texlive/fonts/type1/public/amsfonts/cm/cmsy10.pfb></usr/share/texmf-texlive
/fonts/type1/public/amsfonts/cm/cmsy9.pfb>
-Output written on test.pdf (21 pages, 703705 bytes).
+Output written on test.pdf (21 pages, 704223 bytes).
PDF statistics:
- 636 PDF objects out of 1000 (max. 8388607)
+ 637 PDF objects out of 1000 (max. 8388607)
0 named destinations out of 1000 (max. 500000)
56 words of extra memory for PDF output out of 10000 (max. 10000000)
diff --git a/notFinishedCode/Report/test.pdf b/notFinishedCode/Report/test.pdf
index 0bef499..e4e739e 100644
--- a/notFinishedCode/Report/test.pdf
+++ b/notFinishedCode/Report/test.pdf
Binary files differ
diff --git a/notFinishedCode/Report/test.tex b/notFinishedCode/Report/test.tex
index 23c5e7b..3b67df0 100644
--- a/notFinishedCode/Report/test.tex
+++ b/notFinishedCode/Report/test.tex
@@ -143,14 +143,15 @@ We solved the problem by changing the socket options with the \emph{SO\_REUSEADD
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!]
+In the process of testing the client class we did not have any major problems. The only major flow we had to debug was when one of the sides disconnects that we get out of the waiting loop if the timeout variable was set to \emph{0} (i.e. infinite waiting loop.)
+The client class can be seen in the following figure. To initialize the client object one needs to define the IP address and the port of the server application listening on it.
+\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}
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}
diff --git a/notFinishedCode/Report/test.tex~ b/notFinishedCode/Report/test.tex~
index 022375c..5ea3264 100644
--- a/notFinishedCode/Report/test.tex~
+++ b/notFinishedCode/Report/test.tex~
@@ -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 the application was forcibly\footnote{Manually closed using CTRL+C} restarted 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!]
+In the process of testing the client class we did not have any major problems. The only major flow we had to debug was when one of the sides disconnects that we get out of the waiting loop if the timeout variable was set to \emph{0} (i.e. infinite waiting loop.) 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}