MCPcopy Create free account
hub / github.com/Tablecruncher/tablecruncher / create_client_socket

Method create_client_socket

external/httplib.h:7289–7308  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

7287}
7288
7289inline 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
7310inline bool ClientImpl::create_and_connect_socket(Socket &socket,
7311 Error &error) {

Callers

nothing calls this directly

Calls 3

create_client_socketFunction · 0.85
findMethod · 0.80
endMethod · 0.45

Tested by

no test coverage detected