X-Git-Url: https://gapil.gnulinux.it/gitweb/?p=gapil.git;a=blobdiff_plain;f=sockadv.tex;h=5a7a81ae1b0d04bd4a8229541c530f2f0775189d;hp=f50177191246d037f9904369071bdc6cfa9f4ca1;hb=5d621249af8897e27fc0a842a33e7a7ef3b9c2ca;hpb=d7db23a35bbd9c7465780719188709ca06e99eaf diff --git a/sockadv.tex b/sockadv.tex index f501771..5a7a81a 100644 --- a/sockadv.tex +++ b/sockadv.tex @@ -1,6 +1,6 @@ %% sockadv.tex %% -%% Copyright (C) 2004-2006 Simone Piccardi. Permission is granted to +%% Copyright (C) 2004-2010 Simone Piccardi. Permission is granted to %% copy, distribute and/or modify this document under the terms of the GNU Free %% Documentation License, Version 1.1 or any later version published by the %% Free Software Foundation; with the Invariant Sections being "Un preambolo", @@ -8,6 +8,7 @@ %% license is included in the section entitled "GNU Free Documentation %% License". %% + \chapter{Socket avanzati} \label{cha:advanced_socket} @@ -32,6 +33,8 @@ disponibili con i vari tipi di socket. Finora abbiamo trattato delle funzioni che permettono di inviare dati sul socket in forma semplificata. Se infatti si devono semplicemente ... +% TODO trattare anche recvmmsg, introdotta con il kernel 2.3.33, vedi +% http://kernelnewbies.org/Linux_2_6_33 \subsection{I messaggi ancillari} @@ -66,10 +69,10 @@ fig.~\ref{fig:sock_extended_err_struct}. Una caratteristica particolare dei socket TCP è quella che consente di inviare all'altro capo della comunicazione una sorta di messaggio privilegiato, che si -richide che sia trattato il prima possibile. Si fa riferimento a questa +richiede che sia trattato il prima possibile. Si fa riferimento a questa funzionalità come all'invio dei cosiddetti \textsl{dati urgenti} (o -\textit{udernt data}); tavolta essi chiamati anche dati \textit{out-of-band} -poiché, come vedremo più anvati, possono essere letti anche al di fuori del +\textit{urgent data}); talvolta essi chiamati anche dati \textit{out-of-band} +poiché, come vedremo più avanti, possono essere letti anche al di fuori del flusso di dati normale. Come già accennato in sez.~\ref{sec:file_multiplexing} la presenza di dati @@ -120,11 +123,12 @@ IP associate per i pacchetti associati ad un socket. Vedremo qui il significato di tali opzioni e le modalità con cui esse possono essere utilizzate ed impostate. +% LocalWords: socket of multiplexing sez sendmsg recvmsg RECVERR kernel MSG +% LocalWords: ERRQUEUE sock err fig TCP dell'I setsockopt OPTIONS urgent poll +% LocalWords: select descriptor exceptfds POLLRDBAND OOBINLINE ioctl all' mark +% LocalWords: SIOCATMARK %%% Local Variables: %%% mode: latex %%% TeX-master: "gapil" %%% End: - -% LocalWords: socket of multiplexing sez sendmsg recvmsg RECVERR kernel MSG -% LocalWords: ERRQUEUE sock err fig TCP dell'I setsockopt OPTIONS