Bitcoin Core  24.99.0
P2P Digital Currency
Macros | Typedefs
compat.h File Reference
#include <fcntl.h>
#include <sys/mman.h>
#include <sys/select.h>
#include <sys/socket.h>
#include <sys/types.h>
#include <net/if.h>
#include <netinet/in.h>
#include <netinet/tcp.h>
#include <arpa/inet.h>
#include <ifaddrs.h>
#include <limits.h>
#include <netdb.h>
#include <unistd.h>
#include <cerrno>
Include dependency graph for compat.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define WSAGetLastError()   errno
 
#define WSAEINVAL   EINVAL
 
#define WSAEWOULDBLOCK   EWOULDBLOCK
 
#define WSAEAGAIN   EAGAIN
 
#define WSAEMSGSIZE   EMSGSIZE
 
#define WSAEINTR   EINTR
 
#define WSAEINPROGRESS   EINPROGRESS
 
#define WSAEADDRINUSE   EADDRINUSE
 
#define INVALID_SOCKET   (SOCKET)(~0)
 
#define SOCKET_ERROR   -1
 
#define MAX_PATH   1024
 
#define MAIN_FUNCTION   int main(int argc, char* argv[])
 
#define MSG_NOSIGNAL   0
 
#define MSG_DONTWAIT   0
 

Typedefs

typedef unsigned int SOCKET
 
typedef void * sockopt_arg_type
 

Macro Definition Documentation

◆ INVALID_SOCKET

#define INVALID_SOCKET   (SOCKET)(~0)

Definition at line 54 of file compat.h.

◆ MAIN_FUNCTION

#define MAIN_FUNCTION   int main(int argc, char* argv[])

Definition at line 102 of file compat.h.

◆ MAX_PATH

#define MAX_PATH   1024

Definition at line 77 of file compat.h.

◆ MSG_DONTWAIT

#define MSG_DONTWAIT   0

Definition at line 119 of file compat.h.

◆ MSG_NOSIGNAL

#define MSG_NOSIGNAL   0

Definition at line 114 of file compat.h.

◆ SOCKET_ERROR

#define SOCKET_ERROR   -1

Definition at line 55 of file compat.h.

◆ WSAEADDRINUSE

#define WSAEADDRINUSE   EADDRINUSE

Definition at line 53 of file compat.h.

◆ WSAEAGAIN

#define WSAEAGAIN   EAGAIN

Definition at line 49 of file compat.h.

◆ WSAEINPROGRESS

#define WSAEINPROGRESS   EINPROGRESS

Definition at line 52 of file compat.h.

◆ WSAEINTR

#define WSAEINTR   EINTR

Definition at line 51 of file compat.h.

◆ WSAEINVAL

#define WSAEINVAL   EINVAL

Definition at line 47 of file compat.h.

◆ WSAEMSGSIZE

#define WSAEMSGSIZE   EMSGSIZE

Definition at line 50 of file compat.h.

◆ WSAEWOULDBLOCK

#define WSAEWOULDBLOCK   EWOULDBLOCK

Definition at line 48 of file compat.h.

◆ WSAGetLastError

#define WSAGetLastError ( )    errno

Definition at line 46 of file compat.h.

Typedef Documentation

◆ SOCKET

typedef unsigned int SOCKET

Definition at line 44 of file compat.h.

◆ sockopt_arg_type

typedef void* sockopt_arg_type

Definition at line 89 of file compat.h.