aboutsummaryrefslogtreecommitdiffhomepage
path: root/include
diff options
context:
space:
mode:
authorGravatar Yang Gao <yangg@google.com>2015-12-11 10:32:43 -0800
committerGravatar Yang Gao <yangg@google.com>2015-12-11 10:32:43 -0800
commit12fa8c83aff22c84ee92ea00c79b2f6236c93d26 (patch)
tree2c76c2ff5dacb0c5ffde91a91b87094fdd4bc79c /include
parentaa1ebffb323e012167d080c8375097e1bd290fc4 (diff)
parentaae3b8cddcdaa878255eed81faeab4c3940ad7f7 (diff)
Merge pull request #4325 from ctiller/ping-ping-ping-ping-ping-ping-ping-ping-ping
Ping support for channels
Diffstat (limited to 'include')
-rw-r--r--include/grpc/grpc.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/grpc/grpc.h b/include/grpc/grpc.h
index cedcee7c54..d52aab0dd3 100644
--- a/include/grpc/grpc.h
+++ b/include/grpc/grpc.h
@@ -531,6 +531,11 @@ grpc_call *grpc_channel_create_call(grpc_channel *channel,
const char *method, const char *host,
gpr_timespec deadline, void *reserved);
+/** Ping the channels peer (load balanced channels will select one sub-channel
+ to ping); if the channel is not connected, posts a failed. */
+void grpc_channel_ping(grpc_channel *channel, grpc_completion_queue *cq,
+ void *tag, void *reserved);
+
/** Pre-register a method/host pair on a channel. */
void *grpc_channel_register_call(grpc_channel *channel, const char *method,
const char *host, void *reserved);