Home
last modified time | relevance | path

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

12

/third_party/grpc/src/core/lib/iomgr/
Dsockaddr_utils.cc47 const grpc_sockaddr* addr = in grpc_sockaddr_is_v4mapped()
48 reinterpret_cast<const grpc_sockaddr*>(resolved_addr->addr); in grpc_sockaddr_is_v4mapped()
77 const grpc_sockaddr* addr = in grpc_sockaddr_to_v4mapped()
78 reinterpret_cast<const grpc_sockaddr*>(resolved_addr->addr); in grpc_sockaddr_to_v4mapped()
97 const grpc_sockaddr* addr; in grpc_sockaddr_is_wildcard()
102 addr = reinterpret_cast<const grpc_sockaddr*>(resolved_addr->addr); in grpc_sockaddr_is_wildcard()
164 const grpc_sockaddr* addr = in grpc_sockaddr_to_string()
165 reinterpret_cast<const grpc_sockaddr*>(resolved_addr->addr); in grpc_sockaddr_to_string()
239 const grpc_sockaddr* addr = in grpc_sockaddr_get_uri_scheme()
240 reinterpret_cast<const grpc_sockaddr*>(resolved_addr->addr); in grpc_sockaddr_get_uri_scheme()
[all …]
Dunix_sockets_posix.cc66 const grpc_sockaddr* addr = in grpc_is_unix_socket()
67 reinterpret_cast<const grpc_sockaddr*>(resolved_addr->addr); in grpc_is_unix_socket()
73 const grpc_sockaddr* addr = in grpc_unlink_if_unix_domain_socket()
74 reinterpret_cast<const grpc_sockaddr*>(resolved_addr->addr); in grpc_unlink_if_unix_domain_socket()
94 const grpc_sockaddr* addr = in grpc_sockaddr_to_uri_unix_if_possible()
95 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.h55 void (*connect)(grpc_custom_socket* socket, const grpc_sockaddr* addr,
65 const grpc_sockaddr* addr, int* len);
67 const grpc_sockaddr* addr, int* len);
68 grpc_error* (*bind)(grpc_custom_socket* socket, const grpc_sockaddr* addr,
Dtcp_uv.cc44 #define IGNORE_CONST(addr) ((grpc_sockaddr*)(uintptr_t)(addr))
227 const grpc_sockaddr* addr, in uv_socket_getpeername()
236 const grpc_sockaddr* addr, in uv_socket_getsockname()
297 const grpc_sockaddr* addr, size_t len, in uv_socket_bind()
326 const grpc_sockaddr* addr, size_t len, in uv_socket_connect()
Dtcp_server_utils_posix_ifaddrs.cc74 if (bind(fd, reinterpret_cast<const grpc_sockaddr*>(wild.addr), wild.len) != in get_unused_port()
80 if (getsockname(fd, reinterpret_cast<grpc_sockaddr*>(wild.addr), &wild.len) != in get_unused_port()
Dudp_server.cc352 reinterpret_cast<grpc_sockaddr*>( in bind_socket()
362 grpc_sockaddr* addr_ptr = in prepare_socket()
363 reinterpret_cast<grpc_sockaddr*>(const_cast<char*>(addr->addr)); in prepare_socket()
422 if (getsockname(fd, reinterpret_cast<grpc_sockaddr*>(sockname_temp.addr), in prepare_socket()
605 reinterpret_cast<grpc_sockaddr*>(sockname_temp.addr), in grpc_udp_server_add_port()
Dtcp_server_custom.cc226 socket, reinterpret_cast<grpc_sockaddr*>(&peer_name.addr), in finish_accept()
296 socket, reinterpret_cast<grpc_sockaddr*>(const_cast<char*>(addr->addr)), in add_socket_to_server()
309 socket, reinterpret_cast<grpc_sockaddr*>(&sockname_temp.addr), in add_socket_to_server()
366 reinterpret_cast<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()
Dsockaddr_custom.h33 typedef struct sockaddr grpc_sockaddr; typedef
Dsockaddr_posix.h34 typedef struct sockaddr grpc_sockaddr; typedef
Dsockaddr_windows.h34 typedef struct sockaddr grpc_sockaddr; typedef
Dtcp_server_windows.cc206 if (bind(sock, (const grpc_sockaddr*)addr->addr, (int)addr->len) == in prepare_socket()
218 if (getsockname(sock, (grpc_sockaddr*)sockname_temp.addr, in prepare_socket()
350 err = getpeername(sock, (grpc_sockaddr*)peer_name.addr, &peer_name_len); in on_accept()
471 (grpc_sockaddr*)sockname_temp.addr, in tcp_server_add_port()
Dtcp_server_utils_posix_common.cc186 if (bind(fd, reinterpret_cast<grpc_sockaddr*>(const_cast<char*>(addr->addr)), in grpc_tcp_server_prepare_socket()
199 if (getsockname(fd, reinterpret_cast<grpc_sockaddr*>(sockname_temp.addr), in grpc_tcp_server_prepare_socket()
Dsocket_utils_posix.cc37 fd = accept(sockfd, reinterpret_cast<grpc_sockaddr*>(resolved_addr->addr), in grpc_accept4()
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()
Dsocket_utils_common_posix.cc425 if (bind(fd, reinterpret_cast<grpc_sockaddr*>(&addr), sizeof(addr)) == 0) { in probe_ipv6_once()
466 const grpc_sockaddr* addr = in grpc_create_dualstack_socket_using_factory()
467 reinterpret_cast<const grpc_sockaddr*>(resolved_addr->addr); in grpc_create_dualstack_socket_using_factory()
/third_party/grpc/src/python/grpcio/grpc/_cython/_cygrpc/
Diomgr.pxd.pxi35 ctypedef struct grpc_sockaddr:
78 void (*connect)(grpc_custom_socket* socket, const grpc_sockaddr* addr,
88 const grpc_sockaddr* addr, int* len);
90 const grpc_sockaddr* addr, int* len);
91 grpc_error* (*bind)(grpc_custom_socket* socket, const grpc_sockaddr* addr,
Diomgr.pyx.pxi40 cdef sockaddr_to_tuple(const grpc_sockaddr* address, size_t length):
46 cdef sockaddr_is_ipv4(const grpc_sockaddr* address, size_t length):
Dgrpc_gevent.pyx.pxi70 cdef void socket_connect(grpc_custom_socket* socket, const grpc_sockaddr* addr,
172 const grpc_sockaddr* addr,
185 const grpc_sockaddr* addr,
204 const grpc_sockaddr* addr,
/third_party/grpc/test/core/iomgr/
Dsockaddr_utils_test.cc194 grpc_sockaddr* dummy_addr; in test_sockaddr_to_string()
231 dummy_addr = reinterpret_cast<grpc_sockaddr*>(dummy.addr); in test_sockaddr_to_string()
242 grpc_sockaddr* dummy_addr; in test_sockaddr_set_get_port()
257 dummy_addr = reinterpret_cast<grpc_sockaddr*>(dummy.addr); in test_sockaddr_set_get_port()
/third_party/grpc/src/core/lib/security/security_connector/local/
Dlocal_security_connector.cc78 if (getsockname(fd, reinterpret_cast<grpc_sockaddr*>(resolved_addr.addr), in local_check_peer()
85 grpc_sockaddr* sock_addr = reinterpret_cast<grpc_sockaddr*>(&addr->addr); in local_check_peer()
/third_party/grpc/src/python/grpcio/grpc/_cython/_cygrpc/aio/iomgr/
Diomgr.pyx.pxi49 const grpc_sockaddr* addr,
89 const grpc_sockaddr* addr,
104 const grpc_sockaddr* addr,
139 const grpc_sockaddr* addr,
/third_party/grpc/test/core/surface/
Dconcurrent_connectivity_test.cc138 grpc_sockaddr* addr = reinterpret_cast<grpc_sockaddr*>(resolved_addr.addr); in bad_server_thread()
/third_party/grpc/src/core/ext/filters/load_reporting/
Dserver_load_reporting_filter.cc156 grpc_sockaddr* addr = reinterpret_cast<grpc_sockaddr*>(resolved_address.addr); in GetCensusSafeClientIpString()

12