![]() |
Dash Core
0.12.2.1
P2P Digital Currency
|
#include <sys/fcntl.h>
#include <sys/mman.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"
Go to the source code of this file.
Macros | |
#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 | MAX_PATH 1024 |
#define | MSG_NOSIGNAL 0 |
#define | PRIO_MAX 20 |
#define | THREAD_PRIORITY_LOWEST PRIO_MAX |
#define | THREAD_PRIORITY_BELOW_NORMAL 2 |
#define | THREAD_PRIORITY_NORMAL 0 |
#define | THREAD_PRIORITY_ABOVE_NORMAL (-2) |
Typedefs | |
typedef u_int | SOCKET |
Functions | |
size_t | strnlen (const char *start, size_t max_len) |
static bool | IsSelectableSocket (SOCKET s) |
#define INVALID_SOCKET (SOCKET)(~0) |
Definition at line 63 of file compat.h.
Referenced by CConnman::AcceptConnection(), CConnman::BindListenPort(), CloseSocket(), CNode::CloseSocketDisconnect(), ConnectSocketDirectly(), ConnectThroughProxy(), CConnman::PushMessage(), CConnman::Start(), CConnman::Stop(), and CConnman::ThreadSocketHandler().
#define MAX_PATH 1024 |
Definition at line 73 of file compat.h.
Referenced by FormatException(), and GetTempPath().
#define MSG_NOSIGNAL 0 |
Definition at line 78 of file compat.h.
Referenced by CConnman::SocketSendData(), and Socks5().
#define SOCKET_ERROR -1 |
Definition at line 64 of file compat.h.
Referenced by CConnman::BindListenPort(), CloseSocket(), ConnectSocketDirectly(), Discover(), InterruptibleRecv(), SetSocketNonBlocking(), and CConnman::ThreadSocketHandler().
#define THREAD_PRIORITY_BELOW_NORMAL 2 |
Definition at line 87 of file compat.h.
Referenced by CConnman::ThreadMessageHandler().
#define THREAD_PRIORITY_LOWEST PRIO_MAX |
Definition at line 86 of file compat.h.
Referenced by BitcoinMiner().
#define THREAD_PRIORITY_NORMAL 0 |
Definition at line 88 of file compat.h.
Referenced by BitcoinMiner().
#define WSAEADDRINUSE EADDRINUSE |
Definition at line 61 of file compat.h.
Referenced by CConnman::BindListenPort().
#define WSAEINPROGRESS EINPROGRESS |
Definition at line 60 of file compat.h.
Referenced by ConnectSocketDirectly(), InterruptibleRecv(), CConnman::SocketSendData(), and CConnman::ThreadSocketHandler().
#define WSAEINTR EINTR |
Definition at line 59 of file compat.h.
Referenced by CConnman::SocketSendData(), and CConnman::ThreadSocketHandler().
#define WSAEINVAL EINVAL |
Definition at line 55 of file compat.h.
Referenced by ConnectSocketDirectly(), and InterruptibleRecv().
#define WSAEMSGSIZE EMSGSIZE |
Definition at line 58 of file compat.h.
Referenced by CConnman::SocketSendData(), and CConnman::ThreadSocketHandler().
#define WSAEWOULDBLOCK EWOULDBLOCK |
Definition at line 57 of file compat.h.
Referenced by CConnman::AcceptConnection(), ConnectSocketDirectly(), InterruptibleRecv(), CConnman::SocketSendData(), and CConnman::ThreadSocketHandler().
#define WSAGetLastError | ( | ) | errno |
Definition at line 54 of file compat.h.
Referenced by CConnman::AcceptConnection(), CConnman::BindListenPort(), ConnectSocketDirectly(), InterruptibleRecv(), CConnman::SocketSendData(), CConnman::Stop(), and CConnman::ThreadSocketHandler().
|
inlinestatic |
Definition at line 96 of file compat.h.
Referenced by CConnman::AcceptConnection(), CConnman::BindListenPort(), CConnman::ConnectNode(), and InterruptibleRecv().
size_t strnlen | ( | const char * | start, |
size_t | max_len | ||
) |
Definition at line 12 of file strnlen.cpp.
Referenced by CMessageHeader::GetCommand().