Bitcoin Core  27.99.0
P2P Digital Currency
Macros | Typedefs
compat.h File Reference
#include <arpa/inet.h>
#include <fcntl.h>
#include <ifaddrs.h>
#include <net/if.h>
#include <netdb.h>
#include <netinet/in.h>
#include <netinet/tcp.h>
#include <sys/mman.h>
#include <sys/select.h>
#include <sys/socket.h>
#include <sys/types.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 56 of file compat.h.

◆ MAIN_FUNCTION

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

Definition at line 95 of file compat.h.

◆ MAX_PATH

#define MAX_PATH   1024

Definition at line 70 of file compat.h.

◆ MSG_DONTWAIT

#define MSG_DONTWAIT   0

Definition at line 112 of file compat.h.

◆ MSG_NOSIGNAL

#define MSG_NOSIGNAL   0

Definition at line 107 of file compat.h.

◆ SOCKET_ERROR

#define SOCKET_ERROR   -1

Definition at line 57 of file compat.h.

◆ WSAEADDRINUSE

#define WSAEADDRINUSE   EADDRINUSE

Definition at line 55 of file compat.h.

◆ WSAEAGAIN

#define WSAEAGAIN   EAGAIN

Definition at line 51 of file compat.h.

◆ WSAEINPROGRESS

#define WSAEINPROGRESS   EINPROGRESS

Definition at line 54 of file compat.h.

◆ WSAEINTR

#define WSAEINTR   EINTR

Definition at line 53 of file compat.h.

◆ WSAEINVAL

#define WSAEINVAL   EINVAL

Definition at line 49 of file compat.h.

◆ WSAEMSGSIZE

#define WSAEMSGSIZE   EMSGSIZE

Definition at line 52 of file compat.h.

◆ WSAEWOULDBLOCK

#define WSAEWOULDBLOCK   EWOULDBLOCK

Definition at line 50 of file compat.h.

◆ WSAGetLastError

#define WSAGetLastError ( )    errno

Definition at line 48 of file compat.h.

Typedef Documentation

◆ SOCKET

typedef unsigned int SOCKET

Definition at line 46 of file compat.h.

◆ sockopt_arg_type

typedef void* sockopt_arg_type

Definition at line 82 of file compat.h.