Searched refs:addr_storage (Results 1 – 2 of 2) sorted by relevance
65 struct sockaddr_storage addr_storage = {}; in _network_loopback_client() local66 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() local104 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()
1141 sockaddr_storage addr_storage; in adb_socket_get_local_port() local1142 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()