aboutsummaryrefslogtreecommitdiff
path: root/src/net.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/net.h')
-rw-r--r--src/net.h19
1 files changed, 7 insertions, 12 deletions
diff --git a/src/net.h b/src/net.h
index cfc2009..75c2515 100644
--- a/src/net.h
+++ b/src/net.h
@@ -1,11 +1,11 @@
#ifdef _WIN32 //add -lws2_32
- #include <winsock2.h>
- //#define socklen_t __socklen_t
- //#define close closesocket
- typedef int socklen_t;
+#include <winsock2.h>
+//#define socklen_t __socklen_t
+//#define close closesocket
+typedef int socklen_t;
#else
- #include <sys/socket.h>
- #include <arpa/inet.h>
+#include <sys/socket.h>
+#include <arpa/inet.h>
#define closesocket close
#endif
@@ -36,11 +36,6 @@ int content_disposition(str* src, parray_t** _dest);
void* handle_client(void *_arg);
-int start_serv(lua_State* L, int port);
-
-//
-static char* http_codes[600] = {0};
-
int clean_lullaby_net(lua_State* L);
static const luaL_Reg net_function_list [] = {
@@ -48,7 +43,7 @@ static const luaL_Reg net_function_list [] = {
{"request",l_request},
{"srequest",l_srequest},
{"wss",l_wss},
-
+
{NULL,NULL}
};