| 7287 | } |
| 7288 | |
| 7289 | inline socket_t ClientImpl::create_client_socket(Error &error) const { |
| 7290 | if (!proxy_host_.empty() && proxy_port_ != -1) { |
| 7291 | return detail::create_client_socket( |
| 7292 | proxy_host_, std::string(), proxy_port_, address_family_, tcp_nodelay_, |
| 7293 | ipv6_v6only_, socket_options_, connection_timeout_sec_, |
| 7294 | connection_timeout_usec_, read_timeout_sec_, read_timeout_usec_, |
| 7295 | write_timeout_sec_, write_timeout_usec_, interface_, error); |
| 7296 | } |
| 7297 | |
| 7298 | // Check is custom IP specified for host_ |
| 7299 | std::string ip; |
| 7300 | auto it = addr_map_.find(host_); |
| 7301 | if (it != addr_map_.end()) { ip = it->second; } |
| 7302 | |
| 7303 | return detail::create_client_socket( |
| 7304 | host_, ip, port_, address_family_, tcp_nodelay_, ipv6_v6only_, |
| 7305 | socket_options_, connection_timeout_sec_, connection_timeout_usec_, |
| 7306 | read_timeout_sec_, read_timeout_usec_, write_timeout_sec_, |
| 7307 | write_timeout_usec_, interface_, error); |
| 7308 | } |
| 7309 | |
| 7310 | inline bool ClientImpl::create_and_connect_socket(Socket &socket, |
| 7311 | Error &error) { |
nothing calls this directly
no test coverage detected