GRPC C++  1.39.1
Functions
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"

Functions

void grpc_socket_mutator_init (grpc_socket_mutator *mutator, const grpc_socket_mutator_vtable *vtable)
 called by concrete implementations to initialize the base struct More...
 
grpc_socket_mutatorgrpc_socket_mutator_ref (grpc_socket_mutator *mutator)
 
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. More...
 
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. More...
 
void grpc_socket_mutator_unref (grpc_socket_mutator *mutator)
 
grpc_arg grpc_socket_mutator_to_arg (grpc_socket_mutator *mutator)
 Wrap mutator as a grpc_arg. More...
 

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.

◆ 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

◆ 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.

◆ grpc_socket_mutator_ref()

grpc_socket_mutator* grpc_socket_mutator_ref ( grpc_socket_mutator mutator)

◆ grpc_socket_mutator_to_arg()

grpc_arg grpc_socket_mutator_to_arg ( grpc_socket_mutator mutator)

Wrap mutator as a grpc_arg.

◆ grpc_socket_mutator_unref()

void grpc_socket_mutator_unref ( grpc_socket_mutator mutator)