X-Git-Url: https://gapil.gnulinux.it/gitweb/?p=gapil.git;a=blobdiff_plain;f=socket.tex;h=0daa53a70e7955c208202a8e6f4e5774c69b4e70;hp=98a79a64db1b825aa40d988653b1140129f2fa95;hb=bff17765a4aa5e979e0a72b70917c70254e97c98;hpb=51e3c35a5012dba879b2cd3af28f08fddd6dc68c diff --git a/socket.tex b/socket.tex index 98a79a6..0daa53a 100644 --- a/socket.tex +++ b/socket.tex @@ -1,3 +1,13 @@ +%% socket.tex +%% +%% Copyright (C) 2000-2002 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 "Prefazione", +%% with no Front-Cover Texts, and with no Back-Cover Texts. A copy of the +%% license is included in the section entitled "GNU Free Documentation +%% License". +%% \chapter{Introduzione ai socket} \label{cha:socket_intro} @@ -785,8 +795,9 @@ ssize_t SockRead(int fd, void *buf, size_t count) Per questo motivo seguendo l'esempio di W. R. Stevens si sono definite due funzioni \func{SockRead} e \func{SockWrite} che eseguono la lettura da un socket tenendo conto di questa caratteristica, ed in grado di ritornare dopo -avere letto o scritto esattamente il numero di byte specificato; il sorgente -è riportato in \curfig\ e \nfig\ ed è disponibile fra i sorgenti allegati alla +avere letto o scritto esattamente il numero di byte specificato; il sorgente è +riportato in \figref{fig:sock_SockRead_code} e +\figref{fig:sock_SockWrite_code} ed è disponibile fra i sorgenti allegati alla guida nei files \file{SockRead.c} e \file{SockWrite.c}. \begin{figure}[htb]