Home
last modified time | relevance | path

Searched refs:grpc_resolved_address (Results 1 – 25 of 68) sorted by relevance

123

/external/grpc-grpc/src/core/lib/iomgr/
Dsockaddr_utils.h31 int grpc_sockaddr_is_v4mapped(const grpc_resolved_address* addr,
32 grpc_resolved_address* addr4_out);
36 int grpc_sockaddr_to_v4mapped(const grpc_resolved_address* addr,
37 grpc_resolved_address* addr6_out);
41 int grpc_sockaddr_is_wildcard(const grpc_resolved_address* addr, int* port_out);
44 void grpc_sockaddr_make_wildcards(int port, grpc_resolved_address* wild4_out,
45 grpc_resolved_address* wild6_out);
48 void grpc_sockaddr_make_wildcard4(int port, grpc_resolved_address* wild_out);
51 void grpc_sockaddr_make_wildcard6(int port, grpc_resolved_address* wild_out);
54 int grpc_sockaddr_get_port(const grpc_resolved_address* addr);
[all …]
Dsockaddr_utils.cc40 int grpc_sockaddr_is_v4mapped(const grpc_resolved_address* resolved_addr, in grpc_sockaddr_is_v4mapped()
41 grpc_resolved_address* resolved_addr4_out) { in grpc_sockaddr_is_v4mapped()
70 int grpc_sockaddr_to_v4mapped(const grpc_resolved_address* resolved_addr, in grpc_sockaddr_to_v4mapped()
71 grpc_resolved_address* resolved_addr6_out) { in grpc_sockaddr_to_v4mapped()
91 int grpc_sockaddr_is_wildcard(const grpc_resolved_address* resolved_addr, in grpc_sockaddr_is_wildcard()
94 grpc_resolved_address addr4_normalized; in grpc_sockaddr_is_wildcard()
125 void grpc_sockaddr_make_wildcards(int port, grpc_resolved_address* wild4_out, in grpc_sockaddr_make_wildcards()
126 grpc_resolved_address* wild6_out) { in grpc_sockaddr_make_wildcards()
132 grpc_resolved_address* resolved_wild_out) { in grpc_sockaddr_make_wildcard4()
143 grpc_resolved_address* resolved_wild_out) { in grpc_sockaddr_make_wildcard6()
[all …]
Dudp_server.cc72 const grpc_resolved_address* addr);
119 grpc_resolved_address addr_;
145 const grpc_resolved_address* addr) in GrpcUdpListener()
156 memcpy(&addr_, addr, sizeof(grpc_resolved_address)); in GrpcUdpListener()
347 const grpc_resolved_address* addr) { in bind_socket()
358 const grpc_resolved_address* addr, int rcv_buf_size, in prepare_socket()
360 grpc_resolved_address sockname_temp; in prepare_socket()
552 const grpc_resolved_address* addr, in add_socket_to_server()
570 const grpc_resolved_address* addr, in grpc_udp_server_add_port()
588 grpc_resolved_address addr6_v4mapped; in grpc_udp_server_add_port()
[all …]
Dunix_sockets_posix.cc59 (*addrs)->addrs = static_cast<grpc_resolved_address*>( in grpc_resolve_unix_domain_address()
60 gpr_malloc(sizeof(grpc_resolved_address))); in grpc_resolve_unix_domain_address()
69 int grpc_is_unix_socket(const grpc_resolved_address* resolved_addr) { in grpc_is_unix_socket()
76 const grpc_resolved_address* resolved_addr) { in grpc_unlink_if_unix_domain_socket()
92 const grpc_resolved_address* resolved_addr) { in grpc_sockaddr_to_uri_unix_if_possible()
Dtcp_server_custom.cc208 grpc_resolved_address peer_name; in finish_accept()
213 memset(&peer_name, 0, sizeof(grpc_resolved_address)); in finish_accept()
272 const grpc_resolved_address* addr, in add_socket_to_server()
278 grpc_resolved_address sockname_temp; in add_socket_to_server()
323 const grpc_resolved_address* addr, in tcp_server_add_port()
328 grpc_resolved_address addr6_v4mapped; in tcp_server_add_port()
329 grpc_resolved_address wildcard; in tcp_server_add_port()
330 grpc_resolved_address* allocated_addr = nullptr; in tcp_server_add_port()
331 grpc_resolved_address sockname_temp; in tcp_server_add_port()
354 (grpc_resolved_address*)gpr_malloc(sizeof(grpc_resolved_address)); in tcp_server_add_port()
[all …]
Dtcp_server_windows.cc188 const grpc_resolved_address* addr, in prepare_socket()
190 grpc_resolved_address sockname_temp; in prepare_socket()
301 grpc_resolved_address peer_name; in on_accept()
389 const grpc_resolved_address* addr, in add_socket_to_server()
447 const grpc_resolved_address* addr, in tcp_server_add_port()
451 grpc_resolved_address addr6_v4mapped; in tcp_server_add_port()
452 grpc_resolved_address wildcard; in tcp_server_add_port()
453 grpc_resolved_address* allocated_addr = NULL; in tcp_server_add_port()
454 grpc_resolved_address sockname_temp; in tcp_server_add_port()
474 (grpc_resolved_address*)gpr_malloc(sizeof(grpc_resolved_address)); in tcp_server_add_port()
[all …]
Dunix_sockets_posix.h35 int grpc_is_unix_socket(const grpc_resolved_address* resolved_addr);
38 const grpc_resolved_address* resolved_addr);
41 const grpc_resolved_address* resolved_addr);
Dunix_sockets_posix_noop.cc41 int grpc_is_unix_socket(const grpc_resolved_address* addr) { return false; } in grpc_is_unix_socket()
43 void grpc_unlink_if_unix_domain_socket(const grpc_resolved_address* addr) {} in grpc_unlink_if_unix_domain_socket()
45 char* grpc_sockaddr_to_uri_unix_if_possible(const grpc_resolved_address* addr) { in grpc_sockaddr_to_uri_unix_if_possible()
Dtcp_server_utils_posix_common.cc81 const grpc_resolved_address* addr, in add_socket_to_server()
109 memcpy(&sp->addr, addr, sizeof(grpc_resolved_address)); in add_socket_to_server()
128 const grpc_resolved_address* addr, in grpc_tcp_server_add_addr()
132 grpc_resolved_address addr4_copy; in grpc_tcp_server_add_addr()
148 const grpc_resolved_address* addr, in grpc_tcp_server_prepare_socket()
150 grpc_resolved_address sockname_temp; in grpc_tcp_server_prepare_socket()
Dtcp_client_posix.h49 const grpc_resolved_address* addr,
50 grpc_resolved_address* mapped_addr,
65 const grpc_channel_args* channel_args, const grpc_resolved_address* addr,
Dtcp_server_utils_posix.h34 grpc_resolved_address addr;
100 const grpc_resolved_address* addr,
117 const grpc_resolved_address* addr,
Dsocket_utils_posix.h35 int grpc_accept4(int sockfd, grpc_resolved_address* resolved_addr, int nonblock,
133 grpc_error* grpc_create_dualstack_socket(const grpc_resolved_address* addr,
141 grpc_socket_factory* factory, const grpc_resolved_address* addr, int type,
Dtcp_client_posix.cc66 static grpc_error* prepare_socket(const grpc_resolved_address* addr, int fd, in prepare_socket()
253 const grpc_resolved_address* addr, in grpc_tcp_client_prepare_fd()
254 grpc_resolved_address* mapped_addr, in grpc_tcp_client_prepare_fd()
293 const grpc_channel_args* channel_args, const grpc_resolved_address* addr, in grpc_tcp_client_create_from_prepared_fd()
344 const grpc_resolved_address* addr, in tcp_connect()
346 grpc_resolved_address mapped_addr; in tcp_connect()
Dtcp_server_posix.cc192 grpc_resolved_address addr; in on_read()
271 grpc_resolved_address wild4; in add_wildcard_addrs_to_server()
272 grpc_resolved_address wild6; in add_wildcard_addrs_to_server()
366 memcpy(&sp->addr, &listener->addr, sizeof(grpc_resolved_address)); in clone_port()
382 const grpc_resolved_address* addr, in tcp_server_add_port()
385 grpc_resolved_address sockname_temp; in tcp_server_add_port()
386 grpc_resolved_address addr6_v4mapped; in tcp_server_add_port()
409 memcpy(&sockname_temp, addr, sizeof(grpc_resolved_address)); in tcp_server_add_port()
Dtcp_client.h34 const grpc_resolved_address* addr, grpc_millis deadline);
45 const grpc_resolved_address* addr,
/external/grpc-grpc/test/core/iomgr/
Dsockaddr_utils_test.cc35 static grpc_resolved_address make_addr4(const uint8_t* data, size_t data_len) { in make_addr4()
36 grpc_resolved_address resolved_addr4; in make_addr4()
48 static grpc_resolved_address make_addr6(const uint8_t* data, size_t data_len) { in make_addr6()
49 grpc_resolved_address resolved_addr6; in make_addr6()
61 static void set_addr6_scope_id(grpc_resolved_address* addr, uint32_t scope_id) { in set_addr6_scope_id()
78 grpc_resolved_address input4; in test_sockaddr_is_v4mapped()
79 grpc_resolved_address input6; in test_sockaddr_is_v4mapped()
80 grpc_resolved_address output4; in test_sockaddr_is_v4mapped()
81 grpc_resolved_address expect4; in test_sockaddr_is_v4mapped()
105 grpc_resolved_address input4; in test_sockaddr_to_v4mapped()
[all …]
Dudp_server_test.cc142 const grpc_resolved_address* addr) { in test_socket_factory_bind()
210 grpc_resolved_address resolved_addr; in test_no_op_with_port()
234 grpc_resolved_address resolved_addr; in test_no_op_with_port_and_socket_factory()
270 grpc_resolved_address resolved_addr; in test_no_op_with_port_and_start()
296 grpc_resolved_address resolved_addr; in test_receive()
/external/grpc-grpc/src/core/ext/filters/client_channel/
Dparse_address.h31 bool grpc_parse_unix(const grpc_uri* uri, grpc_resolved_address* resolved_addr);
35 bool grpc_parse_ipv4(const grpc_uri* uri, grpc_resolved_address* resolved_addr);
39 bool grpc_parse_ipv6(const grpc_uri* uri, grpc_resolved_address* resolved_addr);
42 bool grpc_parse_uri(const grpc_uri* uri, grpc_resolved_address* resolved_addr);
45 bool grpc_parse_ipv4_hostport(const char* hostport, grpc_resolved_address* addr,
47 bool grpc_parse_ipv6_hostport(const char* hostport, grpc_resolved_address* addr,
Dproxy_mapper.h45 const grpc_resolved_address* address,
47 grpc_resolved_address** new_address,
67 const grpc_resolved_address* address,
69 grpc_resolved_address** new_address,
Dparse_address.cc41 grpc_resolved_address* resolved_addr) { in grpc_parse_unix()
60 grpc_resolved_address* resolved_addr) { in grpc_parse_unix()
66 bool grpc_parse_ipv4_hostport(const char* hostport, grpc_resolved_address* addr, in grpc_parse_ipv4_hostport()
101 grpc_resolved_address* resolved_addr) { in grpc_parse_ipv4()
112 bool grpc_parse_ipv6_hostport(const char* hostport, grpc_resolved_address* addr, in grpc_parse_ipv6_hostport()
185 grpc_resolved_address* resolved_addr) { in grpc_parse_ipv6()
196 bool grpc_parse_uri(const grpc_uri* uri, grpc_resolved_address* resolved_addr) { in grpc_parse_uri()
Dproxy_mapper_registry.cc66 grpc_proxy_mapper_list* list, const grpc_resolved_address* address, in grpc_proxy_mapper_list_map_address()
67 const grpc_channel_args* args, grpc_resolved_address** new_address, in grpc_proxy_mapper_list_map_address()
116 bool grpc_proxy_mappers_map_address(const grpc_resolved_address* address, in grpc_proxy_mappers_map_address()
118 grpc_resolved_address** new_address, in grpc_proxy_mappers_map_address()
Dproxy_mapper_registry.h39 bool grpc_proxy_mappers_map_address(const grpc_resolved_address* address,
41 grpc_resolved_address** new_address,
Dproxy_mapper.cc38 const grpc_resolved_address* address, in grpc_proxy_mapper_map_address()
40 grpc_resolved_address** new_address, in grpc_proxy_mapper_map_address()
/external/grpc-grpc/test/core/client_channel/
Dparse_address_test.cc40 grpc_resolved_address addr; in test_grpc_parse_unix()
61 grpc_resolved_address addr; in test_grpc_parse_ipv4()
79 grpc_resolved_address addr; in test_grpc_parse_ipv6()
98 grpc_resolved_address addr; in test_grpc_parse_ipv6_invalid()
/external/grpc-grpc/src/python/grpcio/grpc/_cython/_cygrpc/
Dgrpc_gevent.pxd.pxi38 grpc_resolved_address* addrs
40 ctypedef struct grpc_resolved_address:
118 int grpc_sockaddr_get_port(const grpc_resolved_address *addr);
119 int grpc_sockaddr_to_string(char **out, const grpc_resolved_address *addr,
121 void grpc_string_to_sockaddr(grpc_resolved_address *out, char* addr, int port);
122 int grpc_sockaddr_set_port(const grpc_resolved_address *resolved_addr,
124 const char* grpc_sockaddr_get_uri_scheme(const grpc_resolved_address* resolved_addr)

123