Consume messages sent down from Heaven

41 views
Skip to first unread message

Dr. Holley

unread,
Mar 15, 2023, 3:07:56 AM3/15/23
to Protocol Buffers
My server named Heaven is written in C++ and all my Earth clients down here are allowed to communicate with it via protobuff messages.

I have compiled protosoup.proto that contains all the messages sent from Heaven but am unsure how my clients are to consume any of them.

I heard that protobufjs could do something the same. But how to load "protobuf" ROOT variable in C# the same way to control the request and response messages? Any guidance please...

jons...@google.com

unread,
Mar 17, 2023, 4:24:39 AM3/17/23
to Protocol Buffers
Could you clarify what you mean by "I heard that protobufjs could do something the same" - do something the same as what?

I would expect you to run protoc on protosoup.proto with the csharp_out option to specify that you want to generate C# code (and where to generate it).

If you mean that you want the .proto file to be consumed *dynamically* - C# protobuf doesn't support that.
Reply all
Reply to author
Forward
0 new messages