Home
last modified time | relevance | path

Searched refs:grpc_socket_mutator (Results 1 – 15 of 15) sorted by relevance

/external/grpc-grpc/src/core/lib/iomgr/
Dsocket_mutator.h32 bool (*mutate_fd)(int fd, grpc_socket_mutator* mutator);
34 int (*compare)(grpc_socket_mutator* a, grpc_socket_mutator* b);
36 void (*destroy)(grpc_socket_mutator* mutator);
40 struct grpc_socket_mutator { struct
46 void grpc_socket_mutator_init(grpc_socket_mutator* mutator, argument
50 grpc_arg grpc_socket_mutator_to_arg(grpc_socket_mutator* mutator);
53 bool grpc_socket_mutator_mutate_fd(grpc_socket_mutator* mutator, int fd);
56 int grpc_socket_mutator_compare(grpc_socket_mutator* a, grpc_socket_mutator* b);
58 grpc_socket_mutator* grpc_socket_mutator_ref(grpc_socket_mutator* mutator);
59 void grpc_socket_mutator_unref(grpc_socket_mutator* mutator);
Dsocket_mutator.cc29 void grpc_socket_mutator_init(grpc_socket_mutator* mutator, in grpc_socket_mutator_init()
35 grpc_socket_mutator* grpc_socket_mutator_ref(grpc_socket_mutator* mutator) { in grpc_socket_mutator_ref()
40 bool grpc_socket_mutator_mutate_fd(grpc_socket_mutator* mutator, int fd) { in grpc_socket_mutator_mutate_fd()
44 int grpc_socket_mutator_compare(grpc_socket_mutator* a, in grpc_socket_mutator_compare()
45 grpc_socket_mutator* b) { in grpc_socket_mutator_compare()
48 grpc_socket_mutator* sma = a; in grpc_socket_mutator_compare()
49 grpc_socket_mutator* smb = b; in grpc_socket_mutator_compare()
58 void grpc_socket_mutator_unref(grpc_socket_mutator* mutator) { in grpc_socket_mutator_unref()
65 return grpc_socket_mutator_ref(static_cast<grpc_socket_mutator*>(p)); in socket_mutator_arg_copy()
69 grpc_socket_mutator_unref(static_cast<grpc_socket_mutator*>(p)); in socket_mutator_arg_destroy()
[all …]
Dtcp_server_utils_posix_common.cc180 grpc_socket_mutator* mutator = static_cast<grpc_socket_mutator*>( in grpc_tcp_server_prepare_socket()
Dsocket_utils_posix.h92 grpc_error* grpc_set_socket_with_mutator(int fd, grpc_socket_mutator* mutator);
Dtcp_client_posix.cc89 grpc_socket_mutator* mutator = static_cast<grpc_socket_mutator*>( in prepare_socket()
Dsocket_utils_common_posix.cc316 grpc_error* grpc_set_socket_with_mutator(int fd, grpc_socket_mutator* mutator) { in grpc_set_socket_with_mutator()
/external/grpc-grpc/test/cpp/server/
Dserver_builder_with_socket_mutator_test.cc40 bool mock_socket_mutator_mutate_fd(int, grpc_socket_mutator*);
41 int mock_socket_mutator_compare(grpc_socket_mutator*, grpc_socket_mutator*);
42 void mock_socket_mutator_destroy(grpc_socket_mutator*);
50 class MockSocketMutator : public grpc_socket_mutator {
58 bool mock_socket_mutator_mutate_fd(int fd, grpc_socket_mutator* m) { in mock_socket_mutator_mutate_fd()
64 int mock_socket_mutator_compare(grpc_socket_mutator* a, in mock_socket_mutator_compare()
65 grpc_socket_mutator* b) { in mock_socket_mutator_compare()
69 void mock_socket_mutator_destroy(grpc_socket_mutator* m) { in mock_socket_mutator_destroy()
/external/grpc-grpc/test/core/iomgr/
Dsocket_utils_test.cc39 grpc_socket_mutator base;
43 static bool mutate_fd(int fd, grpc_socket_mutator* mutator) { in mutate_fd()
62 static void destroy_test_mutator(grpc_socket_mutator* mutator) { in destroy_test_mutator()
68 static int compare_test_mutator(grpc_socket_mutator* a, in compare_test_mutator()
69 grpc_socket_mutator* b) { in compare_test_mutator()
111 grpc_set_socket_with_mutator(sock, (grpc_socket_mutator*)&mutator))); in main()
116 grpc_set_socket_with_mutator(sock, (grpc_socket_mutator*)&mutator))); in main()
121 grpc_set_socket_with_mutator(sock, (grpc_socket_mutator*)&mutator))); in main()
125 sock, reinterpret_cast<grpc_socket_mutator*>(&mutator)); in main()
/external/grpc-grpc/test/cpp/common/
Dchannel_arguments_test.cc35 class TestSocketMutator : public grpc_socket_mutator {
49 bool test_mutator_mutate_fd(int fd, grpc_socket_mutator* mutator) { in test_mutator_mutate_fd()
54 int test_mutator_compare(grpc_socket_mutator* a, grpc_socket_mutator* b) { in test_mutator_compare()
58 void test_mutator_destroy(grpc_socket_mutator* mutator) { in test_mutator_destroy()
/external/grpc-grpc/include/grpc/impl/codegen/
Dgrpc_types.h73 typedef struct grpc_socket_mutator grpc_socket_mutator; typedef
/external/grpc-grpc/src/core/lib/channel/
Dchannel_args.h96 grpc_channel_args* a, grpc_socket_mutator* mutator);
Dchannel_args.cc309 grpc_channel_args* a, grpc_socket_mutator* mutator) { in grpc_channel_args_set_socket_mutator()
/external/grpc-grpc/include/grpcpp/support/
Dchannel_arguments.h80 void SetSocketMutator(grpc_socket_mutator* mutator);
/external/grpc-grpc/test/core/channel/
Dchannel_args_test.cc137 grpc_socket_mutator mutator; in test_set_socket_mutator()
/external/grpc-grpc/src/cpp/common/
Dchannel_arguments.cc91 void ChannelArguments::SetSocketMutator(grpc_socket_mutator* mutator) { in SetSocketMutator()