X-Git-Url: https://gapil.gnulinux.it/gitweb/?p=gapil.git;a=blobdiff_plain;f=sockadv.tex;h=d41ab8ffb405436228b29321970d7cdac9de1230;hp=8692ff7605835954eef66cc46557d68adfa04a43;hb=fae1b357c38b50ce788f3f06f7153b1ce4ee57df;hpb=583032fbff658a947c477c6fd25f87c13d884e85 diff --git a/sockadv.tex b/sockadv.tex index 8692ff7..d41ab8f 100644 --- a/sockadv.tex +++ b/sockadv.tex @@ -1,6 +1,6 @@ %% sockadv.tex %% -%% Copyright (C) 2004-2011 Simone Piccardi. Permission is granted to +%% Copyright (C) 2004-2017 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", @@ -36,6 +36,9 @@ 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 +% TODO trattare anche sendmmsg, introdotta con il kernel 3.0, vedi +% + \subsection{I messaggi ancillari} \label{sec:net_ancillary_data} @@ -47,10 +50,9 @@ caso sarà passato come messaggio ancillare una struttura di tipo \struct{sock\_extended\_err} illustrata in fig.~\ref{fig:sock_extended_err_struct}. - \begin{figure}[!htb] \footnotesize \centering - \begin{minipage}[c]{15cm} + \begin{minipage}[c]{\textwidth} \includestruct{listati/sock_extended_err.h} \end{minipage} \caption{La struttura \structd{sock\_extended\_err} usata dall'opzione @@ -60,8 +62,6 @@ fig.~\ref{fig:sock_extended_err_struct}. \end{figure} - - \subsection{I \textsl{dati urgenti} o \textit{out-of-band}} \label{sec:TCP_urgent_data} @@ -77,8 +77,8 @@ flusso di dati normale. Come già accennato in sez.~\ref{sec:file_multiplexing} la presenza di dati urgenti viene rilevata in maniera specifica sia di \func{select} (con il -\itindex{file~descriptor~set} \textit{file descriptor set} \param{exceptfds}) -che da \func{poll} (con la condizione \const{POLLRDBAND}). +\textit{file descriptor set} \param{exceptfds}) che da \func{poll} (con la +condizione \const{POLLRDBAND}). Le modalità di lettura dei dati urgenti sono due, la prima e più comune