Hello all,
I am implementing a simple client-server grpc-c++ based application. In the
Hello rpc, I am taking the request and sending the fields of another
message called SeverInfo as response. The problem is I exactly don't know
how to send this ServerInfo data to a client from server side. We basically
use set_fieldname(ex: set_name) for general datatypes to send the data but
how should we send this serverInfo data to HelloResponse and then to
HelloRequest. Can somebody please help me??
syntax = "proto3";
package recognizer;
service Recognizer {
rpc Hello(HelloRequest) returns (HelloResponse){}
}
message HelloRequest {
string name = 1;
}
message HelloResponse {
ServerInfo server = 1;
}
message ServerInfo {
string name = 1;
string os = 2;
string arch = 3;
int32 nproc = 4;
}
--
You received this message because you are subscribed to the Google Groups
"Protocol Buffers" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/protobuf/de225624-4f17-4907-ad9d-bf192e6606ben%40googlegroups.com.