X-Git-Url: https://gapil.gnulinux.it/gitweb/?a=blobdiff_plain;f=sockadv.tex;h=b6ee0ca013f455e4679e63fc28c4926e64936323;hb=3dad79fd0c4b88a38359a513de64aad465b9f43b;hp=2abcb65540dc2a5495a352b494ca76d1095e833d;hpb=f9c6b7cb541bb01ec0130e120eb75eaa83a24299;p=gapil.git diff --git a/sockadv.tex b/sockadv.tex index 2abcb65..b6ee0ca 100644 --- a/sockadv.tex +++ b/sockadv.tex @@ -32,6 +32,38 @@ disponibili con i vari tipi di socket. +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}