Feathercoin  0.5.0
P2P Digital Currency
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros
Macros | Typedefs | Functions
compat.h File Reference
#include <sys/types.h>
#include <sys/socket.h>
#include <sys/fcntl.h>
#include <arpa/inet.h>
#include <netdb.h>
#include <net/if.h>
#include <netinet/in.h>
#include <ifaddrs.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)
 

Macro Definition Documentation

#define closesocket (   s)    myclosesocket(s)

Definition at line 61 of file compat.h.

#define INVALID_SOCKET   (SOCKET)(~0)

Definition at line 45 of file compat.h.

#define SOCKET_ERROR   -1

Definition at line 46 of file compat.h.

#define WSAEADDRINUSE   EADDRINUSE

Definition at line 43 of file compat.h.

#define WSAEALREADY   EALREADY

Definition at line 38 of file compat.h.

#define WSAEINPROGRESS   EINPROGRESS

Definition at line 42 of file compat.h.

#define WSAEINTR   EINTR

Definition at line 41 of file compat.h.

#define WSAEINVAL   EINVAL

Definition at line 37 of file compat.h.

#define WSAEMSGSIZE   EMSGSIZE

Definition at line 40 of file compat.h.

#define WSAENOTSOCK   EBADF

Definition at line 44 of file compat.h.

#define WSAEWOULDBLOCK   EWOULDBLOCK

Definition at line 39 of file compat.h.

#define WSAGetLastError ( )    errno

Definition at line 36 of file compat.h.

Typedef Documentation

typedef u_int SOCKET

Definition at line 29 of file compat.h.

Function Documentation

int myclosesocket ( SOCKET hSocket)
inline

Definition at line 49 of file compat.h.