#include <grpc/support/port_platform.h>
#include "src/core/lib/iomgr/socket_mutator.h"
#include <grpc/impl/codegen/grpc_types.h>
#include <grpc/support/log.h>
#include <grpc/support/sync.h>
#include "src/core/lib/channel/channel_args.h"
#include "src/core/lib/gpr/useful.h"
Go to the source code of this file.
Functions | |
int | grpc_socket_mutator_compare (grpc_socket_mutator *a, grpc_socket_mutator *b) |
void | grpc_socket_mutator_init (grpc_socket_mutator *mutator, const grpc_socket_mutator_vtable *vtable) |
bool | grpc_socket_mutator_mutate_fd (grpc_socket_mutator *mutator, int fd, grpc_fd_usage usage) |
grpc_socket_mutator * | grpc_socket_mutator_ref (grpc_socket_mutator *mutator) |
grpc_arg | grpc_socket_mutator_to_arg (grpc_socket_mutator *mutator) |
void | grpc_socket_mutator_unref (grpc_socket_mutator *mutator) |
static void * | socket_mutator_arg_copy (void *p) |
static void | socket_mutator_arg_destroy (void *p) |
static int | socket_mutator_cmp (void *a, void *b) |
Variables | |
static const grpc_arg_pointer_vtable | socket_mutator_arg_vtable |
int grpc_socket_mutator_compare | ( | grpc_socket_mutator * | a, |
grpc_socket_mutator * | b | ||
) |
Compare if a and b are the same mutator or have same settings
Definition at line 57 of file socket_mutator.cc.
void grpc_socket_mutator_init | ( | grpc_socket_mutator * | mutator, |
const grpc_socket_mutator_vtable * | vtable | ||
) |
called by concrete implementations to initialize the base struct
Definition at line 30 of file socket_mutator.cc.
bool grpc_socket_mutator_mutate_fd | ( | grpc_socket_mutator * | mutator, |
int | fd, | ||
grpc_fd_usage | usage | ||
) |
Perform the file descriptor mutation operation of mutator on fd
Definition at line 41 of file socket_mutator.cc.
grpc_socket_mutator* grpc_socket_mutator_ref | ( | grpc_socket_mutator * | mutator | ) |
Definition at line 36 of file socket_mutator.cc.
grpc_arg grpc_socket_mutator_to_arg | ( | grpc_socket_mutator * | mutator | ) |
Wrap mutator as a grpc_arg
Definition at line 93 of file socket_mutator.cc.
void grpc_socket_mutator_unref | ( | grpc_socket_mutator * | mutator | ) |
Definition at line 71 of file socket_mutator.cc.
|
static |
Definition at line 77 of file socket_mutator.cc.
|
static |
Definition at line 81 of file socket_mutator.cc.
|
static |
Definition at line 85 of file socket_mutator.cc.
|
static |
Definition at line 90 of file socket_mutator.cc.