libpcap  1.10.1
About: libpcap is a packet filter library used by tools like tcpdump.
  Fossies Dox: libpcap-1.10.1.tar.gz  ("unofficial" and yet experimental doxygen-generated source code documentation)  

socket.h File Reference
#include <sys/types.h>
#include <sys/socket.h>
#include <netdb.h>
#include <netinet/in.h>
#include <arpa/inet.h>
Include dependency graph for socket.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define SOCKET   int
 In Winsock, a socket handle is of type SOCKET; in UN*X, it's a file descriptor, and therefore a signed integer. We define SOCKET to be a signed integer on UN*X, so that it can be used on both platforms. More...
 
#define INVALID_SOCKET   -1
 In Winsock, the error return if socket() fails is INVALID_SOCKET; in UN*X, it's -1. We define INVALID_SOCKET to be -1 on UN*X, so that it can be used on both platforms. More...
 

Macro Definition Documentation

◆ INVALID_SOCKET

#define INVALID_SOCKET   -1

In Winsock, the error return if socket() fails is INVALID_SOCKET; in UN*X, it's -1. We define INVALID_SOCKET to be -1 on UN*X, so that it can be used on both platforms.

Definition at line 80 of file socket.h.

◆ SOCKET

#define SOCKET   int

In Winsock, a socket handle is of type SOCKET; in UN*X, it's a file descriptor, and therefore a signed integer. We define SOCKET to be a signed integer on UN*X, so that it can be used on both platforms.

Definition at line 70 of file socket.h.