grpc with nanopb

882 views
Skip to first unread message

홍채희

unread,
Jan 11, 2018, 1:36:46 AM1/11/18
to nanopb
Hi.

I have a question about grpc using nanopb.
Is nanopb supporting grpc?

I wanted to make a grpc(c++ version) server/client app using nanopb that is in the third-party folder of grpc.
The protobuf compiler with nanopb option generated .pb.c and .pb.h files implemented by C.
I typed like "generator-bin/protoc --nanopb_out=. myprotocol.proto".
And when I compiled with grpc like "protoc -I ../../protos --grpc_out=. --plugin=protoc-gen-grpc=`which grpc_cpp_plugin` ../../protos/route_guide.proto ", it generated .grpc.pb.c and h files.
But I  I counldn't make an app bacause in .grpc.pb.h file, proto messages were defined as c++ class, and in pb.h file, these messages were defined as c structures.

If you don't support grpc now, do you have a plan to support that?


Thank you.

Petteri Aimonen

unread,
Jan 11, 2018, 5:24:06 AM1/11/18
to nan...@googlegroups.com
Hi,

> If you don't support grpc now, do you have a plan to support that?

I have no plans to work on grpc support myself, but there is some
ongoing effort here:

https://github.com/nanopb/nanopb/issues/235

--
Petteri
Reply all
Reply to author
Forward
0 new messages