Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
G
Grpc
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
tci-gateway-module
Grpc
Commits
4ddf950c
Commit
4ddf950c
authored
10 years ago
by
Nathaniel Manista
Browse files
Options
Downloads
Plain Diff
Merge pull request #562 from ctiller/dox3
More channel argument documentation.
parents
d3973499
e7163ab6
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
include/grpc/grpc.h
+13
-3
13 additions, 3 deletions
include/grpc/grpc.h
with
13 additions
and
3 deletions
include/grpc/grpc.h
+
13
−
3
View file @
4ddf950c
...
...
@@ -92,7 +92,12 @@ typedef struct {
}
value
;
}
grpc_arg
;
/* An array of arguments that can be passed around */
/* An array of arguments that can be passed around.
Used to set optional channel-level configuration.
These configuration options are modelled as key-value pairs as defined
by grpc_arg; keys are strings to allow easy backwards-compatible extension
by arbitrary parties.
All evaluation is performed at channel creation time. */
typedef
struct
{
size_t
num_args
;
grpc_arg
*
args
;
...
...
@@ -411,7 +416,10 @@ grpc_call *grpc_channel_create_call(grpc_channel *channel,
grpc_call_error
grpc_call_start_batch
(
grpc_call
*
call
,
const
grpc_op
*
ops
,
size_t
nops
,
void
*
tag
);
/* Create a client channel */
/* Create a client channel to 'target'. Additional channel level configuration
MAY be provided by grpc_channel_args, though the expectation is that most
clients will want to simply pass NULL. See grpc_channel_args definition
for more on this. */
grpc_channel
*
grpc_channel_create
(
const
char
*
target
,
const
grpc_channel_args
*
args
);
...
...
@@ -576,7 +584,9 @@ grpc_call_error grpc_server_request_registered_call(
grpc_byte_buffer
**
optional_payload
,
grpc_completion_queue
*
cq_bound_to_call
,
void
*
tag_new
);
/* Create a server */
/* Create a server. Additional configuration for each incoming channel can
be specified with args. If no additional configuration is needed, args can
be NULL. See grpc_channel_args for more. */
grpc_server
*
grpc_server_create
(
grpc_completion_queue
*
cq
,
const
grpc_channel_args
*
args
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment