Dash Core Source Documentation (0.16.0.1)
Find detailed information regarding the Dash Core source code.
#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
| #define INVALID_SOCKET (SOCKET)(~0) |
Definition at line 73 of file compat.h.
Referenced by CConnman::AcceptConnection(), CConnman::BindListenPort(), CloseSocket(), CNode::CloseSocketDisconnect(), CConnman::ConnectNode(), ConnectSocketDirectly(), CreateSocket(), CConnman::DisconnectNodes(), CConnman::GenerateSelectSet(), GetBindAddress(), CActiveMasternodeManager::Init(), CConnman::RegisterEvents(), CConnman::SocketHandler(), CConnman::SocketRecvData(), CConnman::SocketSendData(), CConnman::Stop(), and CConnman::UnregisterEvents().
◆ IS_TRIVIALLY_CONSTRUCTIBLE
| #define IS_TRIVIALLY_CONSTRUCTIBLE std::is_trivially_constructible |
◆ MAX_PATH
◆ SD_SEND
| #define SD_SEND SHUT_WR |
Definition at line 75 of file compat.h.
Referenced by CConnman::DisconnectNodes().
◆ SOCKET_ERROR
| #define SOCKET_ERROR -1 |
Definition at line 74 of file compat.h.
Referenced by CConnman::BindListenPort(), CloseSocket(), ConnectSocketDirectly(), Discover(), InterruptibleRecv(), SetSocketNonBlocking(), and CConnman::SocketEventsSelect().
◆ WSAEADDRINUSE
| #define WSAEADDRINUSE EADDRINUSE |
Definition at line 71 of file compat.h.
Referenced by CConnman::BindListenPort().
◆ WSAEALREADY
◆ WSAEINPROGRESS
| #define WSAEINPROGRESS EINPROGRESS |
Definition at line 70 of file compat.h.
Referenced by ConnectSocketDirectly(), InterruptibleRecv(), CConnman::SocketRecvData(), and CConnman::SocketSendData().
◆ 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
◆ WSAEWOULDBLOCK
| #define WSAEWOULDBLOCK EWOULDBLOCK |
Definition at line 67 of file compat.h.
Referenced by CConnman::AcceptConnection(), ConnectSocketDirectly(), InterruptibleRecv(), CConnman::SocketRecvData(), and CConnman::SocketSendData().
◆ WSAGetLastError
| #define WSAGetLastError | ( | ) | errno |
Definition at line 64 of file compat.h.
Referenced by CConnman::AcceptConnection(), CConnman::BindListenPort(), CloseSocket(), ConnectSocketDirectly(), CreateSocket(), InterruptibleRecv(), CConnman::RegisterEvents(), CConnman::SocketEventsSelect(), CConnman::SocketRecvData(), CConnman::SocketSendData(), CConnman::Start(), CConnman::Stop(), and CConnman::UnregisterEvents().
Typedef Documentation
◆ SOCKET
◆ sockopt_arg_type
| typedef void* sockopt_arg_type |
Function Documentation
◆ IsSelectableSocket()
|
inlinestatic |
Definition at line 117 of file compat.h.
Referenced by CConnman::AcceptConnection(), CreateSocket(), CActiveMasternodeManager::Init(), and InterruptibleRecv().
◆ strnlen()
| size_t strnlen | ( | const char * | start, |
| size_t | max_len | ||
| ) |
Definition at line 12 of file strnlen.cpp.
Referenced by CMessageHeader::GetCommand().

