How to Pass a a vector (using repeated in protobuf file) from server to client using stream
The gRPC server client interaction is stream.
//---------------------------STRUCTURE OF PROTO FILE---------------------------------------------------------
message Response
{
int param1 = 20;
int param2 = 30;
float param2 = 30;
}. ..
message ParamResponse
{
repeated Response =20;
}
// RPC calls from Client to Serve
rpc Read( readyCommand ) returns ( stream ParamResponse ){ }
--------------------------------------------------------------------------------------
In CPP project -
sendDatato Client ( .... ....,. ..,,, ParamResponse DataResponse )
{
typedef std::vector<std::tuple<int,int, float>> Container;
}
Would like to know how can I pass the container.