Fix comments regarding call_accept to reflect current API.
Change on 2014/12/16 by yangg <yangg@google.com>
-------------
Created by MOE: http://code.google.com/p/moe-java
MOE_MIGRATED_REVID=82273000
diff --git a/include/grpc/grpc.h b/include/grpc/grpc.h
index 83f41fe..323a944 100644
--- a/include/grpc/grpc.h
+++ b/include/grpc/grpc.h
@@ -302,8 +302,8 @@
/* Add a single metadata element to the call, to be sent upon invocation.
flags is a bit-field combination of the write flags defined above.
- REQUIRES: grpc_call_start_invoke/grpc_call_accept have not been called on
- this call.
+ REQUIRES: grpc_call_start_invoke/grpc_call_server_end_initial_metadata have
+ not been called on this call.
Produces no events. */
grpc_call_error grpc_call_add_metadata(grpc_call *call, grpc_metadata *metadata,
gpr_uint32 flags);
@@ -343,7 +343,6 @@
/* Accept an incoming RPC, binding a completion queue to it.
To be called before sending or receiving messages.
- flags is a bit-field combination of the write flags defined above.
REQUIRES: Can be called at most once per call.
Can only be called on the server.
Produces a GRPC_FINISHED event with finished_tag when the call has been
@@ -353,7 +352,7 @@
grpc_completion_queue *cq,
void *finished_tag);
-/* Accept an incoming RPC, binding a completion queue to it.
+/* Start sending metadata.
To be called before sending messages.
flags is a bit-field combination of the write flags defined above.
REQUIRES: Can be called at most once per call.
@@ -385,8 +384,8 @@
/* Queue a status for writing.
REQUIRES: No other writes are pending on the call.
- grpc_call_accept must have been called on the call prior to calling
- this.
+ grpc_call_server_end_initial_metadata must have been called on the
+ call prior to calling this.
Only callable on the server.
Produces a GRPC_FINISH_ACCEPTED event when the status is sent. */
grpc_call_error grpc_call_start_write_status(grpc_call *call,