Skip to content
Snippets Groups Projects
Commit 389297de authored by Craig Tiller's avatar Craig Tiller
Browse files

Document some things

parent b519af8b
No related branches found
No related tags found
No related merge requests found
...@@ -123,7 +123,8 @@ typedef struct grpc_transport_stream_op { ...@@ -123,7 +123,8 @@ typedef struct grpc_transport_stream_op {
/** Transport op: a set of operations to perform on a transport as a whole */ /** Transport op: a set of operations to perform on a transport as a whole */
typedef struct grpc_transport_op { typedef struct grpc_transport_op {
/** called when processing of this op is done */ /** Called when processing of this op is done.
Only one transport_op is allowed to be outstanding at any time. */
grpc_closure *on_consumed; grpc_closure *on_consumed;
/** connectivity monitoring - set connectivity_state to NULL to unsubscribe */ /** connectivity monitoring - set connectivity_state to NULL to unsubscribe */
grpc_closure *on_connectivity_state_change; grpc_closure *on_connectivity_state_change;
...@@ -138,7 +139,9 @@ typedef struct grpc_transport_op { ...@@ -138,7 +139,9 @@ typedef struct grpc_transport_op {
grpc_status_code goaway_status; grpc_status_code goaway_status;
gpr_slice *goaway_message; gpr_slice *goaway_message;
/** set the callback for accepting new streams; /** set the callback for accepting new streams;
this is a permanent callback, unlike the other one-shot closures */ this is a permanent callback, unlike the other one-shot closures.
If true, the callback is set to set_accept_stream_fn, with its
user_data argument set to set_accept_stream_user_data */
bool set_accept_stream; bool set_accept_stream;
void (*set_accept_stream_fn)(grpc_exec_ctx *exec_ctx, void *user_data, void (*set_accept_stream_fn)(grpc_exec_ctx *exec_ctx, void *user_data,
grpc_transport *transport, grpc_transport *transport,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment