X-Git-Url: https://gapil.gnulinux.it/gitweb/?p=gapil.git;a=blobdiff_plain;f=sockadv.tex;h=e8accfe77037815577e1bb968bb910afde17a9ed;hp=0f0aa32a0d7fc073dc5a234d00e9d0c66b4f25b7;hb=33a54e1bfa5e62cb90d84c2d5f2d0c53864f6bec;hpb=3925d42aafd1c1ac743c2f0a748981c26335915d diff --git a/sockadv.tex b/sockadv.tex index 0f0aa32..e8accfe 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-2011 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{urgent 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