Function grpcio_sys::grpc_server_add_channel_from_fd
source · pub unsafe extern "C" fn grpc_server_add_channel_from_fd(
server: *mut grpc_server,
fd: c_int,
creds: *mut grpc_server_credentials
)
Expand description
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.