X-Git-Url: https://gapil.gnulinux.it/gitweb/?p=gapil.git;a=blobdiff_plain;f=elemtcp.tex;h=efd8a05810496e08f9d12053cdf117608bab15b9;hp=6cf1129c91857f2cc05c01db1d79ce6d1767a04f;hb=a051e3c3d3b403ee210274d8c2ec7d756c531a21;hpb=faea6309c25cc36f5552f9998f357cef6d3ae7c8 diff --git a/elemtcp.tex b/elemtcp.tex index 6cf1129..efd8a05 100644 --- a/elemtcp.tex +++ b/elemtcp.tex @@ -701,8 +701,8 @@ Per specificare un indirizzo generico con IPv4 si usa il valore è pari a zero, nell'esempio \figref{fig:net_serv_code} si è usata un'assegnazione immediata del tipo: -\begin{lstlisting}[labelstep=0,frame=,indent=1cm]{} -serv_add.sin_addr.s_addr = htonl(INADDR_ANY); /* connect from anywhere */ +\begin{lstlisting}[stepnumber=0,frame=]{} + serv_add.sin_addr.s_addr = htonl(INADDR_ANY); /* connect from anywhere */ \end{lstlisting} Si noti che si è usato \func{htonl} per assegnare il valore @@ -741,8 +741,8 @@ Per questo motivo nell'header \file{netinet/in.h} \const{in6addr\_any} (dichiarata come \direct{extern}, ed inizializzata dal sistema al valore \const{IN6ADRR\_ANY\_INIT}) che permette di effettuare una assegnazione del tipo: -\begin{lstlisting}[labelstep=0,frame=,indent=1cm]{} -serv_add.sin6_addr = in6addr_any; /* connect from anywhere */ +\begin{lstlisting}[stepnumber=0,frame=]{} + serv_add.sin6_addr = in6addr_any; /* connect from anywhere */ \end{lstlisting} in maniera analoga si può utilizzare la variabile \const{in6addr\_loopback} per indicare l'indirizzo di \textit{loopback}, che a sua volta viene