projects
/
gapil.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Finita introduzione ai socket, con wrapper per read e write aggiunti.
[gapil.git]
/
network.tex
diff --git
a/network.tex
b/network.tex
index 473d0eb4611c6154bffaf49896fa974791c38cd1..7d1d053d6c8c1e66f039f7b8e2e0f41cbaa8ecd9 100644
(file)
--- a/
network.tex
+++ b/
network.tex
@@
-65,7
+65,7
@@
elementare per il servizio \textit{daytime}, un servizio standard che
restituisce l'ora locale della macchina a cui si effettua la richesta.
restituisce l'ora locale della macchina a cui si effettua la richesta.
-\begin{figure}[!htb
p
]
+\begin{figure}[!htb]
\footnotesize
\begin{lstlisting}{}
#include <sys/types.h> /* predefined types */
\footnotesize
\begin{lstlisting}{}
#include <sys/types.h> /* predefined types */
@@
-210,9
+210,7
@@
int main(int argc, char *argv[])
struct sockaddr_in serv_add;
char buffer[MAXLINE];
time_t timeval;
struct sockaddr_in serv_add;
char buffer[MAXLINE];
time_t timeval;
-
...
...
-
/* create socket */
if ( (list_fd = socket(AF_INET, SOCK_STREAM, 0)) < 0) {
perror("Socket creation error");
/* create socket */
if ( (list_fd = socket(AF_INET, SOCK_STREAM, 0)) < 0) {
perror("Socket creation error");