1 #if defined(_WIN32) && defined(EXTERNAL_POLL)
3 #define _WIN32_WINNT 0x0600
4 #define poll(fdArray, fds, timeout) WSAPoll((LPWSAPOLLFD)(fdArray), (ULONG)(fds), (INT)(timeout))
7 #include "lws_config.h"
21 #include "../lib/libwebsockets.h"
26 #include "gettimeofday.h"
33 extern void test_server_lock(int care);
34 extern void test_server_unlock(int care);
37 #define __func__ __FUNCTION__
40 struct per_session_data__http {
43 struct lws_cgi_args args;
45 #if defined(LWS_WITH_CGI) || !defined(LWS_NO_CLIENT)
48 char post_string[256];
49 unsigned int client_finished:1;
53 lwsws_get_config_globals(struct lws_context_creation_info *info, const char *d,
54 char **config_strings, int *len);
57 lwsws_get_config_vhosts(struct lws_context *context,
58 struct lws_context_creation_info *info, const char *d,
59 char **config_strings, int *len);
62 callback_http(struct lws *wsi, enum lws_callback_reasons reason,
63 void *user, void *in, size_t len);