Searched refs:port_str (Results 1 – 5 of 5) sorted by relevance
/system/core/base/ |
D | parsenetaddress.cpp | 35 std::string port_str; in ParseNetAddress() local 43 port_str = address.substr(address.rfind("]:") + 2); in ParseNetAddress() 54 port_str = pieces[1]; in ParseNetAddress() 65 if (sscanf(port_str.c_str(), "%d", port) != 1 || *port <= 0 || in ParseNetAddress() 67 *error = StringPrintf("bad port number '%s' in '%s'", port_str.c_str(), in ParseNetAddress()
|
/system/core/libcutils/ |
D | socket_network_client_windows.c | 44 char port_str[16]; in socket_network_client() local 45 snprintf(port_str, sizeof(port_str), "%d", port); in socket_network_client() 46 if (getaddrinfo(host, port_str, &hints, &address) != 0 || address == NULL) { in socket_network_client()
|
D | socket_network_client_unix.c | 53 char port_str[16]; in socket_network_client_timeout() local 54 snprintf(port_str, sizeof(port_str), "%d", port); in socket_network_client_timeout() 57 *getaddrinfo_error = getaddrinfo(host, port_str, &hints, &addrs); in socket_network_client_timeout()
|
/system/update_engine/common/ |
D | http_fetcher_unittest.cc | 82 string port_str = (port ? base::StringPrintf(":%hu", port) : ""); in LocalServerUrlForPath() local 83 return base::StringPrintf("http://127.0.0.1%s%s", port_str.c_str(), in LocalServerUrlForPath() 157 string port_str = line.substr(listening_msg_prefix_len); in PythonHttpServer() local 158 port_str.resize(port_str.find('\n')); in PythonHttpServer() 159 EXPECT_TRUE(base::StringToUint(port_str, &port_)); in PythonHttpServer()
|
/system/core/adb/ |
D | sysdeps_win32.cpp | 850 char port_str[16]; in network_connect() local 851 snprintf(port_str, sizeof(port_str), "%d", port); in network_connect() 862 if (getaddrinfo(host.c_str(), port_str, &hints, &addrinfo_ptr) != 0) { in network_connect() 865 host.c_str(), port_str, in network_connect() 894 *error = android::base::StringPrintf("cannot connect to %s:%s: %s", host.c_str(), port_str, in network_connect() 897 port_str, error->c_str()); in network_connect()
|