Classes | Enumerations | Functions
socket_mutator.h File Reference
#include <grpc/support/port_platform.h>
#include <stdbool.h>
#include <grpc/impl/codegen/grpc_types.h>
#include <grpc/support/sync.h>
Include dependency graph for socket_mutator.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  grpc_mutate_socket_info
 
struct  grpc_socket_mutator
 
struct  grpc_socket_mutator_vtable
 

Enumerations

enum  grpc_fd_usage { GRPC_FD_CLIENT_CONNECTION_USAGE, GRPC_FD_SERVER_LISTENER_USAGE, GRPC_FD_SERVER_CONNECTION_USAGE }
 

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)
 

Enumeration Type Documentation

◆ grpc_fd_usage

How is an fd to be used?

Enumerator
GRPC_FD_CLIENT_CONNECTION_USAGE 

Used for client connection

GRPC_FD_SERVER_LISTENER_USAGE 

Used for server listening

GRPC_FD_SERVER_CONNECTION_USAGE 

Used for server connection

Definition at line 30 of file socket_mutator.h.

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.



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