Home
last modified time | relevance | path

Searched refs:addr_storage (Results 1 – 2 of 2) sorted by relevance

/system/core/adb/sysdeps/posix/
Dnetwork.cpp65 struct sockaddr_storage addr_storage = {}; in _network_loopback_client() local
66 socklen_t addrlen = sizeof(addr_storage); in _network_loopback_client()
67 sockaddr* addr = (ipv6 ? loopback_addr6 : loopback_addr4)(&addr_storage, &addrlen, 0); in _network_loopback_client()
74 addr = (ipv6 ? loopback_addr6 : loopback_addr4)(&addr_storage, &addrlen, port); in _network_loopback_client()
103 struct sockaddr_storage addr_storage = {}; in _network_loopback_server() local
104 socklen_t addrlen = sizeof(addr_storage); in _network_loopback_server()
105 sockaddr* addr = (ipv6 ? loopback_addr6 : loopback_addr4)(&addr_storage, &addrlen, port); in _network_loopback_server()
/system/core/adb/
Dsysdeps_win32.cpp1141 sockaddr_storage addr_storage; in adb_socket_get_local_port() local
1142 socklen_t addr_len = sizeof(addr_storage); in adb_socket_get_local_port()
1144 if (adb_getsockname(fd, reinterpret_cast<sockaddr*>(&addr_storage), &addr_len) < 0) { in adb_socket_get_local_port()
1149 if (!(addr_storage.ss_family == AF_INET || addr_storage.ss_family == AF_INET6)) { in adb_socket_get_local_port()
1150 D("adb_socket_get_local_port: unknown address family received: %d", addr_storage.ss_family); in adb_socket_get_local_port()
1155 return ntohs(reinterpret_cast<sockaddr_in*>(&addr_storage)->sin_port); in adb_socket_get_local_port()