Functions
grpc_posix.h File Reference
#include <grpc/support/port_platform.h>
#include <stddef.h>
#include <grpc/grpc.h>
#include <grpc/impl/codegen/grpc_types.h>
Include dependency graph for grpc_posix.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

GRPCAPI grpc_channelgrpc_channel_create_from_fd (const char *target, int fd, grpc_channel_credentials *creds, const grpc_channel_args *args)
 
GRPCAPI void grpc_server_add_channel_from_fd (grpc_server *server, int fd, grpc_server_credentials *creds)
 

Function Documentation

◆ grpc_channel_create_from_fd()

GRPCAPI grpc_channel* grpc_channel_create_from_fd ( const char *  target,
int  fd,
grpc_channel_credentials creds,
const grpc_channel_args args 
)

Create a secure channel to 'target' using file descriptor 'fd' and passed-in credentials. The 'target' argument will be used to indicate the name for this channel. Note that this API currently only supports insecure channel credentials. Using other types of credentials will result in a failure.

Definition at line 453 of file chttp2_connector.cc.

◆ grpc_server_add_channel_from_fd()

GRPCAPI void grpc_server_add_channel_from_fd ( grpc_server server,
int  fd,
grpc_server_credentials creds 
)

Add the connected secure communication channel based on file descriptor 'fd' to the 'server' and server credentials 'creds'. The 'fd' must be an open file descriptor corresponding to a connected socket. Events from the file descriptor may come on any of the server completion queues (i.e completion queues registered via the grpc_server_register_completion_queue API). Note that this API currently only supports inseure server credentials Using other types of credentials will result in a failure. TODO(hork): add channel_args to this API to allow endpoints and transports created in this function to participate in the resource quota feature.

Definition at line 1125 of file chttp2_server.cc.



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