Riordinamento completo degli indici. Create della macro ad hoc per la
[gapil.git] / sockadv.tex
index 9c238b6f7e377e46e63d21b9c62271949a4cedf8..b6ee0ca013f455e4679e63fc28c4926e64936323 100644 (file)
@@ -1,6 +1,6 @@
 %% sockadv.tex
 %%
-%% Copyright (C) 2004 Simone Piccardi.  Permission is granted to
+%% Copyright (C) 2004-2005 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",
@@ -26,6 +26,44 @@ controllare le funzionalit
 disponibili con i vari tipi di socket.
 
 
+\subsection{I messaggi ancillari}
+\label{sec:TCP_ancillary_data}
+
+
+
+
+Quanto è stata attivata l'opzione \const{IP\_RECVERR} il kernel attiva per il
+socket una speciale coda su cui vengono inviati tutti gli errori riscontrati.
+Questi possono essere riletti usando il flag \const{MSG\_ERRQUEUE}, nel qual
+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}
+    \includestruct{listati/sock_extended_err.h}
+  \end{minipage}
+  \caption{La struttura \structd{sock\_extended\_err} usata dall'opzione
+    \const{IP\_RECVERR} per ottenere le informazioni relative agli errori su
+    un socket.}
+  \label{fig:sock_extended_err_struct}
+\end{figure}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
 \subsection{I dati \textit{out-of-band}}
 \label{sec:TCP_urgent_data}