diff --git a/CMakeLists.txt b/CMakeLists.txt index e2dad709e531ccaee9635a6dc5a55af7a8c0faf6..3529b0347d7487cfe957b8cf52518e18ccd0288e 100755 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -21,6 +21,17 @@ endif() set(DAP_UDP_SERVER_SRCS dap_udp_server.c dap_udp_client.h dap_udp_client.c) +if(WIN32) + include_directories(../libdap/src/win32/) + include_directories(../3rdparty/libmemcached/) + include_directories(../3rdparty/libmemcached/win32/) + include_directories(../3rdparty/wepoll/include/) + include_directories(../3rdparty/uthash/src/) + include_directories(../3rdparty/libjson-c/) + include_directories(../3rdparty/libmagic/src/) + include_directories(../3rdparty/curl/include/) +endif() + add_library(${PROJECT_NAME} STATIC ${DAP_UDP_SERVER_SRCS}) target_link_libraries(${PROJECT_NAME} dap_core dap_server_core ) diff --git a/dap_udp_client.c b/dap_udp_client.c index e1e92b4f5cf875d9159f2592f1561b642a31320d..15b9971f10e45a93779b1731ff3758710cdc9132 100755 --- a/dap_udp_client.c +++ b/dap_udp_client.c @@ -1,5 +1,5 @@ /* - Copyright (c) 2017-2018 (c) Project "DeM Labs Inc" https://github.com/demlabsinc + Copyright (c) 2017-2019 (c) Project "DeM Labs Inc" https://demlabs.net All rights reserved. This file is part of DAP (Deus Applications Prototypes) the open source project @@ -45,7 +45,7 @@ #include <mswsock.h> #include <ws2tcpip.h> #include <io.h> -#include "wrappers.h" +//#include "wrappers.h" #include <wepoll.h> #include <pthread.h> #endif diff --git a/dap_udp_server.c b/dap_udp_server.c index f74ecffe1cf603b86f0018b6354586f0fb1100bf..dded3f54223165e3130ee589278f8b6f506549c9 100755 --- a/dap_udp_server.c +++ b/dap_udp_server.c @@ -47,7 +47,7 @@ #include <mswsock.h> #include <ws2tcpip.h> #include <io.h> -#include "wrappers.h" +//#include "wrappers.h" #include <wepoll.h> #include <pthread.h> #endif @@ -443,3 +443,4 @@ error: return; } + diff --git a/dap_udp_server.h b/dap_udp_server.h index 94f62a2536fea5f9fc9504a8c6fd901a88b988b1..3d6335638af97eae532cc9fd9f2e78c3e976c68f 100755 --- a/dap_udp_server.h +++ b/dap_udp_server.h @@ -1,5 +1,5 @@ /* - Copyright (c) 2017-2018 (c) Project "DeM Labs Inc" https://github.com/demlabsinc + Copyright (c) 2017-2019 (c) Project "DeM Labs Inc" https://github.com/demlabsinc All rights reserved. This file is part of DAP (Deus Applications Prototypes) the open source project @@ -61,7 +61,6 @@ typedef struct dap_udp_server { #define DAP_UDP_SERVER(a) ((dap_udp_server_t *) (a)->_inheritor) -extern void dap_udp_server_delete( dap_server_t *sh ); -extern void dap_udp_server_loop( dap_server_t *udp_server ); // Start server event loop -extern dap_server_t *dap_udp_server_listen( uint16_t port ); // Create and bind server - +void dap_udp_server_delete( dap_server_t *sh ); +void dap_udp_server_loop( dap_server_t *udp_server ); // Start server event loop +dap_server_t *dap_udp_server_listen( uint16_t port ); // Create and bind serv