Searched refs:hostname_and_port (Results 1 – 2 of 2) sorted by relevance
88 const std::string &hostname_and_port) { in SplitHostPort() argument89 size_t colon_offset = hostname_and_port.find_last_of(':'); in SplitHostPort()90 const size_t bracket_offset = hostname_and_port.find_last_of(']'); in SplitHostPort()100 *out_hostname = hostname_and_port; in SplitHostPort()103 *out_hostname = hostname_and_port.substr(0, colon_offset); in SplitHostPort()104 *out_port = hostname_and_port.substr(colon_offset + 1); in SplitHostPort()138 bool Connect(int *out_sock, const std::string &hostname_and_port) { in Connect() argument140 SplitHostPort(&hostname, &port, hostname_and_port); in Connect()944 bool DoHTTPTunnel(int sock, const std::string &hostname_and_port) { in DoHTTPTunnel() argument946 SplitHostPort(&hostname, &port, hostname_and_port); in DoHTTPTunnel()
29 bool Connect(int *out_sock, const std::string &hostname_and_port);69 bool DoHTTPTunnel(int sock, const std::string &hostname_and_port);