GRPC Core  18.0.0
Data Structures | Functions
socket_factory_posix.h File Reference
#include <grpc/support/port_platform.h>
#include <grpc/impl/codegen/grpc_types.h>
#include <grpc/support/sync.h>
#include "src/core/lib/iomgr/resolve_address.h"

Go to the source code of this file.

Data Structures

struct  grpc_socket_factory_vtable
 The virtual table of grpc_socket_factory. More...
 
struct  grpc_socket_factory
 The Socket Factory interface allows changes on socket options. More...
 

Functions

void grpc_socket_factory_init (grpc_socket_factory *factory, const grpc_socket_factory_vtable *vtable)
 called by concrete implementations to initialize the base struct More...
 
grpc_arg grpc_socket_factory_to_arg (grpc_socket_factory *factory)
 Wrap factory as a grpc_arg. More...
 
int grpc_socket_factory_socket (grpc_socket_factory *factory, int domain, int type, int protocol)
 Perform the equivalent of a socket(2) operation using factory. More...
 
int grpc_socket_factory_bind (grpc_socket_factory *factory, int sockfd, const grpc_resolved_address *addr)
 Perform the equivalent of a bind(2) operation using factory. More...
 
int grpc_socket_factory_compare (grpc_socket_factory *a, grpc_socket_factory *b)
 Compare if a and b are the same factory or have same settings. More...
 
grpc_socket_factorygrpc_socket_factory_ref (grpc_socket_factory *factory)
 
void grpc_socket_factory_unref (grpc_socket_factory *factory)
 

Function Documentation

◆ grpc_socket_factory_bind()

int grpc_socket_factory_bind ( grpc_socket_factory factory,
int  sockfd,
const grpc_resolved_address addr 
)

Perform the equivalent of a bind(2) operation using factory.

◆ grpc_socket_factory_compare()

int grpc_socket_factory_compare ( grpc_socket_factory a,
grpc_socket_factory b 
)

Compare if a and b are the same factory or have same settings.

◆ grpc_socket_factory_init()

void grpc_socket_factory_init ( grpc_socket_factory factory,
const grpc_socket_factory_vtable vtable 
)

called by concrete implementations to initialize the base struct

◆ grpc_socket_factory_ref()

grpc_socket_factory* grpc_socket_factory_ref ( grpc_socket_factory factory)

◆ grpc_socket_factory_socket()

int grpc_socket_factory_socket ( grpc_socket_factory factory,
int  domain,
int  type,
int  protocol 
)

Perform the equivalent of a socket(2) operation using factory.

◆ grpc_socket_factory_to_arg()

grpc_arg grpc_socket_factory_to_arg ( grpc_socket_factory factory)

Wrap factory as a grpc_arg.

◆ grpc_socket_factory_unref()

void grpc_socket_factory_unref ( grpc_socket_factory factory)