Dash Core Source Documentation (0.16.0.1)

Find detailed information regarding the Dash Core source code.

compat.h File Reference
#include <type_traits>
#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 <errno.h>
+ 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 IS_TRIVIALLY_CONSTRUCTIBLE   std::is_trivially_constructible
 
#define WSAGetLastError()   errno
 
#define WSAEINVAL   EINVAL
 
#define WSAEALREADY   EALREADY
 
#define WSAEWOULDBLOCK   EWOULDBLOCK
 
#define WSAEMSGSIZE   EMSGSIZE
 
#define WSAEINTR   EINTR
 
#define WSAEINPROGRESS   EINPROGRESS
 
#define WSAEADDRINUSE   EADDRINUSE
 
#define WSAENOTSOCK   EBADF
 
#define INVALID_SOCKET   (SOCKET)(~0)
 
#define SOCKET_ERROR   -1
 
#define SD_SEND   SHUT_WR
 
#define MAX_PATH   1024
 

Typedefs

typedef unsigned int SOCKET
 
typedef void * sockopt_arg_type
 

Functions

size_t strnlen (const char *start, size_t max_len)
 
static bool IsSelectableSocket (const SOCKET &s)
 

Macro Definition Documentation

◆ INVALID_SOCKET

◆ IS_TRIVIALLY_CONSTRUCTIBLE

#define IS_TRIVIALLY_CONSTRUCTIBLE   std::is_trivially_constructible

Definition at line 20 of file compat.h.

◆ MAX_PATH

#define MAX_PATH   1024

Definition at line 84 of file compat.h.

◆ SD_SEND

#define SD_SEND   SHUT_WR

Definition at line 75 of file compat.h.

Referenced by CConnman::DisconnectNodes().

◆ SOCKET_ERROR

◆ WSAEADDRINUSE

#define WSAEADDRINUSE   EADDRINUSE

Definition at line 71 of file compat.h.

Referenced by CConnman::BindListenPort().

◆ WSAEALREADY

#define WSAEALREADY   EALREADY

Definition at line 66 of file compat.h.

◆ WSAEINPROGRESS

#define WSAEINPROGRESS   EINPROGRESS

◆ WSAEINTR

#define WSAEINTR   EINTR

Definition at line 69 of file compat.h.

Referenced by CConnman::SocketRecvData(), and CConnman::SocketSendData().

◆ WSAEINVAL

#define WSAEINVAL   EINVAL

Definition at line 65 of file compat.h.

Referenced by ConnectSocketDirectly(), and InterruptibleRecv().

◆ WSAEMSGSIZE

#define WSAEMSGSIZE   EMSGSIZE

Definition at line 68 of file compat.h.

Referenced by CConnman::SocketRecvData(), and CConnman::SocketSendData().

◆ WSAENOTSOCK

#define WSAENOTSOCK   EBADF

Definition at line 72 of file compat.h.

◆ WSAEWOULDBLOCK

#define WSAEWOULDBLOCK   EWOULDBLOCK

◆ WSAGetLastError

Typedef Documentation

◆ SOCKET

typedef unsigned int SOCKET

Definition at line 62 of file compat.h.

◆ sockopt_arg_type

typedef void* sockopt_arg_type

Definition at line 101 of file compat.h.

Function Documentation

◆ IsSelectableSocket()

static bool IsSelectableSocket ( const SOCKET s)
inlinestatic

◆ strnlen()

size_t strnlen ( const char *  start,
size_t  max_len 
)

Definition at line 12 of file strnlen.cpp.

Referenced by CMessageHeader::GetCommand().

Released under the MIT license