Un po' di materiale su {{{splice}}} e inizio della ripulitura degli
[gapil.git] / sources / SockUtil.c
index a2a6fcdb295665a0828db434656c3bbf2e20e812..421919c2118f950c35d0f7943a6d8e8488a03c9f 100644 (file)
@@ -1,4 +1,4 @@
-/* Sockutils.c
+/* SockUtil.c
  * 
  * Copyright (C) 2004 Simone Piccardi
  * 
  */
 /***************************************************************
  *
- * File SockUtils.c 
+ * File SockUtil.c 
  * Routines for socket operations. 
  *
  * Define routines for socket handling 
  *
  * Author: S. Piccardi
  *
- * $Id$
- *
  ***************************************************************/
-#include <sys/types.h>
-#include <stdio.h>                                 /* standard I/O functions */
-#include <unistd.h>
-#include <string.h>
-#include <errno.h>
+#include <sys/types.h>   /* primitive system data types */
+#include <stdio.h>      /* standard I/O library */
+#include <unistd.h>      /* unix standard library */
+#include <string.h>      /* C strings library */
+#include <errno.h>       /* error definitions and routines */
+#include <sys/socket.h>  /* socket constants, types and functions */
 #include <arpa/inet.h>
-#include <sys/types.h>
-#include <sys/socket.h>
 #include <netinet/in.h>
 #include <netdb.h>
 
@@ -50,8 +47,6 @@
  * Author: Simone Piccardi
  * Dec. 2004
  *
- * $Id$ 
- *
  **************************************************************************/
 char *ip_ntop(struct addrinfo *addr, char *dst, socklen_t cnt)
 {
@@ -82,8 +77,6 @@ char *ip_ntop(struct addrinfo *addr, char *dst, socklen_t cnt)
  * Author: Simone Piccardi
  * Dec. 2004
  *
- * $Id$ 
- *
  ****************************************************************/
 int sockconn(char *host, char *serv, int prot, int type) 
 {
@@ -140,8 +133,6 @@ int sockconn(char *host, char *serv, int prot, int type)
  * Author: Simone Piccardi
  * Dec. 2004
  *
- * $Id$ 
- *
  ****************************************************************/
 int sockbind(char *host, char *serv, int prot, int type) 
 {
@@ -202,8 +193,6 @@ int sockbind(char *host, char *serv, int prot, int type)
  * Author: Simone Piccardi
  * Mar. 2005
  *
- * $Id$ 
- *
  ****************************************************************/
 int sockbindopt(char *host, char *serv, int prot, int type, int reuse) 
 {