|
@@ -992,6 +992,8 @@ public:
|
|
|
|
|
|
|
|
size_t is_socket_open() const;
|
|
size_t is_socket_open() const;
|
|
|
|
|
|
|
|
|
|
+ socket_t socket() const;
|
|
|
|
|
+
|
|
|
void stop();
|
|
void stop();
|
|
|
|
|
|
|
|
void set_hostname_addr_map(std::map<std::string, std::string> addr_map);
|
|
void set_hostname_addr_map(std::map<std::string, std::string> addr_map);
|
|
@@ -1344,6 +1346,8 @@ public:
|
|
|
|
|
|
|
|
size_t is_socket_open() const;
|
|
size_t is_socket_open() const;
|
|
|
|
|
|
|
|
|
|
+ socket_t socket() const;
|
|
|
|
|
+
|
|
|
void stop();
|
|
void stop();
|
|
|
|
|
|
|
|
void set_hostname_addr_map(std::map<std::string, std::string> addr_map);
|
|
void set_hostname_addr_map(std::map<std::string, std::string> addr_map);
|
|
@@ -6944,6 +6948,10 @@ inline size_t ClientImpl::is_socket_open() const {
|
|
|
return socket_.is_open();
|
|
return socket_.is_open();
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+inline socket_t ClientImpl::socket() const {
|
|
|
|
|
+ return socket_.sock;
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
inline void ClientImpl::stop() {
|
|
inline void ClientImpl::stop() {
|
|
|
std::lock_guard<std::mutex> guard(socket_mutex_);
|
|
std::lock_guard<std::mutex> guard(socket_mutex_);
|
|
|
|
|
|
|
@@ -8151,6 +8159,8 @@ inline Result Client::send(const Request &req) { return cli_->send(req); }
|
|
|
|
|
|
|
|
inline size_t Client::is_socket_open() const { return cli_->is_socket_open(); }
|
|
inline size_t Client::is_socket_open() const { return cli_->is_socket_open(); }
|
|
|
|
|
|
|
|
|
|
+inline socket_t Client::socket() const { return cli_->socket(); }
|
|
|
|
|
+
|
|
|
inline void Client::stop() { cli_->stop(); }
|
|
inline void Client::stop() { cli_->stop(); }
|
|
|
|
|
|
|
|
inline void
|
|
inline void
|