Home
last modified time | relevance | path

Searched refs:port_str (Results 1 – 5 of 5) sorted by relevance

/system/core/base/
Dparsenetaddress.cpp35 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/
Dsocket_network_client_windows.cpp44 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()
Dsocket_network_client_unix.cpp53 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/
Dhttp_fetcher_unittest.cc81 string port_str = (port ? base::StringPrintf(":%hu", port) : ""); in LocalServerUrlForPath() local
83 "http://127.0.0.1%s%s", port_str.c_str(), path.c_str()); in LocalServerUrlForPath()
150 string port_str = line.substr(listening_msg_prefix_len); in PythonHttpServer() local
151 port_str.resize(port_str.find('\n')); in PythonHttpServer()
152 EXPECT_TRUE(base::StringToUint(port_str, &port_)); in PythonHttpServer()
/system/core/adb/
Dsysdeps_win32.cpp908 char port_str[16]; in network_connect() local
909 snprintf(port_str, sizeof(port_str), "%d", port); in network_connect()
920 if (getaddrinfo(host.c_str(), port_str, &hints, &addrinfo_ptr) != 0) { in network_connect()
923 host.c_str(), port_str, in network_connect()
952 *error = android::base::StringPrintf("cannot connect to %s:%s: %s", host.c_str(), port_str, in network_connect()
955 port_str, error->c_str()); in network_connect()