![]() |
Master Core
v0.0.9 - 49a5c0d97abf09ef2911ddfe8d9551df59f9efd3-dirty
|
#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 <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 | 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 | closesocket(s) myclosesocket(s) |
Typedefs | |
| typedef u_int | SOCKET |
Functions | |
| int | myclosesocket (SOCKET &hSocket) |
| #define closesocket | ( | s | ) | myclosesocket(s) |
Definition at line 74 of file compat.h.
Referenced by CNode::CloseSocketDisconnect(), ConnectSocket(), ConnectSocketByName(), ConnectSocketDirectly(), GetMyExternalIP2(), myclosesocket(), Socks4(), Socks5(), ThreadSocketHandler(), CNetCleanup::~CNetCleanup(), and CNode::~CNode().
| #define INVALID_SOCKET (SOCKET)(~0) |
Definition at line 58 of file compat.h.
Referenced by BindListenPort(), CNode::CloseSocketDisconnect(), CNode::CNode(), ConnectSocket(), ConnectSocketByName(), ConnectSocketDirectly(), myclosesocket(), StartNode(), ThreadSocketHandler(), CNetCleanup::~CNetCleanup(), and CNode::~CNode().
| #define SOCKET_ERROR -1 |
Definition at line 59 of file compat.h.
Referenced by BindListenPort(), ConnectNode(), ConnectSocketDirectly(), Discover(), ThreadSocketHandler(), and CNetCleanup::~CNetCleanup().
| #define WSAEADDRINUSE EADDRINUSE |
Definition at line 56 of file compat.h.
Referenced by BindListenPort().
| #define WSAEINPROGRESS EINPROGRESS |
Definition at line 55 of file compat.h.
Referenced by ConnectSocketDirectly(), RecvLine(), SocketSendData(), and ThreadSocketHandler().
| #define WSAEINTR EINTR |
Definition at line 54 of file compat.h.
Referenced by RecvLine(), SocketSendData(), and ThreadSocketHandler().
| #define WSAEINVAL EINVAL |
Definition at line 50 of file compat.h.
Referenced by ConnectSocketDirectly().
| #define WSAEMSGSIZE EMSGSIZE |
Definition at line 53 of file compat.h.
Referenced by RecvLine(), SocketSendData(), and ThreadSocketHandler().
| #define WSAENOTSOCK EBADF |
Definition at line 57 of file compat.h.
Referenced by myclosesocket().
| #define WSAEWOULDBLOCK EWOULDBLOCK |
Definition at line 52 of file compat.h.
Referenced by ConnectSocketDirectly(), RecvLine(), SocketSendData(), and ThreadSocketHandler().
| #define WSAGetLastError | ( | ) | errno |
Definition at line 49 of file compat.h.
Referenced by BindListenPort(), ConnectNode(), ConnectSocketDirectly(), RecvLine(), SocketSendData(), ThreadSocketHandler(), and CNetCleanup::~CNetCleanup().
Definition at line 62 of file compat.h.
References closesocket, INVALID_SOCKET, and WSAENOTSOCK.
1.8.8