| 5833 | } |
| 5834 | |
| 5835 | inline socket_t ClientImpl::create_client_socket(Error &error) const { |
| 5836 | if (!proxy_host_.empty() && proxy_port_ != -1) { |
| 5837 | return detail::create_client_socket( |
| 5838 | proxy_host_.c_str(), "", proxy_port_, address_family_, tcp_nodelay_, |
| 5839 | socket_options_, connection_timeout_sec_, connection_timeout_usec_, |
| 5840 | read_timeout_sec_, read_timeout_usec_, write_timeout_sec_, |
| 5841 | write_timeout_usec_, interface_, error); |
| 5842 | } |
| 5843 | |
| 5844 | // Check is custom IP specified for host_ |
| 5845 | std::string ip; |
| 5846 | auto it = addr_map_.find(host_); |
| 5847 | if (it != addr_map_.end()) ip = it->second; |
| 5848 | |
| 5849 | return detail::create_client_socket( |
| 5850 | host_.c_str(), ip.c_str(), port_, address_family_, tcp_nodelay_, |
| 5851 | socket_options_, connection_timeout_sec_, connection_timeout_usec_, |
| 5852 | read_timeout_sec_, read_timeout_usec_, write_timeout_sec_, |
| 5853 | write_timeout_usec_, interface_, error); |
| 5854 | } |
| 5855 | |
| 5856 | inline bool ClientImpl::create_and_connect_socket(Socket &socket, |
| 5857 | Error &error) { |
nothing calls this directly
no test coverage detected