Home
last modified time | relevance | path

Searched refs:grpc_sockaddr (Results 1 – 25 of 26) sorted by relevance

12

/external/grpc-grpc/src/core/lib/iomgr/
Dsockaddr_utils.cc43 const grpc_sockaddr* addr = in grpc_sockaddr_is_v4mapped()
44 reinterpret_cast<const grpc_sockaddr*>(resolved_addr->addr); in grpc_sockaddr_is_v4mapped()
73 const grpc_sockaddr* addr = in grpc_sockaddr_to_v4mapped()
74 reinterpret_cast<const grpc_sockaddr*>(resolved_addr->addr); in grpc_sockaddr_to_v4mapped()
93 const grpc_sockaddr* addr; in grpc_sockaddr_is_wildcard()
98 addr = reinterpret_cast<const grpc_sockaddr*>(resolved_addr->addr); in grpc_sockaddr_is_wildcard()
156 const grpc_sockaddr* addr; in grpc_sockaddr_to_string()
169 addr = reinterpret_cast<const grpc_sockaddr*>(resolved_addr->addr); in grpc_sockaddr_to_string()
241 const grpc_sockaddr* addr = in grpc_sockaddr_get_uri_scheme()
242 reinterpret_cast<const grpc_sockaddr*>(resolved_addr->addr); in grpc_sockaddr_get_uri_scheme()
[all …]
Dunix_sockets_posix.cc70 const grpc_sockaddr* addr = in grpc_is_unix_socket()
71 reinterpret_cast<const grpc_sockaddr*>(resolved_addr->addr); in grpc_is_unix_socket()
77 const grpc_sockaddr* addr = in grpc_unlink_if_unix_domain_socket()
78 reinterpret_cast<const grpc_sockaddr*>(resolved_addr->addr); in grpc_unlink_if_unix_domain_socket()
93 const grpc_sockaddr* addr = in grpc_sockaddr_to_uri_unix_if_possible()
94 reinterpret_cast<const grpc_sockaddr*>(resolved_addr->addr); in grpc_sockaddr_to_uri_unix_if_possible()
Dendpoint_pair_windows.cc50 GPR_ASSERT(bind(lst_sock, (grpc_sockaddr*)&addr, sizeof(addr)) != in create_sockets()
53 GPR_ASSERT(getsockname(lst_sock, (grpc_sockaddr*)&addr, &addr_len) != in create_sockets()
60 GPR_ASSERT(WSAConnect(cli_sock, (grpc_sockaddr*)&addr, addr_len, NULL, NULL, in create_sockets()
62 svr_sock = accept(lst_sock, (grpc_sockaddr*)&addr, &addr_len); in create_sockets()
Dtcp_custom.h52 void (*connect)(grpc_custom_socket* socket, const grpc_sockaddr* addr,
62 const grpc_sockaddr* addr, int* len);
64 const grpc_sockaddr* addr, int* len);
65 grpc_error* (*bind)(grpc_custom_socket* socket, const grpc_sockaddr* addr,
Dtcp_uv.cc45 #define IGNORE_CONST(addr) ((grpc_sockaddr*)(uintptr_t)(addr))
228 const grpc_sockaddr* addr, in uv_socket_getpeername()
237 const grpc_sockaddr* addr, in uv_socket_getsockname()
299 const grpc_sockaddr* addr, size_t len, in uv_socket_bind()
328 const grpc_sockaddr* addr, size_t len, in uv_socket_connect()
Dtcp_server_utils_posix_ifaddrs.cc71 if (bind(fd, reinterpret_cast<const grpc_sockaddr*>(wild.addr), wild.len) != in get_unused_port()
77 if (getsockname(fd, reinterpret_cast<grpc_sockaddr*>(wild.addr), &wild.len) != in get_unused_port()
Dudp_server.cc351 reinterpret_cast<grpc_sockaddr*>( in bind_socket()
361 grpc_sockaddr* addr_ptr = in prepare_socket()
362 reinterpret_cast<grpc_sockaddr*>(const_cast<char*>(addr->addr)); in prepare_socket()
423 if (getsockname(fd, reinterpret_cast<grpc_sockaddr*>(sockname_temp.addr), in prepare_socket()
604 reinterpret_cast<grpc_sockaddr*>(sockname_temp.addr), in grpc_udp_server_add_port()
Dtcp_server_custom.cc216 socket, (grpc_sockaddr*)&peer_name.addr, (int*)&peer_name.len); in finish_accept()
281 error = grpc_custom_socket_vtable->bind(socket, (grpc_sockaddr*)addr->addr, in add_socket_to_server()
294 socket, (grpc_sockaddr*)&sockname_temp.addr, (int*)&sockname_temp.len); in add_socket_to_server()
349 socket, (grpc_sockaddr*)&sockname_temp.addr, in tcp_server_add_port()
Dsocket_utils_common_posix.cc337 if (bind(fd, reinterpret_cast<grpc_sockaddr*>(&addr), sizeof(addr)) == 0) { in probe_ipv6_once()
397 const grpc_sockaddr* addr = in grpc_create_dualstack_socket_using_factory()
398 reinterpret_cast<const grpc_sockaddr*>(resolved_addr->addr); in grpc_create_dualstack_socket_using_factory()
Dtcp_server_windows.cc199 if (bind(sock, (const grpc_sockaddr*)addr->addr, (int)addr->len) == in prepare_socket()
211 if (getsockname(sock, (grpc_sockaddr*)sockname_temp.addr, in prepare_socket()
347 err = getpeername(sock, (grpc_sockaddr*)peer_name.addr, &peer_name_len); in on_accept()
468 (grpc_sockaddr*)sockname_temp.addr, in tcp_server_add_port()
Dsocket_utils_linux.cc38 return accept4(sockfd, reinterpret_cast<grpc_sockaddr*>(resolved_addr->addr), in grpc_accept4()
Dtcp_server_utils_posix_common.cc188 if (bind(fd, reinterpret_cast<grpc_sockaddr*>(const_cast<char*>(addr->addr)), in grpc_tcp_server_prepare_socket()
201 if (getsockname(fd, reinterpret_cast<grpc_sockaddr*>(sockname_temp.addr), in grpc_tcp_server_prepare_socket()
Dtcp_client_windows.cc177 bind(sock, (grpc_sockaddr*)&local_address.addr, (int)local_address.len); in tcp_connect()
185 success = ConnectEx(sock, (grpc_sockaddr*)&addr->addr, (int)addr->len, NULL, in tcp_connect()
Dsockaddr_custom.h33 typedef struct sockaddr grpc_sockaddr; typedef
Dsockaddr_windows.h34 typedef struct sockaddr grpc_sockaddr; typedef
Dsockaddr_posix.h34 typedef struct sockaddr grpc_sockaddr; typedef
Dsocket_utils_posix.cc37 fd = accept(sockfd, reinterpret_cast<grpc_sockaddr*>(resolved_addr->addr), in grpc_accept4()
Dtcp_client_custom.cc147 socket, (const grpc_sockaddr*)resolved_addr->addr, resolved_addr->len, in tcp_connect()
Dsocket_windows.cc169 if (bind(s, reinterpret_cast<grpc_sockaddr*>(&addr), sizeof(addr)) == 0) { in probe_ipv6_once()
Dtcp_client_posix.cc299 err = connect(fd, reinterpret_cast<const grpc_sockaddr*>(addr->addr), in grpc_tcp_client_create_from_prepared_fd()
/external/grpc-grpc/src/python/grpcio/grpc/_cython/_cygrpc/
Dgrpc_gevent.pxd.pxi32 ctypedef struct grpc_sockaddr:
73 void (*connect)(grpc_custom_socket* socket, const grpc_sockaddr* addr,
83 const grpc_sockaddr* addr, int* len);
85 const grpc_sockaddr* addr, int* len);
86 grpc_error* (*bind)(grpc_custom_socket* socket, const grpc_sockaddr* addr,
Dgrpc_gevent.pyx.pxi47 cdef sockaddr_to_tuple(const grpc_sockaddr* address, size_t length):
53 cdef sockaddr_is_ipv4(const grpc_sockaddr* address, size_t length):
113 cdef void socket_connect(grpc_custom_socket* socket, const grpc_sockaddr* addr,
215 const grpc_sockaddr* addr,
228 const grpc_sockaddr* addr,
247 const grpc_sockaddr* addr,
/external/grpc-grpc/test/core/iomgr/
Dsockaddr_utils_test.cc203 grpc_sockaddr* dummy_addr; in test_sockaddr_to_string()
240 dummy_addr = reinterpret_cast<grpc_sockaddr*>(dummy.addr); in test_sockaddr_to_string()
251 grpc_sockaddr* dummy_addr; in test_sockaddr_set_get_port()
266 dummy_addr = reinterpret_cast<grpc_sockaddr*>(dummy.addr); in test_sockaddr_set_get_port()
/external/grpc-grpc/test/core/surface/
Dconcurrent_connectivity_test.cc127 grpc_sockaddr* addr = reinterpret_cast<grpc_sockaddr*>(resolved_addr.addr); in bad_server_thread()
/external/grpc-grpc/src/core/ext/filters/load_reporting/
Dserver_load_reporting_filter.cc157 grpc_sockaddr* addr = reinterpret_cast<grpc_sockaddr*>(resolved_address.addr); in GetCensusSafeClientIpString()

12