X-Git-Url: https://gapil.gnulinux.it/gitweb/?p=gapil.git;a=blobdiff_plain;f=sockadv.tex;h=a9e4cd530383947868624e9cf6fcbe7967089df9;hp=c6ad3864c7222457e4fb631050b91c1ace746bc8;hb=26f7a8bb19c6cb198c213757a97b6ac79e40db4b;hpb=c46df2fabf1fd8946892f9adf0771831a5c0f796 diff --git a/sockadv.tex b/sockadv.tex index c6ad386..a9e4cd5 100644 --- a/sockadv.tex +++ b/sockadv.tex @@ -1,6 +1,6 @@ %% sockadv.tex %% -%% Copyright (C) 2004-2013 Simone Piccardi. Permission is granted to +%% Copyright (C) 2004-2019 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,15 @@ Tratteremo in questa sezione le funzioni di I/O più avanzate che permettono di 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} @@ -61,6 +70,7 @@ fig.~\ref{fig:sock_extended_err_struct}. \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} @@ -77,8 +87,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