X-Git-Url: https://gapil.gnulinux.it/gitweb/?p=gapil.git;a=blobdiff_plain;f=socket.tex;h=9f0ef002e3c96277026416cbf6cb329656aa4905;hp=521c2417be77868d5d191b83bcc98ed19a83c360;hb=b81723c64c1d63b89cd3cec12f2fcccc4a756967;hpb=47a00595786c34a03266f19dd5163a45da63e29f diff --git a/socket.tex b/socket.tex index 521c241..9f0ef00 100644 --- a/socket.tex +++ b/socket.tex @@ -1,6 +1,6 @@ %% socket.tex %% -%% Copyright (C) 2000-2007 Simone Piccardi. Permission is granted to +%% Copyright (C) 2000-2010 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", @@ -219,7 +219,7 @@ i capi della comunicazione. \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 @@ -728,23 +728,8 @@ lunghezza effettiva del pacchetto cos %% 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 @@ -956,7 +941,7 @@ L'ultima funzione, \func{inet\_ntoa}, converte il valore a 32 bit 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}} @@ -1028,6 +1013,11 @@ sez.~\ref{sec:IP_ipv6_notation} per IPv6. \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 @@ -1052,7 +1042,7 @@ sez.~\ref{sec:IP_ipv6_notation} per IPv6. % 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: