Static Webview - RTC - UDP - TCP - WSS
This commit is contained in:
@ -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);
|
||||
|
||||
Reference in New Issue
Block a user