Dash Core Source Documentation (0.16.0.1)
Find detailed information regarding the Dash Core source code.
Go to the documentation of this file. 6 #ifndef BITCOIN_COMPAT_H 7 #define BITCOIN_COMPAT_H 9 #if defined(HAVE_CONFIG_H) 10 #include <config/dash-config.h> 13 #include <type_traits> 17 #if defined(__GNUC__) && __GNUC__ < 5 18 #define IS_TRIVIALLY_CONSTRUCTIBLE std::is_trivial 20 #define IS_TRIVIALLY_CONSTRUCTIBLE std::is_trivially_constructible 27 #define _WIN32_WINNT 0x0501 28 #ifndef WIN32_LEAN_AND_MEAN 29 #define WIN32_LEAN_AND_MEAN 1 35 #undef FD_SETSIZE // prevent redefinition compiler warning 37 #define FD_SETSIZE 1024 // max number of fds in fd_set 48 #include <sys/select.h> 49 #include <sys/socket.h> 50 #include <sys/types.h> 52 #include <netinet/in.h> 53 #include <netinet/tcp.h> 54 #include <arpa/inet.h> 64 #define WSAGetLastError() errno 65 #define WSAEINVAL EINVAL 66 #define WSAEALREADY EALREADY 67 #define WSAEWOULDBLOCK EWOULDBLOCK 68 #define WSAEMSGSIZE EMSGSIZE 69 #define WSAEINTR EINTR 70 #define WSAEINPROGRESS EINPROGRESS 71 #define WSAEADDRINUSE EADDRINUSE 72 #define WSAENOTSOCK EBADF 73 #define INVALID_SOCKET (SOCKET)(~0) 74 #define SOCKET_ERROR -1 75 #define SD_SEND SHUT_WR 89 typedef int64_t ssize_t;
91 typedef int32_t ssize_t;
96 #if HAVE_DECL_STRNLEN == 0 97 size_t strnlen(
const char *start,
size_t max_len);
98 #endif // HAVE_DECL_STRNLEN 109 #if defined(__linux__) 113 #if defined(__linux__) 118 #if defined(USE_POLL) || defined(WIN32) 121 return (s < FD_SETSIZE);
125 #endif // BITCOIN_COMPAT_H static bool IsSelectableSocket(const SOCKET &s)
size_t strnlen(const char *start, size_t max_len)