Functions | Variables
socket_mutator.cc File Reference
#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"
Include dependency graph for socket_mutator.cc:

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_mutatorgrpc_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
 

Function Documentation

◆ grpc_socket_mutator_compare()

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.

◆ grpc_socket_mutator_init()

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.

◆ grpc_socket_mutator_mutate_fd()

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_ref()

grpc_socket_mutator* grpc_socket_mutator_ref ( grpc_socket_mutator mutator)

Definition at line 36 of file socket_mutator.cc.

◆ grpc_socket_mutator_to_arg()

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.

◆ grpc_socket_mutator_unref()

void grpc_socket_mutator_unref ( grpc_socket_mutator mutator)

Definition at line 71 of file socket_mutator.cc.

◆ socket_mutator_arg_copy()

static void* socket_mutator_arg_copy ( void *  p)
static

Definition at line 77 of file socket_mutator.cc.

◆ socket_mutator_arg_destroy()

static void socket_mutator_arg_destroy ( void *  p)
static

Definition at line 81 of file socket_mutator.cc.

◆ socket_mutator_cmp()

static int socket_mutator_cmp ( void *  a,
void *  b 
)
static

Definition at line 85 of file socket_mutator.cc.

Variable Documentation

◆ socket_mutator_arg_vtable

const grpc_arg_pointer_vtable socket_mutator_arg_vtable
static
socket_mutator_cmp
static int socket_mutator_cmp(void *a, void *b)
Definition: socket_mutator.cc:85
socket_mutator_arg_copy
static void * socket_mutator_arg_copy(void *p)
Definition: socket_mutator.cc:77
socket_mutator_arg_destroy
static void socket_mutator_arg_destroy(void *p)
Definition: socket_mutator.cc:81


grpc
Author(s):
autogenerated on Fri May 16 2025 03:01:31