Closed zwumdd closed 6 years ago
also _write and _finish have similar issues:
../../examples/foo_server.c:50:10: error: too few arguments to function ‘context->gcc_stream->write’ if (!context->gcc_stream->write(context, &r, -1)) {
../../examples/foo_server.c:63:9: error: too few arguments to function ‘context->gcc_stream->finish’ if (context->gcc_stream->finish(context, &status)) {
Commit 1aa14a9 updates examples with new API.
Hi Ajay,
I tried the steps, the generated foo.grpc-c.h file has an extra "uint32_t flags" parameter (6 params total), however the caller does not (5 params total), resulting in the following compile error:
foo.grpc-c.h:
int foogreetersay_hello (grpc_c_client_t client, grpc_c_metadata_array_t a rray, uint32_t flags, FooHelloRequest *input, FooHelloReply *output, grpc_c _status_t status, long timeout);
../../examples/foo_client.c:46:18: error: too few arguments to function ‘foogreetersay_hello’ int status = foogreetersay_hello(client, NULL, &h, &r, NULL, -1);