Static Webview - RTC - UDP - TCP - WSS

This commit is contained in:
2026-10-03 01:22:41 -07:00
parent 058104d93f
commit 75224df058
19 changed files with 1994 additions and 284 deletions

View File

@ -5,6 +5,7 @@
#include <queue>
#include <mutex>
#include <chrono>
#include <atomic>
#ifdef _WIN32
#include <winsock2.h>
@ -31,7 +32,8 @@ public:
ConnectionPool() = default;
~ConnectionPool();
socket_t acquire_connection(const std::string& host, int port, bool is_ssl = false);
socket_t acquire_connection(const std::string& host, int port, bool is_ssl = false,
std::atomic<bool>* cancel = nullptr);
// returns connection to pool for reuse
void release_connection(const std::string& host, int port, socket_t socket, bool is_ssl = false);