summaryrefslogtreecommitdiffstats
path: root/notFinishedCode/Report
diff options
context:
space:
mode:
Diffstat (limited to 'notFinishedCode/Report')
-rw-r--r--notFinishedCode/Report/test.log6
-rw-r--r--notFinishedCode/Report/test.pdfbin702639 -> 703705 bytes
-rw-r--r--notFinishedCode/Report/test.tex10
-rw-r--r--notFinishedCode/Report/test.tex.backup7
-rw-r--r--notFinishedCode/Report/test.tex~8
5 files changed, 18 insertions, 13 deletions
diff --git a/notFinishedCode/Report/test.log b/notFinishedCode/Report/test.log
index a8fba90..78507a7 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 14:56
+This is pdfTeX, Version 3.1415926-1.40.10 (TeX Live 2009/Debian) (format=pdflatex 2011.9.27) 12 OCT 2011 19:08
entering extended mode
%&-line parsing enabled.
**test.tex
@@ -394,9 +394,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, 702639 bytes).
+Output written on test.pdf (21 pages, 703705 bytes).
PDF statistics:
- 634 PDF objects out of 1000 (max. 8388607)
+ 636 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 29e3752..0bef499 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 131abe8..23c5e7b 100644
--- a/notFinishedCode/Report/test.tex
+++ b/notFinishedCode/Report/test.tex
@@ -135,12 +135,12 @@ Our socket communication code is based on the example given in the Python socket
We extended it into two classes, a client and a server class. We had used the TCP protocol to base our two classes on\footnote{TCP is reliable compared to UDP (i.e. transmitted packets get also delivered),
packets are ordered when received and data are received in a stream (i.e. multiple packets can be read at once.)}.
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 and listen only for the same IP address (a different IP address than the selected one cannot connect to the server.)
+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. 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.
-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.
+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}
diff --git a/notFinishedCode/Report/test.tex.backup b/notFinishedCode/Report/test.tex.backup
index 43541a7..9d14bcc 100644
--- a/notFinishedCode/Report/test.tex.backup
+++ b/notFinishedCode/Report/test.tex.backup
@@ -135,9 +135,12 @@ Our socket communication code is based on the example given in the Python socket
We extended it into two classes, a client and a server class. We had used the TCP protocol to base our two classes on\footnote{TCP is reliable compared to UDP (i.e. transmitted packets get also delivered),
packets are ordered when received and data are received in a stream (i.e. multiple packets can be read at once.)}.
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 and listen only for the same IP address (a different IP address than the selected one cannot connect to the server.)
+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.
+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.
+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}
diff --git a/notFinishedCode/Report/test.tex~ b/notFinishedCode/Report/test.tex~
index 501dda6..022375c 100644
--- a/notFinishedCode/Report/test.tex~
+++ b/notFinishedCode/Report/test.tex~
@@ -135,10 +135,12 @@ Our socket communication code is based on the example given in the Python socket
We extended it into two classes, a client and a server class. We had used the TCP protocol to base our two classes on\footnote{TCP is reliable compared to UDP (i.e. transmitted packets get also delivered),
packets are ordered when received and data are received in a stream (i.e. multiple packets can be read at once.)}.
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 and listen only for the same IP address (a different IP address than the selected one cannot connect to the server.)
+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. 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"
-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.
+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.
+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}