GRPC Core  9.0.0
Data Structures | Functions
socket_mutator.h File Reference
#include <grpc/support/port_platform.h>
#include <grpc/impl/codegen/grpc_types.h>
#include <grpc/support/sync.h>
#include <stdbool.h>

Go to the source code of this file.

Data Structures

struct  grpc_socket_mutator_vtable
 The virtual table of grpc_socket_mutator. More...
 
struct  grpc_socket_mutator
 The Socket Mutator interface allows changes on socket options. More...
 

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_arg grpc_socket_mutator_to_arg (grpc_socket_mutator *mutator)
 Wrap mutator as a grpc_arg. More...
 
bool grpc_socket_mutator_mutate_fd (grpc_socket_mutator *mutator, int fd)
 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...
 
grpc_socket_mutatorgrpc_socket_mutator_ref (grpc_socket_mutator *mutator)
 
void grpc_socket_mutator_unref (grpc_socket_mutator *mutator)
 

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 
)

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)