| 12557 | } |
| 12558 | |
| 12559 | inline socket_t ClientImpl::create_client_socket(Error &error) const { |
| 12560 | if (is_proxy_enabled_for_host(host_)) { |
| 12561 | return detail::create_client_socket( |
| 12562 | proxy_host_, std::string(), proxy_port_, address_family_, tcp_nodelay_, |
| 12563 | ipv6_v6only_, socket_options_, connection_timeout_sec_, |
| 12564 | connection_timeout_usec_, read_timeout_sec_, read_timeout_usec_, |
| 12565 | write_timeout_sec_, write_timeout_usec_, interface_, error); |
| 12566 | } |
| 12567 | |
| 12568 | // Check is custom IP specified for host_ |
| 12569 | std::string ip; |
| 12570 | auto it = addr_map_.find(host_); |
| 12571 | if (it != addr_map_.end()) { ip = it->second; } |
| 12572 | |
| 12573 | return detail::create_client_socket( |
| 12574 | host_, ip, port_, address_family_, tcp_nodelay_, ipv6_v6only_, |
| 12575 | socket_options_, connection_timeout_sec_, connection_timeout_usec_, |
| 12576 | read_timeout_sec_, read_timeout_usec_, write_timeout_sec_, |
| 12577 | write_timeout_usec_, interface_, error); |
| 12578 | } |
| 12579 | |
| 12580 | inline bool ClientImpl::create_and_connect_socket(Socket &socket, |
| 12581 | Error &error) { |
nothing calls this directly
no test coverage detected