Searched refs:port_str (Results 1 - 5 of 5) sorted by relevance
/system/core/libcutils/ |
H A D | socket_network_client_windows.c | 44 char port_str[16]; local 45 snprintf(port_str, sizeof(port_str), "%d", port); 46 if (getaddrinfo(host, port_str, &hints, &address) != 0 || address == NULL) {
|
H A D | socket_network_client_unix.c | 53 char port_str[16]; local 54 snprintf(port_str, sizeof(port_str), "%d", port); 57 *getaddrinfo_error = getaddrinfo(host, port_str, &hints, &addrs);
|
/system/core/base/ |
H A D | parsenetaddress.cpp | 35 std::string port_str; local 43 port_str = address.substr(address.rfind("]:") + 2); 54 port_str = pieces[1]; 65 if (sscanf(port_str.c_str(), "%d", port) != 1 || *port <= 0 || 67 *error = StringPrintf("bad port number '%s' in '%s'", port_str.c_str(),
|
/system/update_engine/common/ |
H A D | http_fetcher_unittest.cc | 81 string port_str = (port ? base::StringPrintf(":%hu", port) : ""); local 82 return base::StringPrintf("http://127.0.0.1%s%s", port_str.c_str(), 158 string port_str = line.substr(listening_msg_prefix_len); local 159 port_str.resize(port_str.find('\n')); 160 EXPECT_TRUE(base::StringToUint(port_str, &port_));
|
/system/core/adb/ |
H A D | sysdeps_win32.cpp | 989 char port_str[16]; local 990 snprintf(port_str, sizeof(port_str), "%d", port); 1001 if (getaddrinfo(host.c_str(), port_str, &hints, &addrinfo_ptr) != 0) { 1004 host.c_str(), port_str, 1033 *error = android::base::StringPrintf("cannot connect to %s:%s: %s", host.c_str(), port_str, 1036 port_str, error->c_str());
|
Completed in 145 milliseconds