Materiale su splice, ed esempio non funzionante
[gapil.git] / sources / mygetaddr.c
index b33f9c29db379154602a29a6896fdec5578ad326..a6e9ecd589fa33893c059628d8a8a9f3ff2803f0 100644 (file)
  *
  * Author: S. Piccardi Nov. 2004
  *
- * $Id$
- *
  *****************************************************************************/
-#include <netdb.h>
-#include <string.h>
-#include <sys/types.h>
-#include <sys/stat.h>
-#include <stdlib.h>        /* C standard library */
-#include <stdio.h>         /* I/O standard library */
-#include <unistd.h>
-#include <arpa/inet.h>
-#include <sys/socket.h>
-#include <netinet/in.h>
+#include <string.h>      /* C strings library */
+#include <sys/types.h>   /* primitive system data types */
+#include <sys/stat.h>    /* file characteristics constants and functions */
+#include <unistd.h>      /* unix standard library */
+#include <stdlib.h>      /* C standard library */
+#include <stdio.h>       /* standard I/O library */
+#include <arpa/inet.h>   /* IP addresses conversion utilities */
+#include <sys/socket.h>  /* socket constants, types and functions */
+#include <netinet/in.h>  /* IPv4 and IPv6 constants and types */
+#include <netdb.h>       /* C resolver library */
 
 #include "Gapil.h"
 /*
- * Program myhost
+ * Program mygetaddr
  *
- * Use gethostbyname and print results
+ * Use getaddrinfo and print results
  */
 /* Help printing routine */
 void usage(void);