Home
last modified time | relevance | path

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

/external/grpc-grpc/third_party/address_sorting/
Daddress_sorting_posix.c63 address_sorting_address found_source_addr; in posix_source_addr_factory_get_source_addr() local
64 memset(&found_source_addr, 0, sizeof(found_source_addr)); in posix_source_addr_factory_get_source_addr()
65 found_source_addr.len = sizeof(found_source_addr.addr); in posix_source_addr_factory_get_source_addr()
66 if (getsockname(s, (struct sockaddr*)&found_source_addr.addr, in posix_source_addr_factory_get_source_addr()
67 (socklen_t*)&found_source_addr.len) != -1) { in posix_source_addr_factory_get_source_addr()
69 *source_addr = found_source_addr; in posix_source_addr_factory_get_source_addr()
Daddress_sorting_windows.c61 address_sorting_address found_source_addr; in windows_source_addr_factory_get_source_addr() local
62 memset(&found_source_addr, 0, sizeof(found_source_addr)); in windows_source_addr_factory_get_source_addr()
63 found_source_addr.len = sizeof(found_source_addr.addr); in windows_source_addr_factory_get_source_addr()
64 if (getsockname(s, (struct sockaddr*)&found_source_addr.addr, in windows_source_addr_factory_get_source_addr()
65 (socklen_t*)&found_source_addr.len) == 0) { in windows_source_addr_factory_get_source_addr()
67 *source_addr = found_source_addr; in windows_source_addr_factory_get_source_addr()