Searched refs:sockname_temp (Results 1 – 5 of 5) sorted by relevance
/external/grpc-grpc/src/core/lib/iomgr/ |
D | tcp_server_custom.cc | 278 grpc_resolved_address sockname_temp; in add_socket_to_server() local 292 sockname_temp.len = GRPC_MAX_SOCKADDR_SIZE; in add_socket_to_server() 294 socket, (grpc_sockaddr*)&sockname_temp.addr, (int*)&sockname_temp.len); in add_socket_to_server() 299 port = grpc_sockaddr_get_port(&sockname_temp); in add_socket_to_server() 331 grpc_resolved_address sockname_temp; in tcp_server_add_port() local 347 sockname_temp.len = GRPC_MAX_SOCKADDR_SIZE; in tcp_server_add_port() 349 socket, (grpc_sockaddr*)&sockname_temp.addr, in tcp_server_add_port() 350 (int*)&sockname_temp.len)) { in tcp_server_add_port() 351 *port = grpc_sockaddr_get_port(&sockname_temp); in tcp_server_add_port()
|
D | tcp_server_utils_posix_common.cc | 150 grpc_resolved_address sockname_temp; in grpc_tcp_server_prepare_socket() local 199 sockname_temp.len = static_cast<socklen_t>(sizeof(struct sockaddr_storage)); in grpc_tcp_server_prepare_socket() 201 if (getsockname(fd, reinterpret_cast<grpc_sockaddr*>(sockname_temp.addr), in grpc_tcp_server_prepare_socket() 202 &sockname_temp.len) < 0) { in grpc_tcp_server_prepare_socket() 207 *port = grpc_sockaddr_get_port(&sockname_temp); in grpc_tcp_server_prepare_socket()
|
D | udp_server.cc | 360 grpc_resolved_address sockname_temp; in prepare_socket() local 421 sockname_temp.len = static_cast<socklen_t>(sizeof(struct sockaddr_storage)); in prepare_socket() 423 if (getsockname(fd, reinterpret_cast<grpc_sockaddr*>(sockname_temp.addr), in prepare_socket() 424 &sockname_temp.len) < 0) { in prepare_socket() 430 return grpc_sockaddr_get_port(&sockname_temp); in prepare_socket() 593 grpc_resolved_address sockname_temp; in grpc_udp_server_add_port() local 601 sockname_temp.len = in grpc_udp_server_add_port() 604 reinterpret_cast<grpc_sockaddr*>(sockname_temp.addr), in grpc_udp_server_add_port() 605 &sockname_temp.len)) { in grpc_udp_server_add_port() 606 port = grpc_sockaddr_get_port(&sockname_temp); in grpc_udp_server_add_port()
|
D | tcp_server_windows.cc | 190 grpc_resolved_address sockname_temp; in prepare_socket() local 211 if (getsockname(sock, (grpc_sockaddr*)sockname_temp.addr, in prepare_socket() 216 sockname_temp.len = (size_t)sockname_temp_len; in prepare_socket() 218 *port = grpc_sockaddr_get_port(&sockname_temp); in prepare_socket() 454 grpc_resolved_address sockname_temp; in tcp_server_add_port() local 468 (grpc_sockaddr*)sockname_temp.addr, in tcp_server_add_port() 470 sockname_temp.len = (size_t)sockname_temp_len; in tcp_server_add_port() 471 *port = grpc_sockaddr_get_port(&sockname_temp); in tcp_server_add_port()
|
D | tcp_server_posix.cc | 385 grpc_resolved_address sockname_temp; in tcp_server_add_port() local 401 sockname_temp.len = in tcp_server_add_port() 405 reinterpret_cast<grpc_sockaddr*>(&sockname_temp.addr), in tcp_server_add_port() 406 &sockname_temp.len)) { in tcp_server_add_port() 407 int used_port = grpc_sockaddr_get_port(&sockname_temp); in tcp_server_add_port() 409 memcpy(&sockname_temp, addr, sizeof(grpc_resolved_address)); in tcp_server_add_port() 410 grpc_sockaddr_set_port(&sockname_temp, used_port); in tcp_server_add_port() 412 addr = &sockname_temp; in tcp_server_add_port()
|