From 3cc2f70e13051ecec68ae02cbc0c64d476757e95 Mon Sep 17 00:00:00 2001 From: cxh Date: Fri, 30 Jan 2026 15:32:47 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9cmalke?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CMakeLists.txt | 1 - .../include/websocketpp/.gitattributes | 18 + .../include/websocketpp/.github/FUNDING.yml | 3 + third_party/include/websocketpp/.gitignore | 94 + third_party/include/websocketpp/.travis.yml | 21 + .../include/websocketpp/CMakeLists.txt | 284 +- third_party/include/websocketpp/COPYING | 145 + third_party/include/websocketpp/Doxyfile | 2355 +++++++++++++++++ third_party/include/websocketpp/SConstruct | 285 ++ third_party/include/websocketpp/changelog.md | 444 ++++ .../include/websocketpp/docs/config.dox | 138 + third_party/include/websocketpp/docs/faq.dox | 162 ++ .../websocketpp/docs/getting_started.dox | 27 + .../include/websocketpp/docs/handlers.dox | 165 ++ .../include/websocketpp/docs/logging.dox | 102 + .../include/websocketpp/docs/manual.css | 22 + .../include/websocketpp/docs/manual.dox | 23 + .../docs/simple_broadcast_server.cpp | 52 + .../docs/simple_count_server_thread.cpp | 65 + .../include/websocketpp/docs/tutorials.dox | 10 + .../associative_storage/CMakeLists.txt | 12 + .../associative_storage.cpp | 88 + .../examples/broadcast_server/CMakeLists.txt | 12 + .../examples/broadcast_server/SConscript | 23 + .../broadcast_server/broadcast_server.cpp | 160 ++ .../examples/debug_client/CMakeLists.txt | 17 + .../examples/debug_client/SConscript | 24 + .../examples/debug_client/debug_client.cpp | 167 ++ .../examples/debug_server/CMakeLists.txt | 12 + .../examples/debug_server/SConscript | 23 + .../examples/debug_server/debug_server.cpp | 174 ++ .../websocketpp/examples/dev/CMakeLists.txt | 12 + .../websocketpp/examples/dev/SConscript | 18 + .../include/websocketpp/examples/dev/main.cpp | 200 ++ .../examples/echo_client/CMakeLists.txt | 12 + .../examples/echo_client/SConscript | 23 + .../examples/echo_client/echo_client.cpp | 97 + .../examples/echo_server/CMakeLists.txt | 12 + .../examples/echo_server/SConscript | 23 + .../examples/echo_server/echo_handler.hpp | 37 + .../examples/echo_server/echo_server.cpp | 65 + .../examples/echo_server_both/CMakeLists.txt | 18 + .../examples/echo_server_both/SConscript | 24 + .../echo_server_both/echo_server_both.cpp | 87 + .../examples/echo_server_both/server.pem | 58 + .../examples/echo_server_tls/CMakeLists.txt | 18 + .../examples/echo_server_tls/SConscript | 24 + .../examples/echo_server_tls/dh.pem | 8 + .../echo_server_tls/echo_server_tls.cpp | 154 ++ .../examples/echo_server_tls/server.pem | 57 + .../examples/enriched_storage/CMakeLists.txt | 12 + .../enriched_storage/enriched_storage.cpp | 87 + .../external_io_service/CMakeLists.txt | 12 + .../examples/external_io_service/SConscript | 23 + .../external_io_service.cpp | 85 + .../external_io_service/tcp_echo_server.hpp | 97 + .../examples/handler_switch/CMakeLists.txt | 12 + .../handler_switch/handler_switch.cpp | 42 + .../examples/iostream_server/CMakeLists.txt | 12 + .../examples/iostream_server/SConscript | 23 + .../iostream_server/iostream_server.cpp | 89 + .../examples/print_client/CMakeLists.txt | 12 + .../examples/print_client/SConscript | 23 + .../examples/print_client/print_client.cpp | 78 + .../examples/print_client_tls/CMakeLists.txt | 17 + .../examples/print_client_tls/SConscript | 24 + .../print_client_tls/ca-chain.cert.pem | 66 + .../print_client_tls/print_client_tls.cpp | 249 ++ .../examples/print_server/CMakeLists.txt | 12 + .../examples/print_server/SConscript | 23 + .../examples/print_server/print_server.cpp | 24 + .../examples/scratch_client/SConscript | 24 + .../scratch_client/scratch_client.cpp | 270 ++ .../examples/scratch_server/SConscript | 24 + .../scratch_server/scratch_server.cpp | 106 + .../simple_broadcast_server/CMakeLists.txt | 12 + .../simple_broadcast_server.cpp | 51 + .../examples/sip_client/CMakeLists.txt | 12 + .../examples/sip_client/README.txt | 22 + .../examples/sip_client/SConscript | 23 + .../examples/sip_client/sip_client.cpp | 84 + .../subprotocol_server/CMakeLists.txt | 12 + .../examples/subprotocol_server/SConscript | 23 + .../subprotocol_server/subprotocol_server.cpp | 48 + .../examples/telemetry_client/CMakeLists.txt | 12 + .../examples/telemetry_client/SConscript | 23 + .../telemetry_client/telemetry_client.cpp | 167 ++ .../examples/telemetry_server/CMakeLists.txt | 12 + .../examples/telemetry_server/SConscript | 23 + .../examples/telemetry_server/index.html | 85 + .../telemetry_server/telemetry_server.cpp | 203 ++ .../examples/testee_client/CMakeLists.txt | 17 + .../examples/testee_client/SConscript | 23 + .../examples/testee_client/testee_client.cpp | 145 + .../examples/testee_server/CMakeLists.txt | 17 + .../examples/testee_server/SConscript | 23 + .../examples/testee_server/testee_server.cpp | 145 + .../examples/utility_client/CMakeLists.txt | 13 + .../examples/utility_client/SConscript | 23 + .../utility_client/utility_client.cpp | 325 +++ third_party/include/websocketpp/readme.md | 49 + third_party/include/websocketpp/roadmap.md | 43 + .../test/connection/CMakeLists.txt | 12 + .../websocketpp/test/connection/SConscript | 25 + .../test/connection/connection.cpp | 533 ++++ .../test/connection/connection_tu2.cpp | 62 + .../test/connection/connection_tu2.hpp | 51 + .../websocketpp/test/endpoint/CMakeLists.txt | 17 + .../websocketpp/test/endpoint/SConscript | 24 + .../websocketpp/test/endpoint/endpoint.cpp | 158 ++ .../websocketpp/test/extension/CMakeLists.txt | 22 + .../websocketpp/test/extension/SConscript | 27 + .../websocketpp/test/extension/extension.cpp | 37 + .../test/extension/permessage_deflate.cpp | 752 ++++++ .../websocketpp/test/http/CMakeLists.txt | 11 + .../include/websocketpp/test/http/SConscript | 23 + .../include/websocketpp/test/http/parser.cpp | 1141 ++++++++ .../websocketpp/test/http/parser_perf.cpp | 141 + .../websocketpp/test/logger/CMakeLists.txt | 12 + .../websocketpp/test/logger/SConscript | 23 + .../include/websocketpp/test/logger/basic.cpp | 145 + .../test/message_buffer/CMakeLists.txt | 17 + .../test/message_buffer/SConscript | 27 + .../websocketpp/test/message_buffer/alloc.cpp | 96 + .../test/message_buffer/message.cpp | 72 + .../websocketpp/test/message_buffer/pool.cpp | 156 ++ .../test/processors/CMakeLists.txt | 59 + .../websocketpp/test/processors/SConscript | 47 + .../extension_permessage_compress.cpp | 198 ++ .../websocketpp/test/processors/hybi00.cpp | 274 ++ .../websocketpp/test/processors/hybi07.cpp | 193 ++ .../websocketpp/test/processors/hybi08.cpp | 197 ++ .../websocketpp/test/processors/hybi13.cpp | 693 +++++ .../websocketpp/test/processors/processor.cpp | 135 + .../websocketpp/test/random/CMakeLists.txt | 17 + .../websocketpp/test/random/SConscript | 27 + .../include/websocketpp/test/random/none.cpp | 40 + .../websocketpp/test/random/random_device.cpp | 50 + .../websocketpp/test/roles/CMakeLists.txt | 17 + .../include/websocketpp/test/roles/SConscript | 27 + .../include/websocketpp/test/roles/client.cpp | 194 ++ .../include/websocketpp/test/roles/server.cpp | 247 ++ .../websocketpp/test/transport/CMakeLists.txt | 71 + .../websocketpp/test/transport/SConscript | 24 + .../test/transport/asio/SConscript | 32 + .../websocketpp/test/transport/asio/base.cpp | 49 + .../test/transport/asio/security.cpp | 69 + .../test/transport/asio/timers.cpp | 194 ++ .../websocketpp/test/transport/hybi_util.cpp | 98 + .../test/transport/integration.cpp | 651 +++++ .../test/transport/iostream/SConscript | 31 + .../test/transport/iostream/base.cpp | 33 + .../test/transport/iostream/connection.cpp | 619 +++++ .../test/transport/iostream/endpoint.cpp | 41 + .../websocketpp/test/utility/CMakeLists.txt | 53 + .../websocketpp/test/utility/SConscript | 40 + .../websocketpp/test/utility/close.cpp | 124 + .../websocketpp/test/utility/error.cpp | 54 + .../websocketpp/test/utility/frame.cpp | 538 ++++ .../include/websocketpp/test/utility/sha1.cpp | 81 + .../include/websocketpp/test/utility/uri.cpp | 246 ++ .../websocketpp/test/utility/utilities.cpp | 73 + .../broadcast_tutorial/broadcast_tutorial.md | 17 + .../tutorials/chat_tutorial/chat_tutorial.md | 13 + .../tutorials/utility_client/step1.cpp | 56 + .../tutorials/utility_client/step2.cpp | 61 + .../tutorials/utility_client/step3.cpp | 81 + .../tutorials/utility_client/step4.cpp | 202 ++ .../tutorials/utility_client/step5.cpp | 280 ++ .../tutorials/utility_client/step6.cpp | 335 +++ .../utility_client/utility_client.md | 862 ++++++ .../tutorials/utility_server/step1.cpp | 71 + .../tutorials/utility_server/step2.cpp | 82 + .../utility_server/utility_server.md | 181 ++ .../websocketpp/websocketpp-config.cmake.in | 14 + .../websocketpp/websocketpp/CMakeLists.txt | 2 + .../{ => websocketpp}/base64/base64.hpp | 0 .../websocketpp/{ => websocketpp}/client.hpp | 0 .../websocketpp/{ => websocketpp}/close.hpp | 0 .../{ => websocketpp}/common/asio.hpp | 0 .../{ => websocketpp}/common/asio_ssl.hpp | 0 .../{ => websocketpp}/common/chrono.hpp | 0 .../common/connection_hdl.hpp | 0 .../{ => websocketpp}/common/cpp11.hpp | 0 .../{ => websocketpp}/common/functional.hpp | 0 .../{ => websocketpp}/common/md5.hpp | 0 .../{ => websocketpp}/common/memory.hpp | 0 .../{ => websocketpp}/common/network.hpp | 0 .../{ => websocketpp}/common/platforms.hpp | 0 .../{ => websocketpp}/common/random.hpp | 0 .../{ => websocketpp}/common/regex.hpp | 0 .../{ => websocketpp}/common/stdint.hpp | 0 .../{ => websocketpp}/common/system_error.hpp | 0 .../{ => websocketpp}/common/thread.hpp | 0 .../{ => websocketpp}/common/time.hpp | 0 .../{ => websocketpp}/common/type_traits.hpp | 0 .../{ => websocketpp}/concurrency/basic.hpp | 0 .../{ => websocketpp}/concurrency/none.hpp | 0 .../{ => websocketpp}/config/asio.hpp | 0 .../{ => websocketpp}/config/asio_client.hpp | 0 .../{ => websocketpp}/config/asio_no_tls.hpp | 0 .../config/asio_no_tls_client.hpp | 0 .../{ => websocketpp}/config/boost_config.hpp | 0 .../{ => websocketpp}/config/core.hpp | 0 .../{ => websocketpp}/config/core_client.hpp | 0 .../{ => websocketpp}/config/debug.hpp | 0 .../{ => websocketpp}/config/debug_asio.hpp | 0 .../config/debug_asio_no_tls.hpp | 0 .../config/minimal_client.hpp | 0 .../config/minimal_server.hpp | 0 .../{ => websocketpp}/connection.hpp | 0 .../{ => websocketpp}/connection_base.hpp | 0 .../{ => websocketpp}/endpoint.hpp | 0 .../{ => websocketpp}/endpoint_base.hpp | 0 .../websocketpp/{ => websocketpp}/error.hpp | 0 .../extensions/extension.hpp | 0 .../permessage_deflate/disabled.hpp | 0 .../extensions/permessage_deflate/enabled.hpp | 0 .../websocketpp/{ => websocketpp}/frame.hpp | 0 .../{ => websocketpp}/http/constants.hpp | 0 .../{ => websocketpp}/http/impl/parser.hpp | 0 .../{ => websocketpp}/http/impl/request.hpp | 0 .../{ => websocketpp}/http/impl/response.hpp | 0 .../{ => websocketpp}/http/parser.hpp | 0 .../{ => websocketpp}/http/request.hpp | 0 .../{ => websocketpp}/http/response.hpp | 0 .../impl/connection_impl.hpp | 0 .../{ => websocketpp}/impl/endpoint_impl.hpp | 0 .../{ => websocketpp}/impl/utilities_impl.hpp | 0 .../{ => websocketpp}/logger/basic.hpp | 0 .../{ => websocketpp}/logger/levels.hpp | 0 .../{ => websocketpp}/logger/stub.hpp | 0 .../{ => websocketpp}/logger/syslog.hpp | 0 .../message_buffer/alloc.hpp | 0 .../message_buffer/message.hpp | 0 .../{ => websocketpp}/message_buffer/pool.hpp | 0 .../{ => websocketpp}/processors/base.hpp | 0 .../{ => websocketpp}/processors/hybi00.hpp | 0 .../{ => websocketpp}/processors/hybi07.hpp | 0 .../{ => websocketpp}/processors/hybi08.hpp | 0 .../{ => websocketpp}/processors/hybi13.hpp | 0 .../processors/processor.hpp | 0 .../{ => websocketpp}/random/none.hpp | 0 .../random/random_device.hpp | 0 .../roles/client_endpoint.hpp | 0 .../roles/server_endpoint.hpp | 0 .../websocketpp/{ => websocketpp}/server.hpp | 0 .../{ => websocketpp}/sha1/sha1.hpp | 0 .../{ => websocketpp}/transport/asio/base.hpp | 0 .../transport/asio/connection.hpp | 0 .../transport/asio/endpoint.hpp | 0 .../transport/asio/security/base.hpp | 0 .../transport/asio/security/none.hpp | 0 .../transport/asio/security/tls.hpp | 0 .../transport/base/connection.hpp | 0 .../transport/base/endpoint.hpp | 0 .../transport/debug/base.hpp | 0 .../transport/debug/connection.hpp | 0 .../transport/debug/endpoint.hpp | 0 .../transport/iostream/base.hpp | 0 .../transport/iostream/connection.hpp | 0 .../transport/iostream/endpoint.hpp | 0 .../{ => websocketpp}/transport/stub/base.hpp | 0 .../transport/stub/connection.hpp | 0 .../transport/stub/endpoint.hpp | 0 .../websocketpp/{ => websocketpp}/uri.hpp | 0 .../{ => websocketpp}/utf8_validator.hpp | 0 .../{ => websocketpp}/utilities.hpp | 0 .../websocketpp/{ => websocketpp}/version.hpp | 0 269 files changed, 20530 insertions(+), 3 deletions(-) create mode 100644 third_party/include/websocketpp/.gitattributes create mode 100644 third_party/include/websocketpp/.github/FUNDING.yml create mode 100644 third_party/include/websocketpp/.gitignore create mode 100644 third_party/include/websocketpp/.travis.yml create mode 100644 third_party/include/websocketpp/COPYING create mode 100644 third_party/include/websocketpp/Doxyfile create mode 100644 third_party/include/websocketpp/SConstruct create mode 100644 third_party/include/websocketpp/changelog.md create mode 100644 third_party/include/websocketpp/docs/config.dox create mode 100644 third_party/include/websocketpp/docs/faq.dox create mode 100644 third_party/include/websocketpp/docs/getting_started.dox create mode 100644 third_party/include/websocketpp/docs/handlers.dox create mode 100644 third_party/include/websocketpp/docs/logging.dox create mode 100644 third_party/include/websocketpp/docs/manual.css create mode 100644 third_party/include/websocketpp/docs/manual.dox create mode 100644 third_party/include/websocketpp/docs/simple_broadcast_server.cpp create mode 100644 third_party/include/websocketpp/docs/simple_count_server_thread.cpp create mode 100644 third_party/include/websocketpp/docs/tutorials.dox create mode 100644 third_party/include/websocketpp/examples/associative_storage/CMakeLists.txt create mode 100644 third_party/include/websocketpp/examples/associative_storage/associative_storage.cpp create mode 100644 third_party/include/websocketpp/examples/broadcast_server/CMakeLists.txt create mode 100644 third_party/include/websocketpp/examples/broadcast_server/SConscript create mode 100644 third_party/include/websocketpp/examples/broadcast_server/broadcast_server.cpp create mode 100644 third_party/include/websocketpp/examples/debug_client/CMakeLists.txt create mode 100644 third_party/include/websocketpp/examples/debug_client/SConscript create mode 100644 third_party/include/websocketpp/examples/debug_client/debug_client.cpp create mode 100644 third_party/include/websocketpp/examples/debug_server/CMakeLists.txt create mode 100644 third_party/include/websocketpp/examples/debug_server/SConscript create mode 100644 third_party/include/websocketpp/examples/debug_server/debug_server.cpp create mode 100644 third_party/include/websocketpp/examples/dev/CMakeLists.txt create mode 100644 third_party/include/websocketpp/examples/dev/SConscript create mode 100644 third_party/include/websocketpp/examples/dev/main.cpp create mode 100644 third_party/include/websocketpp/examples/echo_client/CMakeLists.txt create mode 100644 third_party/include/websocketpp/examples/echo_client/SConscript create mode 100644 third_party/include/websocketpp/examples/echo_client/echo_client.cpp create mode 100644 third_party/include/websocketpp/examples/echo_server/CMakeLists.txt create mode 100644 third_party/include/websocketpp/examples/echo_server/SConscript create mode 100644 third_party/include/websocketpp/examples/echo_server/echo_handler.hpp create mode 100644 third_party/include/websocketpp/examples/echo_server/echo_server.cpp create mode 100644 third_party/include/websocketpp/examples/echo_server_both/CMakeLists.txt create mode 100644 third_party/include/websocketpp/examples/echo_server_both/SConscript create mode 100644 third_party/include/websocketpp/examples/echo_server_both/echo_server_both.cpp create mode 100644 third_party/include/websocketpp/examples/echo_server_both/server.pem create mode 100644 third_party/include/websocketpp/examples/echo_server_tls/CMakeLists.txt create mode 100644 third_party/include/websocketpp/examples/echo_server_tls/SConscript create mode 100644 third_party/include/websocketpp/examples/echo_server_tls/dh.pem create mode 100644 third_party/include/websocketpp/examples/echo_server_tls/echo_server_tls.cpp create mode 100644 third_party/include/websocketpp/examples/echo_server_tls/server.pem create mode 100644 third_party/include/websocketpp/examples/enriched_storage/CMakeLists.txt create mode 100644 third_party/include/websocketpp/examples/enriched_storage/enriched_storage.cpp create mode 100644 third_party/include/websocketpp/examples/external_io_service/CMakeLists.txt create mode 100644 third_party/include/websocketpp/examples/external_io_service/SConscript create mode 100644 third_party/include/websocketpp/examples/external_io_service/external_io_service.cpp create mode 100644 third_party/include/websocketpp/examples/external_io_service/tcp_echo_server.hpp create mode 100644 third_party/include/websocketpp/examples/handler_switch/CMakeLists.txt create mode 100644 third_party/include/websocketpp/examples/handler_switch/handler_switch.cpp create mode 100644 third_party/include/websocketpp/examples/iostream_server/CMakeLists.txt create mode 100644 third_party/include/websocketpp/examples/iostream_server/SConscript create mode 100644 third_party/include/websocketpp/examples/iostream_server/iostream_server.cpp create mode 100644 third_party/include/websocketpp/examples/print_client/CMakeLists.txt create mode 100644 third_party/include/websocketpp/examples/print_client/SConscript create mode 100644 third_party/include/websocketpp/examples/print_client/print_client.cpp create mode 100644 third_party/include/websocketpp/examples/print_client_tls/CMakeLists.txt create mode 100644 third_party/include/websocketpp/examples/print_client_tls/SConscript create mode 100644 third_party/include/websocketpp/examples/print_client_tls/ca-chain.cert.pem create mode 100644 third_party/include/websocketpp/examples/print_client_tls/print_client_tls.cpp create mode 100644 third_party/include/websocketpp/examples/print_server/CMakeLists.txt create mode 100644 third_party/include/websocketpp/examples/print_server/SConscript create mode 100644 third_party/include/websocketpp/examples/print_server/print_server.cpp create mode 100644 third_party/include/websocketpp/examples/scratch_client/SConscript create mode 100644 third_party/include/websocketpp/examples/scratch_client/scratch_client.cpp create mode 100644 third_party/include/websocketpp/examples/scratch_server/SConscript create mode 100644 third_party/include/websocketpp/examples/scratch_server/scratch_server.cpp create mode 100644 third_party/include/websocketpp/examples/simple_broadcast_server/CMakeLists.txt create mode 100644 third_party/include/websocketpp/examples/simple_broadcast_server/simple_broadcast_server.cpp create mode 100644 third_party/include/websocketpp/examples/sip_client/CMakeLists.txt create mode 100644 third_party/include/websocketpp/examples/sip_client/README.txt create mode 100644 third_party/include/websocketpp/examples/sip_client/SConscript create mode 100644 third_party/include/websocketpp/examples/sip_client/sip_client.cpp create mode 100644 third_party/include/websocketpp/examples/subprotocol_server/CMakeLists.txt create mode 100644 third_party/include/websocketpp/examples/subprotocol_server/SConscript create mode 100644 third_party/include/websocketpp/examples/subprotocol_server/subprotocol_server.cpp create mode 100644 third_party/include/websocketpp/examples/telemetry_client/CMakeLists.txt create mode 100644 third_party/include/websocketpp/examples/telemetry_client/SConscript create mode 100644 third_party/include/websocketpp/examples/telemetry_client/telemetry_client.cpp create mode 100644 third_party/include/websocketpp/examples/telemetry_server/CMakeLists.txt create mode 100644 third_party/include/websocketpp/examples/telemetry_server/SConscript create mode 100644 third_party/include/websocketpp/examples/telemetry_server/index.html create mode 100644 third_party/include/websocketpp/examples/telemetry_server/telemetry_server.cpp create mode 100644 third_party/include/websocketpp/examples/testee_client/CMakeLists.txt create mode 100644 third_party/include/websocketpp/examples/testee_client/SConscript create mode 100644 third_party/include/websocketpp/examples/testee_client/testee_client.cpp create mode 100644 third_party/include/websocketpp/examples/testee_server/CMakeLists.txt create mode 100644 third_party/include/websocketpp/examples/testee_server/SConscript create mode 100644 third_party/include/websocketpp/examples/testee_server/testee_server.cpp create mode 100644 third_party/include/websocketpp/examples/utility_client/CMakeLists.txt create mode 100644 third_party/include/websocketpp/examples/utility_client/SConscript create mode 100644 third_party/include/websocketpp/examples/utility_client/utility_client.cpp create mode 100644 third_party/include/websocketpp/readme.md create mode 100644 third_party/include/websocketpp/roadmap.md create mode 100644 third_party/include/websocketpp/test/connection/CMakeLists.txt create mode 100644 third_party/include/websocketpp/test/connection/SConscript create mode 100644 third_party/include/websocketpp/test/connection/connection.cpp create mode 100644 third_party/include/websocketpp/test/connection/connection_tu2.cpp create mode 100644 third_party/include/websocketpp/test/connection/connection_tu2.hpp create mode 100644 third_party/include/websocketpp/test/endpoint/CMakeLists.txt create mode 100644 third_party/include/websocketpp/test/endpoint/SConscript create mode 100644 third_party/include/websocketpp/test/endpoint/endpoint.cpp create mode 100644 third_party/include/websocketpp/test/extension/CMakeLists.txt create mode 100644 third_party/include/websocketpp/test/extension/SConscript create mode 100644 third_party/include/websocketpp/test/extension/extension.cpp create mode 100644 third_party/include/websocketpp/test/extension/permessage_deflate.cpp create mode 100644 third_party/include/websocketpp/test/http/CMakeLists.txt create mode 100644 third_party/include/websocketpp/test/http/SConscript create mode 100644 third_party/include/websocketpp/test/http/parser.cpp create mode 100644 third_party/include/websocketpp/test/http/parser_perf.cpp create mode 100644 third_party/include/websocketpp/test/logger/CMakeLists.txt create mode 100644 third_party/include/websocketpp/test/logger/SConscript create mode 100644 third_party/include/websocketpp/test/logger/basic.cpp create mode 100644 third_party/include/websocketpp/test/message_buffer/CMakeLists.txt create mode 100644 third_party/include/websocketpp/test/message_buffer/SConscript create mode 100644 third_party/include/websocketpp/test/message_buffer/alloc.cpp create mode 100644 third_party/include/websocketpp/test/message_buffer/message.cpp create mode 100644 third_party/include/websocketpp/test/message_buffer/pool.cpp create mode 100644 third_party/include/websocketpp/test/processors/CMakeLists.txt create mode 100644 third_party/include/websocketpp/test/processors/SConscript create mode 100644 third_party/include/websocketpp/test/processors/extension_permessage_compress.cpp create mode 100644 third_party/include/websocketpp/test/processors/hybi00.cpp create mode 100644 third_party/include/websocketpp/test/processors/hybi07.cpp create mode 100644 third_party/include/websocketpp/test/processors/hybi08.cpp create mode 100644 third_party/include/websocketpp/test/processors/hybi13.cpp create mode 100644 third_party/include/websocketpp/test/processors/processor.cpp create mode 100644 third_party/include/websocketpp/test/random/CMakeLists.txt create mode 100644 third_party/include/websocketpp/test/random/SConscript create mode 100644 third_party/include/websocketpp/test/random/none.cpp create mode 100644 third_party/include/websocketpp/test/random/random_device.cpp create mode 100644 third_party/include/websocketpp/test/roles/CMakeLists.txt create mode 100644 third_party/include/websocketpp/test/roles/SConscript create mode 100644 third_party/include/websocketpp/test/roles/client.cpp create mode 100644 third_party/include/websocketpp/test/roles/server.cpp create mode 100644 third_party/include/websocketpp/test/transport/CMakeLists.txt create mode 100644 third_party/include/websocketpp/test/transport/SConscript create mode 100644 third_party/include/websocketpp/test/transport/asio/SConscript create mode 100644 third_party/include/websocketpp/test/transport/asio/base.cpp create mode 100644 third_party/include/websocketpp/test/transport/asio/security.cpp create mode 100644 third_party/include/websocketpp/test/transport/asio/timers.cpp create mode 100644 third_party/include/websocketpp/test/transport/hybi_util.cpp create mode 100644 third_party/include/websocketpp/test/transport/integration.cpp create mode 100644 third_party/include/websocketpp/test/transport/iostream/SConscript create mode 100644 third_party/include/websocketpp/test/transport/iostream/base.cpp create mode 100644 third_party/include/websocketpp/test/transport/iostream/connection.cpp create mode 100644 third_party/include/websocketpp/test/transport/iostream/endpoint.cpp create mode 100644 third_party/include/websocketpp/test/utility/CMakeLists.txt create mode 100644 third_party/include/websocketpp/test/utility/SConscript create mode 100644 third_party/include/websocketpp/test/utility/close.cpp create mode 100644 third_party/include/websocketpp/test/utility/error.cpp create mode 100644 third_party/include/websocketpp/test/utility/frame.cpp create mode 100644 third_party/include/websocketpp/test/utility/sha1.cpp create mode 100644 third_party/include/websocketpp/test/utility/uri.cpp create mode 100644 third_party/include/websocketpp/test/utility/utilities.cpp create mode 100644 third_party/include/websocketpp/tutorials/broadcast_tutorial/broadcast_tutorial.md create mode 100644 third_party/include/websocketpp/tutorials/chat_tutorial/chat_tutorial.md create mode 100644 third_party/include/websocketpp/tutorials/utility_client/step1.cpp create mode 100644 third_party/include/websocketpp/tutorials/utility_client/step2.cpp create mode 100644 third_party/include/websocketpp/tutorials/utility_client/step3.cpp create mode 100644 third_party/include/websocketpp/tutorials/utility_client/step4.cpp create mode 100644 third_party/include/websocketpp/tutorials/utility_client/step5.cpp create mode 100644 third_party/include/websocketpp/tutorials/utility_client/step6.cpp create mode 100644 third_party/include/websocketpp/tutorials/utility_client/utility_client.md create mode 100644 third_party/include/websocketpp/tutorials/utility_server/step1.cpp create mode 100644 third_party/include/websocketpp/tutorials/utility_server/step2.cpp create mode 100644 third_party/include/websocketpp/tutorials/utility_server/utility_server.md create mode 100644 third_party/include/websocketpp/websocketpp-config.cmake.in create mode 100644 third_party/include/websocketpp/websocketpp/CMakeLists.txt rename third_party/include/websocketpp/{ => websocketpp}/base64/base64.hpp (100%) rename third_party/include/websocketpp/{ => websocketpp}/client.hpp (100%) rename third_party/include/websocketpp/{ => websocketpp}/close.hpp (100%) rename third_party/include/websocketpp/{ => websocketpp}/common/asio.hpp (100%) rename third_party/include/websocketpp/{ => websocketpp}/common/asio_ssl.hpp (100%) rename third_party/include/websocketpp/{ => websocketpp}/common/chrono.hpp (100%) rename third_party/include/websocketpp/{ => websocketpp}/common/connection_hdl.hpp (100%) rename third_party/include/websocketpp/{ => websocketpp}/common/cpp11.hpp (100%) rename third_party/include/websocketpp/{ => websocketpp}/common/functional.hpp (100%) rename third_party/include/websocketpp/{ => websocketpp}/common/md5.hpp (100%) rename third_party/include/websocketpp/{ => websocketpp}/common/memory.hpp (100%) rename third_party/include/websocketpp/{ => websocketpp}/common/network.hpp (100%) rename third_party/include/websocketpp/{ => websocketpp}/common/platforms.hpp (100%) rename third_party/include/websocketpp/{ => websocketpp}/common/random.hpp (100%) rename third_party/include/websocketpp/{ => websocketpp}/common/regex.hpp (100%) rename third_party/include/websocketpp/{ => websocketpp}/common/stdint.hpp (100%) rename third_party/include/websocketpp/{ => websocketpp}/common/system_error.hpp (100%) rename third_party/include/websocketpp/{ => websocketpp}/common/thread.hpp (100%) rename third_party/include/websocketpp/{ => websocketpp}/common/time.hpp (100%) rename third_party/include/websocketpp/{ => websocketpp}/common/type_traits.hpp (100%) rename third_party/include/websocketpp/{ => websocketpp}/concurrency/basic.hpp (100%) rename third_party/include/websocketpp/{ => websocketpp}/concurrency/none.hpp (100%) rename third_party/include/websocketpp/{ => websocketpp}/config/asio.hpp (100%) rename third_party/include/websocketpp/{ => websocketpp}/config/asio_client.hpp (100%) rename third_party/include/websocketpp/{ => websocketpp}/config/asio_no_tls.hpp (100%) rename third_party/include/websocketpp/{ => websocketpp}/config/asio_no_tls_client.hpp (100%) rename third_party/include/websocketpp/{ => websocketpp}/config/boost_config.hpp (100%) rename third_party/include/websocketpp/{ => websocketpp}/config/core.hpp (100%) rename third_party/include/websocketpp/{ => websocketpp}/config/core_client.hpp (100%) rename third_party/include/websocketpp/{ => websocketpp}/config/debug.hpp (100%) rename third_party/include/websocketpp/{ => websocketpp}/config/debug_asio.hpp (100%) rename third_party/include/websocketpp/{ => websocketpp}/config/debug_asio_no_tls.hpp (100%) rename third_party/include/websocketpp/{ => websocketpp}/config/minimal_client.hpp (100%) rename third_party/include/websocketpp/{ => websocketpp}/config/minimal_server.hpp (100%) rename third_party/include/websocketpp/{ => websocketpp}/connection.hpp (100%) rename third_party/include/websocketpp/{ => websocketpp}/connection_base.hpp (100%) rename third_party/include/websocketpp/{ => websocketpp}/endpoint.hpp (100%) rename third_party/include/websocketpp/{ => websocketpp}/endpoint_base.hpp (100%) rename third_party/include/websocketpp/{ => websocketpp}/error.hpp (100%) rename third_party/include/websocketpp/{ => websocketpp}/extensions/extension.hpp (100%) rename third_party/include/websocketpp/{ => websocketpp}/extensions/permessage_deflate/disabled.hpp (100%) rename third_party/include/websocketpp/{ => websocketpp}/extensions/permessage_deflate/enabled.hpp (100%) rename third_party/include/websocketpp/{ => websocketpp}/frame.hpp (100%) rename third_party/include/websocketpp/{ => websocketpp}/http/constants.hpp (100%) rename third_party/include/websocketpp/{ => websocketpp}/http/impl/parser.hpp (100%) rename third_party/include/websocketpp/{ => websocketpp}/http/impl/request.hpp (100%) rename third_party/include/websocketpp/{ => websocketpp}/http/impl/response.hpp (100%) rename third_party/include/websocketpp/{ => websocketpp}/http/parser.hpp (100%) rename third_party/include/websocketpp/{ => websocketpp}/http/request.hpp (100%) rename third_party/include/websocketpp/{ => websocketpp}/http/response.hpp (100%) rename third_party/include/websocketpp/{ => websocketpp}/impl/connection_impl.hpp (100%) rename third_party/include/websocketpp/{ => websocketpp}/impl/endpoint_impl.hpp (100%) rename third_party/include/websocketpp/{ => websocketpp}/impl/utilities_impl.hpp (100%) rename third_party/include/websocketpp/{ => websocketpp}/logger/basic.hpp (100%) rename third_party/include/websocketpp/{ => websocketpp}/logger/levels.hpp (100%) rename third_party/include/websocketpp/{ => websocketpp}/logger/stub.hpp (100%) rename third_party/include/websocketpp/{ => websocketpp}/logger/syslog.hpp (100%) rename third_party/include/websocketpp/{ => websocketpp}/message_buffer/alloc.hpp (100%) rename third_party/include/websocketpp/{ => websocketpp}/message_buffer/message.hpp (100%) rename third_party/include/websocketpp/{ => websocketpp}/message_buffer/pool.hpp (100%) rename third_party/include/websocketpp/{ => websocketpp}/processors/base.hpp (100%) rename third_party/include/websocketpp/{ => websocketpp}/processors/hybi00.hpp (100%) rename third_party/include/websocketpp/{ => websocketpp}/processors/hybi07.hpp (100%) rename third_party/include/websocketpp/{ => websocketpp}/processors/hybi08.hpp (100%) rename third_party/include/websocketpp/{ => websocketpp}/processors/hybi13.hpp (100%) rename third_party/include/websocketpp/{ => websocketpp}/processors/processor.hpp (100%) rename third_party/include/websocketpp/{ => websocketpp}/random/none.hpp (100%) rename third_party/include/websocketpp/{ => websocketpp}/random/random_device.hpp (100%) rename third_party/include/websocketpp/{ => websocketpp}/roles/client_endpoint.hpp (100%) rename third_party/include/websocketpp/{ => websocketpp}/roles/server_endpoint.hpp (100%) rename third_party/include/websocketpp/{ => websocketpp}/server.hpp (100%) rename third_party/include/websocketpp/{ => websocketpp}/sha1/sha1.hpp (100%) rename third_party/include/websocketpp/{ => websocketpp}/transport/asio/base.hpp (100%) rename third_party/include/websocketpp/{ => websocketpp}/transport/asio/connection.hpp (100%) rename third_party/include/websocketpp/{ => websocketpp}/transport/asio/endpoint.hpp (100%) rename third_party/include/websocketpp/{ => websocketpp}/transport/asio/security/base.hpp (100%) rename third_party/include/websocketpp/{ => websocketpp}/transport/asio/security/none.hpp (100%) rename third_party/include/websocketpp/{ => websocketpp}/transport/asio/security/tls.hpp (100%) rename third_party/include/websocketpp/{ => websocketpp}/transport/base/connection.hpp (100%) rename third_party/include/websocketpp/{ => websocketpp}/transport/base/endpoint.hpp (100%) rename third_party/include/websocketpp/{ => websocketpp}/transport/debug/base.hpp (100%) rename third_party/include/websocketpp/{ => websocketpp}/transport/debug/connection.hpp (100%) rename third_party/include/websocketpp/{ => websocketpp}/transport/debug/endpoint.hpp (100%) rename third_party/include/websocketpp/{ => websocketpp}/transport/iostream/base.hpp (100%) rename third_party/include/websocketpp/{ => websocketpp}/transport/iostream/connection.hpp (100%) rename third_party/include/websocketpp/{ => websocketpp}/transport/iostream/endpoint.hpp (100%) rename third_party/include/websocketpp/{ => websocketpp}/transport/stub/base.hpp (100%) rename third_party/include/websocketpp/{ => websocketpp}/transport/stub/connection.hpp (100%) rename third_party/include/websocketpp/{ => websocketpp}/transport/stub/endpoint.hpp (100%) rename third_party/include/websocketpp/{ => websocketpp}/uri.hpp (100%) rename third_party/include/websocketpp/{ => websocketpp}/utf8_validator.hpp (100%) rename third_party/include/websocketpp/{ => websocketpp}/utilities.hpp (100%) rename third_party/include/websocketpp/{ => websocketpp}/version.hpp (100%) diff --git a/CMakeLists.txt b/CMakeLists.txt index eb53fbe..9b006ee 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -26,7 +26,6 @@ include_directories( ${CMAKE_SOURCE_DIR}/include ${CMAKE_SOURCE_DIR}/third_party/include ${CMAKE_SOURCE_DIR}/third_party/include/paho_mqtt - ${CMAKE_SOURCE_DIR}/third_party/include/websocketpp ${GSTREAMER_INCLUDE_DIRS} /usr/include ) diff --git a/third_party/include/websocketpp/.gitattributes b/third_party/include/websocketpp/.gitattributes new file mode 100644 index 0000000..a9e4fc7 --- /dev/null +++ b/third_party/include/websocketpp/.gitattributes @@ -0,0 +1,18 @@ +# Lineendings +*.sln eol=crlf +*.vcproj eol=crlf +*.vcxproj* eol=crlf + +# Whitespace rules +# strict (no trailing, no tabs) +*.cpp whitespace=trailing-space,space-before-tab,tab-in-indent,cr-at-eol +*.hpp whitespace=trailing-space,space-before-tab,tab-in-indent,cr-at-eol +*.c whitespace=trailing-space,space-before-tab,tab-in-indent,cr-at-eol +*.h whitespace=trailing-space,space-before-tab,tab-in-indent,cr-at-eol + +# normal (no trailing) +*.sql whitespace=trailing-space,space-before-tab,cr-at-eol +*.txt whitespace=trailing-space,space-before-tab,cr-at-eol + +# special files which must ignore whitespace +*.patch whitespace=-trailing-space diff --git a/third_party/include/websocketpp/.github/FUNDING.yml b/third_party/include/websocketpp/.github/FUNDING.yml new file mode 100644 index 0000000..d1e95a9 --- /dev/null +++ b/third_party/include/websocketpp/.github/FUNDING.yml @@ -0,0 +1,3 @@ +# These are supported funding model platforms + +github: [zaphoyd] diff --git a/third_party/include/websocketpp/.gitignore b/third_party/include/websocketpp/.gitignore new file mode 100644 index 0000000..1d0c715 --- /dev/null +++ b/third_party/include/websocketpp/.gitignore @@ -0,0 +1,94 @@ +# make .git* files visible to git +!.gitignore +!.gitattributes + +.DS_Store + +#vim stuff +*~ +*.swp + +*.o +*.so +*.so.? +*.so.?.?.? +*.a +*.dylib +lib/* + +# CMake +*.cmake +*.dir +CMakeFiles +INSTALL.* +ZERO_CHECK.* +CMakeCache.txt +install_manifest.txt + +# Windows/Visual Studio +*.vcproj* +*.sln +*.suo +*.ncb +*/Debug/* +*/*/Debug/* +bin/Debug +*/Release/* +*/*/Release/* +*/RelWithDebInfo/* +*/*/RelWithDebInfo/* + +# explicitly allow this path with /debug/ in it +!websocketpp/transport/debug/* + +objs_shared/ +objs_static/ + +examples/chat_server/chat_server +examples/echo_server/echo_server +examples/chat_client/chat_client +examples/echo_client/echo_client +test/basic/tests +libwebsocketpp.dylib.0.1.0 + +websocketpp.xcodeproj/xcuserdata/* +websocketpp.xcodeproj/project.xcworkspace/xcuserdata/* +policy_based_notes.hpp + +examples/echo_server_tls/echo_server_tls + +examples/fuzzing_client/fuzzing_client + +examples/stress_client/stress_client + +examples/broadcast_server_tls/broadcast_server + +test/basic/perf + +examples/echo_server_tls/echo_server_tls + +examples/concurrent_server/concurrent_server + +examples/fuzzing_server_tls/fuzzing_server + +examples/wsperf/wsperf + +.sconsign.dblite + +build/ +doxygen/ +examples/wsperf/wsperf_client + +*.out + +*.log +*.opensdf +*.sdf +*.vcxproj +*.vcxproj.filters +*.user +install +Makefile +bin + +Testing/Temporary/CTestCostData.txt diff --git a/third_party/include/websocketpp/.travis.yml b/third_party/include/websocketpp/.travis.yml new file mode 100644 index 0000000..a2aa970 --- /dev/null +++ b/third_party/include/websocketpp/.travis.yml @@ -0,0 +1,21 @@ +language: cpp +compiler: + - gcc +before_install: + #- sudo apt-get install libboost-chrono1.48-dev libboost-regex1.48-dev libboost-system1.48-dev libboost-thread1.48-dev libboost-test1.48-dev libboost-random1.48-dev -y + - sudo add-apt-repository -y ppa:boost-latest/ppa && sudo apt-get update -q && sudo apt-get install -y libboost-chrono1.55-dev libboost-random1.55-dev libboost-regex1.55-dev libboost-system1.55-dev libboost-thread1.55-dev libboost-test1.55-dev +env: + global: + - BOOST_INCLUDES=/usr/include + - BOOST_LIBS=/usr/lib/x86_64-linux-gnu +script: scons -j 2 && scons test +branches: + only: + - master + - develop +notifications: + recipients: + - travis@zaphoyd.com + email: + on_success: change + on_failure: always diff --git a/third_party/include/websocketpp/CMakeLists.txt b/third_party/include/websocketpp/CMakeLists.txt index 3ea8cc1..92990c7 100644 --- a/third_party/include/websocketpp/CMakeLists.txt +++ b/third_party/include/websocketpp/CMakeLists.txt @@ -1,2 +1,282 @@ -init_target("websocketpp") -final_target () + +############ Setup project and cmake +# Minimum cmake requirement. We should require a quite recent +# cmake for the dependency find macros etc. to be up to date. +cmake_minimum_required (VERSION 3.10) + +############ Paths + +set (WEBSOCKETPP_ROOT ${CMAKE_CURRENT_SOURCE_DIR}) +set (WEBSOCKETPP_INCLUDE ${WEBSOCKETPP_ROOT}/websocketpp) +set (WEBSOCKETPP_BUILD_ROOT ${CMAKE_CURRENT_BINARY_DIR}) +set (WEBSOCKETPP_BIN ${WEBSOCKETPP_BUILD_ROOT}/bin) +set (WEBSOCKETPP_LIB ${WEBSOCKETPP_BUILD_ROOT}/lib) + +# CMake install step prefix. I assume linux users want the prefix to +# be the default /usr or /usr/local so this is only adjusted on Windows. +# This must be set prior to any call to project or it will not be read correctly. +# - Windows: Build the INSTALL project in your solution file. +# - Linux/OSX: make install. +if (WIN32) + set (CMAKE_INSTALL_PREFIX "${WEBSOCKETPP_ROOT}/install" CACHE PATH "") +endif () + +############ Project name and version +set (WEBSOCKETPP_MAJOR_VERSION 0) +set (WEBSOCKETPP_MINOR_VERSION 8) +set (WEBSOCKETPP_PATCH_VERSION 2) +set (WEBSOCKETPP_VERSION ${WEBSOCKETPP_MAJOR_VERSION}.${WEBSOCKETPP_MINOR_VERSION}.${WEBSOCKETPP_PATCH_VERSION}) + +if(POLICY CMP0048) + cmake_policy(GET CMP0048 _version_policy) +endif() + +if(_version_allowed STREQUAL NEW) + project (websocketpp VERSION ${WEBSOCKETPP_VERSION}) +else() + project (websocketpp) +endif() + +set_property(GLOBAL PROPERTY USE_FOLDERS ON) + +set(INSTALL_INCLUDE_DIR include CACHE PATH "Installation directory for header files") +if (WIN32 AND NOT CYGWIN) + set (DEF_INSTALL_CMAKE_DIR cmake) +else () + set (DEF_INSTALL_CMAKE_DIR lib/cmake/websocketpp) +endif () +set (INSTALL_CMAKE_DIR ${DEF_INSTALL_CMAKE_DIR} CACHE PATH "Installation directory for CMake files") + +# Make relative paths absolute (needed later on) +foreach (p INCLUDE CMAKE) + set (var INSTALL_${p}_DIR) + if (NOT IS_ABSOLUTE "${${var}}") + set (${var} "${CMAKE_INSTALL_PREFIX}/${${var}}") + endif () +endforeach () + +# Set CMake library search policy +if (COMMAND cmake_policy) + cmake_policy (SET CMP0003 NEW) + cmake_policy (SET CMP0005 NEW) +endif () + +# Disable unnecessary build types +set (CMAKE_CONFIGURATION_TYPES "Release;RelWithDebInfo;Debug" CACHE STRING "Configurations" FORCE) + +# Include our cmake macros +set (CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${CMAKE_CURRENT_SOURCE_DIR}/cmake) +include (CMakeHelpers) + + +############ Build customization + +# Override from command line "CMake -D