GNU libmicrohttpd
0.9.29
|
internal functions for W32 systems More...
Go to the source code of this file.
Functions | |
int | MHD_W32_errno_from_winsock_ (void) |
const char * | MHD_W32_strerror_ (int errnum) |
const char * | MHD_W32_strerror_last_winsock_ (void) |
void | MHD_W32_set_last_winsock_error_ (int errnum) |
int | MHD_W32_pair_of_sockets_ (SOCKET sockets_pair[2]) |
int | MHD_W32_random_ (void) |
int | W32_snprintf (char *__restrict s, size_t n, const char *__restrict format,...) |
internal functions for W32 systems
Definition in file w32functions.h.
#define EADDRINUSE (MHDW32ERRBASE+12) |
Definition at line 78 of file w32functions.h.
#define EADDRNOTAVAIL (MHDW32ERRBASE+13) |
Definition at line 81 of file w32functions.h.
#define EAFNOSUPPORT (MHDW32ERRBASE+11) |
Definition at line 75 of file w32functions.h.
#define EALREADY (MHDW32ERRBASE+3) |
Definition at line 51 of file w32functions.h.
#define ECONNABORTED (MHDW32ERRBASE+17) |
Definition at line 93 of file w32functions.h.
#define ECONNREFUSED (MHDW32ERRBASE+23) |
Definition at line 111 of file w32functions.h.
#define ECONNRESET (MHDW32ERRBASE+18) |
Definition at line 96 of file w32functions.h.
Referenced by do_read(), and send_param_adapter().
#define EDESTADDRREQ (MHDW32ERRBASE+5) |
Definition at line 57 of file w32functions.h.
#define EDQUOT (MHDW32ERRBASE+29) |
Definition at line 129 of file w32functions.h.
#define EHOSTDOWN (MHDW32ERRBASE+25) |
Definition at line 117 of file w32functions.h.
#define EHOSTUNREACH (MHDW32ERRBASE+26) |
Definition at line 120 of file w32functions.h.
#define EINPROGRESS (MHDW32ERRBASE+2) |
Definition at line 48 of file w32functions.h.
#define EISCONN (MHDW32ERRBASE+20) |
Definition at line 102 of file w32functions.h.
#define ELOOP (MHDW32ERRBASE+24) |
Definition at line 114 of file w32functions.h.
#define EMSGSIZE (MHDW32ERRBASE+6) |
Definition at line 60 of file w32functions.h.
#define ENETDOWN (MHDW32ERRBASE+14) |
Definition at line 84 of file w32functions.h.
#define ENETRESET (MHDW32ERRBASE+16) |
Definition at line 90 of file w32functions.h.
#define ENETUNREACH (MHDW32ERRBASE+15) |
Definition at line 87 of file w32functions.h.
#define ENOBUFS (MHDW32ERRBASE+19) |
Definition at line 99 of file w32functions.h.
#define ENODATA (MHDW32ERRBASE+35) |
Definition at line 147 of file w32functions.h.
#define ENOPROTOOPT (MHDW32ERRBASE+8) |
Definition at line 66 of file w32functions.h.
#define ENOTCONN (MHDW32ERRBASE+21) |
Definition at line 105 of file w32functions.h.
Referenced by recv_param_adapter(), and send_param_adapter().
#define ENOTSOCK (MHDW32ERRBASE+4) |
Definition at line 54 of file w32functions.h.
#define EOPNOTSUPP (MHDW32ERRBASE+10) |
Definition at line 72 of file w32functions.h.
#define EPFNOSUPPORT (MHDW32ERRBASE+33) |
Definition at line 141 of file w32functions.h.
#define EPROCLIM (MHDW32ERRBASE+27) |
Definition at line 123 of file w32functions.h.
#define EPROTONOSUPPORT (MHDW32ERRBASE+9) |
Definition at line 69 of file w32functions.h.
#define EPROTOTYPE (MHDW32ERRBASE+7) |
Definition at line 63 of file w32functions.h.
#define EREMOTE (MHDW32ERRBASE+31) |
Definition at line 135 of file w32functions.h.
#define ESHUTDOWN (MHDW32ERRBASE+34) |
Definition at line 144 of file w32functions.h.
#define ESOCKTNOSUPPORT (MHDW32ERRBASE+32) |
Definition at line 138 of file w32functions.h.
#define ESTALE (MHDW32ERRBASE+30) |
Definition at line 132 of file w32functions.h.
#define ETIMEDOUT (MHDW32ERRBASE+36) |
Definition at line 150 of file w32functions.h.
#define ETOOMANYREFS (MHDW32ERRBASE+22) |
Definition at line 108 of file w32functions.h.
#define EUSERS (MHDW32ERRBASE+28) |
Definition at line 126 of file w32functions.h.
#define EWOULDBLOCK (MHDW32ERRBASE+1) |
Definition at line 45 of file w32functions.h.
Referenced by do_read(), do_write(), MHD_accept_connection(), MHD_connection_handle_write(), send_param_adapter(), SPDYF_raw_recv(), and SPDYF_raw_send().
#define MHDW32ERRBASE 3300 |
Definition at line 42 of file w32functions.h.
int MHD_W32_errno_from_winsock_ | ( | void | ) |
Return errno equivalent of last winsock error
int MHD_W32_pair_of_sockets_ | ( | SOCKET | sockets_pair[2] | ) |
Create pair of mutually connected TCP/IP sockets on loopback address
sockets_pair | array to receive resulted sockets |
int MHD_W32_random_ | ( | void | ) |
Generate 31-bit pseudo random number. Function initialize itself at first call to current time.
void MHD_W32_set_last_winsock_error_ | ( | int | errnum | ) |
Set last winsock error to equivalent of given errno value
errnum | the errno value to set |
const char* MHD_W32_strerror_ | ( | int | errnum | ) |
Return pointer to string description of errnum error Works fine with both standard errno errnums and errnums from MHD_W32_errno_from_winsock_
errnum | the errno or value from MHD_W32_errno_from_winsock_() |
const char* MHD_W32_strerror_last_winsock_ | ( | void | ) |
Return pointer to string description of last winsock error
int W32_snprintf | ( | char *__restrict | s, |
size_t | n, | ||
const char *__restrict | format, | ||
... | |||
) |