* Author: Simone Piccardi
* Sep. 2006
*
- * $Id$
- *
****************************************************************/
-#include <sys/socket.h>
-#include <netinet/in.h>
-#include <netinet/tcp.h>
-#include <errno.h> /* error code */
+#include <sys/socket.h> /* socket constants, types and functions */
+#include <netinet/in.h> /* IPv4 and IPv6 constants and types */
+#include <netinet/tcp.h> /* TCP constants and types */
+#include <errno.h> /* error definitions and routines */
#
int is_closing(int sock)
{
- int err;
struct tcp_info info;
socklen_t len = sizeof(info);
if (getsockopt(sock, SOL_TCP, TCP_INFO, &info, &len) != -1) {