socket:仅在Linux用户中在屏幕上显示hello world的Web服务器

时间:2021-03-14 09:07:21
【文件属性】:
文件名称:socket:仅在Linux用户中在屏幕上显示hello world的Web服务器
文件大小:9KB
文件格式:ZIP
更新时间:2021-03-14 09:07:21
C++ 一个仅适用于Linux用户的简单http服务器端库 注意:该库当前正在开发中,您可以检查源代码,甚至可以使用它,但没有将其用于生产目的 与cmake一起使用 git clone https://github.com/notadevps/socket.git 在您的CMakeLists.txt中包括 add_subdirectory(external/socket/src) target_include_directories(${PROJECT_NAME} PUBLIC external/socket/src) target_link_libraries(${PROJECT_NAME} PUBLIC sockets) 例子 main.cpp文件 # include < iostream> # include < config> int main () {
【文件预览】:
socket-main
----LICENSE.txt(10KB)
----src()
--------CMakeLists.txt(134B)
--------socket.cpp(3KB)
--------utils.h(1KB)
--------socket.h(1KB)
----example()
--------CMakeLists.txt(270B)
--------main.cpp(1KB)
----README.md(2KB)
----.gitignore(62B)

网友评论