27#ifdef MHD_WINSOCK_SOCKETS
42 return "Specified event object handle is invalid";
44 return "Insufficient memory available";
46 return "One or more parameters are invalid";
48 return "Overlapped operation aborted";
50 return "Overlapped I/O event object not in signaled state";
52 return "Overlapped operations will complete later";
54 return "Interrupted function call";
56 return "File handle is not valid";
58 return "Permission denied";
62 return "Invalid argument";
64 return "Too many open files";
66 return "Resource temporarily unavailable";
68 return "Operation now in progress";
70 return "Operation already in progress";
72 return "Socket operation on nonsocket";
74 return "Destination address required";
76 return "Message too long";
78 return "Protocol wrong type for socket";
80 return "Bad protocol option";
82 return "Protocol not supported";
84 return "Socket type not supported";
86 return "Operation not supported";
88 return "Protocol family not supported";
90 return "Address family not supported by protocol family";
92 return "Address already in use";
94 return "Cannot assign requested address";
96 return "Network is down";
98 return "Network is unreachable";
100 return "Network dropped connection on reset";
102 return "Software caused connection abort";
104 return "Connection reset by peer";
106 return "No buffer space available";
108 return "Socket is already connected";
110 return "Socket is not connected";
112 return "Cannot send after socket shutdown";
114 return "Too many references";
116 return "Connection timed out";
118 return "Connection refused";
120 return "Cannot translate name";
122 return "Name too long";
124 return "Host is down";
126 return "No route to host";
128 return "Directory not empty";
130 return "Too many processes";
132 return "User quota exceeded";
134 return "Disk quota exceeded";
136 return "Stale file handle reference";
138 return "Item is remote";
140 return "Network subsystem is unavailable";
142 return "Winsock.dll version out of range";
144 return "Successful WSAStartup not yet performed";
146 return "Graceful shutdown in progress";
148 return "No more results";
150 return "Call has been canceled";
152 return "Procedure call table is invalid";
154 return "Service provider is invalid";
156 return "Service provider failed to initialize";
158 return "System call failure";
160 return "Service not found";
162 return "Class type not found";
164 return "No more results";
166 return "Call was canceled";
168 return "Database query was refused";
170 return "Host not found";
172 return "Nonauthoritative host not found";
174 return "This is a nonrecoverable error";
176 return "Valid name, no data record of requested type";
178 return "QoS receivers";
180 return "QoS senders";
182 return "No QoS senders";
184 return "QoS no receivers";
186 return "QoS request confirmed";
188 return "QoS admission error";
190 return "QoS policy failure";
192 return "QoS bad style";
194 return "QoS bad object";
196 return "QoS traffic control error";
198 return "QoS generic error";
200 return "QoS service type error";
202 return "QoS flowspec error";
204 return "Invalid QoS provider buffer";
206 return "Invalid QoS filter style";
208 return "Invalid QoS filter type";
210 return "Incorrect QoS filter count";
212 return "Invalid QoS object length";
214 return "Incorrect QoS flow count";
216 return "Unrecognized QoS object";
218 return "Invalid QoS policy object";
220 return "Invalid QoS flow descriptor";
222 return "Invalid QoS provider-specific flowspec";
224 return "Invalid QoS provider-specific filterspec";
226 return "Invalid QoS shape discard mode object";
228 return "Invalid QoS shaping rate object";
230 return "Reserved policy QoS element type";
232 return "Unknown winsock error";
254#define PAIRMAXTRYIES 800
328 client_addr.sin_addr.s_addr) &&
386 if ( (
NULL == set) ||
413#if defined(MHD_POSIX_SOCKETS)
426#elif defined(MHD_WINSOCK_SOCKETS)
427 unsigned long flags = 1;
448#if defined(MHD_POSIX_SOCKETS)
461#elif defined(MHD_WINSOCK_SOCKETS)
513#if defined(SOCK_NOSIGPIPE) || defined(MHD_socket_nosignal_)
517#if defined(MHD_POSIX_SOCKETS) && (defined(SOCK_CLOEXEC) || \
518 defined(SOCK_NOSIGPIPE) )
525#if defined(SOCK_NOSIGPIPE) || defined(MHD_socket_nosignal_)
529#elif defined(MHD_WINSOCK_SOCKETS) && defined(WSA_FLAG_NO_HANDLE_INHERIT)
546#if defined(SOCK_NOSIGPIPE) || defined(MHD_socket_nosignal_)
553#if defined(MHD_socket_nosignal_)
int MHD_add_to_fd_set_(MHD_socket fd, fd_set *set, MHD_socket *max_fd, unsigned int fd_setsize)
int MHD_socket_noninheritable_(MHD_socket sock)
int MHD_socket_nonblocking_(MHD_socket sock)
MHD_socket MHD_socket_create_listen_(int pf)
#define MHD_SCKT_FD_FITS_FDSET_SETSIZE_(fd, pset, setsize)
#define MHD_SCKT_ADD_FD_TO_FDSET_SETSIZE_(fd, pset, setsize)
#define MHD_socket_close_(fd)
#define MHD_socket_get_error_()
#define MHD_socket_fset_error_(err)
int MHD_socket_set_nodelay_(MHD_socket sock, bool on)
#define SOCK_NOSIGPIPE_OR_ZERO
#define MSG_NOSIGNAL_OR_ZERO
#define SOCK_CLOEXEC_OR_ZERO
#define MHD_INVALID_SOCKET