aboutsummaryrefslogtreecommitdiffhomepage
path: root/include
diff options
context:
space:
mode:
authorGravatar Craig Tiller <craig.tiller@gmail.com>2015-02-11 23:03:55 -0800
committerGravatar Craig Tiller <craig.tiller@gmail.com>2015-02-11 23:03:55 -0800
commitfada7d43b1ee8d128e4ee5267ab859e84ce56752 (patch)
tree26116334952928ebe1a162ab354cd06df5f47740 /include
parent94f87588fadea5e5ee429ab0b0bff9143d366dba (diff)
Add some documentation
Diffstat (limited to 'include')
-rw-r--r--include/grpc/grpc.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/include/grpc/grpc.h b/include/grpc/grpc.h
index 561bc9a5a9..f6c7da4654 100644
--- a/include/grpc/grpc.h
+++ b/include/grpc/grpc.h
@@ -550,15 +550,24 @@ void grpc_call_destroy(grpc_call *call);
grpc_call_error grpc_server_request_call_old(grpc_server *server,
void *tag_new);
+/* Request notification of a new call */
grpc_call_error grpc_server_request_call(
grpc_server *server, grpc_call **call, grpc_call_details *details,
grpc_metadata_array *request_metadata,
grpc_completion_queue *cq_bound_to_call,
void *tag_new);
+/* Registers a method in the server.
+ Methods to this (host, method) pair will not be reported by
+ grpc_server_request_call, but instead be reported by
+ grpc_server_request_registered_call when passed the appropriate
+ registered_method (as returned by this function).
+ Must be called before grpc_server_start.
+ Returns NULL on failure. */
void *grpc_server_register_method(grpc_server *server, const char *method,
const char *host);
+/* Request notification of a new pre-registered call */
grpc_call_error grpc_server_request_registered_call(
grpc_server *server, void *registered_method, grpc_call **call,
gpr_timespec *deadline, grpc_metadata_array *request_metadata,