diff options
author | 2016-05-20 15:53:01 -0700 | |
---|---|---|
committer | 2016-06-07 15:09:19 -0700 | |
commit | 4023382294f732fe8fa1ff8e10a3eed68c154ff0 (patch) | |
tree | 819d14b5db317df0760a95133f240dba06a93f94 /include/grpc/grpc_posix.h | |
parent | 1f2386562267e37c9f9c28173965275d391aec9e (diff) |
Add support for establishing server channel using existing FD
Diffstat (limited to 'include/grpc/grpc_posix.h')
-rw-r--r-- | include/grpc/grpc_posix.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/grpc/grpc_posix.h b/include/grpc/grpc_posix.h index 12bb287d1a..b72ea5208d 100644 --- a/include/grpc/grpc_posix.h +++ b/include/grpc/grpc_posix.h @@ -58,6 +58,11 @@ extern "C" { GRPCAPI grpc_channel *grpc_insecure_channel_create_from_fd( const char *target, int fd, const grpc_channel_args *args); +/** Add the connected communication channel based on file descriptor 'fd' to the + 'server'. The 'fd' must be an open file descriptor corresponding to a + connected socket. */ +GRPCAPI void grpc_server_add_insecure_channel_from_fd(grpc_server *server, int fd); + #endif // GPR_POSIX_SOCKET #ifdef __cplusplus |