MCPcopy Create free account
hub / github.com/CalcProgrammer1/OpenRGB / create_client_socket

Method create_client_socket

dependencies/httplib/httplib.h:5835–5854  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5833}
5834
5835inline 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
5856inline bool ClientImpl::create_and_connect_socket(Socket &socket,
5857 Error &error) {

Callers

nothing calls this directly

Calls 4

create_client_socketFunction · 0.85
emptyMethod · 0.45
findMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected