X-Git-Url: https://gapil.gnulinux.it/gitweb/?p=gapil.git;a=blobdiff_plain;f=elemtcp.tex;h=6707447b9b44abe31d6ef8a89c69b8ef0b59e8c8;hp=efc956fb6d7aa01db3998b20ba1370fd8b93ea04;hb=b65121906b3a8fff20f19fa84d3a42c0877477ac;hpb=a93a0bac951085a52c4b33c42a607fc81f6868d2 diff --git a/elemtcp.tex b/elemtcp.tex index efc956f..6707447 100644 --- a/elemtcp.tex +++ b/elemtcp.tex @@ -1194,7 +1194,7 @@ certo socket; la prima restituisce l'indirizzo locale, la seconda quello remoto. \begin{prototype}{sys/socket.h} -{int getsockname(int sockfd, struct sockaddr * name, socklen_t * namelen)} +{int getsockname(int sockfd, struct sockaddr * name, socklen\_t * namelen)} La funzione restituisce 0 in caso di successo e -1 in caso di errore. I codici di errore restituiti in \texttt{errno} sono i seguenti: @@ -1223,7 +1223,7 @@ quella connessione. \begin{prototype}{sys/socket.h} -{int getpeername(int sockfd, struct sockaddr * name, socklen_t * namelen)} +{int getpeername(int sockfd, struct sockaddr * name, socklen\_t * namelen)} La funzione restituisce 0 in caso di successo e -1 in caso di errore. I codici di errore restituiti in \texttt{errno} sono i seguenti: