Searched refs:hostname_and_port (Results 1 – 2 of 2) sorted by relevance
72 bool Connect(int *out_sock, const std::string &hostname_and_port) { in Connect() argument73 const size_t colon_offset = hostname_and_port.find_last_of(':'); in Connect()77 hostname = hostname_and_port; in Connect()80 hostname = hostname_and_port.substr(0, colon_offset); in Connect()81 port = hostname_and_port.substr(colon_offset + 1); in Connect()
27 bool Connect(int *out_sock, const std::string &hostname_and_port);