Searched defs:port_str (Results 1 - 5 of 5) sorted by relevance
/system/core/libcutils/ |
H A D | socket_network_client_windows.cpp | 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.cpp | 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(), 156 string port_str = line.substr(listening_msg_prefix_len); local 157 port_str.resize(port_str.find('\n')); 158 EXPECT_TRUE(base::StringToUint(port_str, &port_));
|
/system/core/adb/ |
H A D | sysdeps_win32.cpp | 848 char port_str[16]; local 849 snprintf(port_str, sizeof(port_str), "%d", port); 860 if (getaddrinfo(host.c_str(), port_str, &hints, &addrinfo_ptr) != 0) { 863 host.c_str(), port_str, 892 *error = android::base::StringPrintf("cannot connect to %s:%s: %s", host.c_str(), port_str, 895 port_str, error->c_str());
|
Completed in 148 milliseconds