MCPcopy Create free account
hub / github.com/ChiyukiGana/Quickinput / create_client_socket

Method create_client_socket

source/src/httplib/httplib.h:12559–12578  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

12557}
12558
12559inline 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
12580inline bool ClientImpl::create_and_connect_socket(Socket &socket,
12581 Error &error) {

Callers

nothing calls this directly

Calls 3

create_client_socketFunction · 0.85
endMethod · 0.80
findMethod · 0.45

Tested by

no test coverage detected