diff --git a/CMakeLists.txt b/CMakeLists.txt index 160c14e..1be7894 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,3 +1,4 @@ +include_directories(GSock-Pro) add_subdirectory(GSock-Pro) add_library(LibWS sha1.cpp websocket.cpp) target_link_libraries(GSock-Pro) \ No newline at end of file diff --git a/websocket.cpp b/websocket.cpp index 2af2e89..34dfa98 100644 --- a/websocket.cpp +++ b/websocket.cpp @@ -1,5 +1,5 @@ #include "websocket.h" -#include "GSock/gsock_helper.h" // GSock +#include "gsock_helper.h" // GSock #include #include #include diff --git a/websocket.h b/websocket.h index 5f8be01..bffa1c1 100644 --- a/websocket.h +++ b/websocket.h @@ -1,6 +1,6 @@ #pragma once #include -#include "GSock/gsock.h" +#include "gsock.h" // 获取Sec-WebSocket-Key的结果 std::string GetResponseKey(const std::string& key);