%% sockadv.tex
%%
-%% Copyright (C) 2004-2011 Simone Piccardi. Permission is granted to
+%% Copyright (C) 2004-2018 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",
controllare le funzionalità specifiche della comunicazione dei dati che sono
disponibili con i vari tipi di socket.
+\subsection{La funzioni \func{send} e \func{recv}}
+\label{sec:net_send_recv}
+
+Da fare
+
+
+% TODO: note su MSG_ZEROCOPY/SOCK_ZEROCOPY, aggiunte con il kernel 4.14 (e per
+% la ricezione con il kernel 4.18, vedi https://lwn.net/Articles/726917/ e
+% https://lwn.net/Articles/752300/
\subsection{La funzioni \func{sendmsg} e \func{recvmsg}}
\label{sec:net_sendmsg}
\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
\label{fig:sock_extended_err_struct}
\end{figure}
-
-
+% TODO vedi man cmsg
\subsection{I \textsl{dati urgenti} o \textit{out-of-band}}
\label{sec:TCP_urgent_data}
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