Iniziata trattazione di getaddrinfo, aggiunte figure e definizione di
[gapil.git] / listati / addrinfo.h
diff --git a/listati/addrinfo.h b/listati/addrinfo.h
new file mode 100644 (file)
index 0000000..7bd9408
--- /dev/null
@@ -0,0 +1,11 @@
+struct addrinfo
+{
+  int ai_flags;                 /* Input flags.  */
+  int ai_family;                /* Protocol family for socket.  */
+  int ai_socktype;              /* Socket type.  */
+  int ai_protocol;              /* Protocol for socket.  */
+  socklen_t ai_addrlen;         /* Length of socket address.  */
+  struct sockaddr *ai_addr;     /* Socket address for socket.  */
+  char *ai_canonname;           /* Canonical name for service location.  */
+  struct addrinfo *ai_next;     /* Pointer to next in list.  */
+};