19 #ifndef GRPC_CORE_LIB_IOMGR_SOCKET_FACTORY_POSIX_H
20 #define GRPC_CORE_LIB_IOMGR_SOCKET_FACTORY_POSIX_H
57 int type,
int protocol);
grpc_socket_factory * grpc_socket_factory_ref(grpc_socket_factory *factory)
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.
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_arg grpc_socket_factory_to_arg(grpc_socket_factory *factory)
Wrap factory as a grpc_arg.
void grpc_socket_factory_init(grpc_socket_factory *factory, const grpc_socket_factory_vtable *vtable)
called by concrete implementations to initialize the base struct
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.
void grpc_socket_factory_unref(grpc_socket_factory *factory)
Definition: sync_generic.h:36
A single argument...
Definition: grpc_types.h:103
Definition: resolve_address.h:44
The virtual table of grpc_socket_factory.
Definition: socket_factory_posix.h:29
The Socket Factory interface allows changes on socket options.
Definition: socket_factory_posix.h:43
const grpc_socket_factory_vtable * vtable
Definition: socket_factory_posix.h:44
gpr_refcount refcount
Definition: socket_factory_posix.h:45