%% socket.tex
%%
-%% Copyright (C) 2000-2007 Simone Piccardi. Permission is granted to
+%% Copyright (C) 2000-2009 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",
\label{tab:net_pf_names}
\end{table}
-% TODO aggiungere PF_CAN, vedi http://lwn.net/Articles/253425
+% TODO aggiungere PF_CAN, vedi http://lwn.net/Articles/253425, dal 2.6.25
L'idea alla base della distinzione fra questi due insiemi di costanti era che
una famiglia di protocolli potesse supportare vari tipi di indirizzi, per cui
%% solo come esempio
-
-% \subsection{Il passaggio delle strutture}
-% \label{sec:sock_addr_pass}
-
-% Come detto nelle funzioni della API dei socket le strutture degli indirizzi
-% vengono sempre passate per riferimento usando un puntatore; anche la lunghezza
-% della struttura è passata come argomento, ma in questo caso la modalità del
-% passaggio dipende dalla direzione del medesimo, dal processo al kernel o
-% viceversa.
-
-% In particolare le tre funzioni \func{bind}, \func{connect} e
-% \func{sendto} passano la struttura al kernel, in questo caso è passata
-% \textsl{per valore} anche la dimensione della medesima
-
-
-% Le funzioni \func{accept}, \func{recvfrom}, \func{getsockname} e
-% \func{getpeername} invece ricevono i valori del kernel
+% TODO: trattare i socket RDS, vedi documentazione del kernel, file
+% Documentation/networking/rds.txt
dell'indirizzo (espresso in \textit{network order}) restituendo il puntatore
alla stringa che contiene l'espressione in formato dotted decimal. Si deve
tenere presente che la stringa risiede in memoria statica, per cui questa
-funzione non è rientrante.
+funzione non è \index{funzioni!rientranti} rientrante.
\subsection{Le funzioni \func{inet\_pton} e \func{inet\_ntop}}
\index{socket!definizione|)}
+
+
+
+
+
% LocalWords: socket sez cap BSD SVr XTI Transport Interface TCP stream UDP PF
% LocalWords: datagram broadcast descriptor sys int domain type protocol errno
% LocalWords: EPROTONOSUPPORT ENFILE kernel EMFILE EACCES EINVAL ENOBUFS raw
% LocalWords: sort netshort host inet aton ntoa dotted decimal const char src
% LocalWords: strptr struct dest addrptr INADDR NULL pton ntop presentation af
% LocalWords: numeric EAFNOSUPPORT size ENOSPC ENOAFSUPPORT ADDRSTRLEN ROUTE
-% LocalWords: of tcpdump
+% LocalWords: of tcpdump page
%%% Local Variables: