It looks like request-reply is currently symmetric. In other words, the entire object is sent to the server, which processes the object, and then the entire object is sent back to the client. I have a scenario where the request object is large, and the reply is only a boolean. My application is performance-critical, so I want to minimize the data which is returned to the client. It would be helpful if simple could support an asymmetric request-reply like this:
bool server_callback(simple_msgs::HugeObject & ho)
{
bool status = true;
//process the ho, and set status accordingly
return status;
}
int main(int argc, char * argv[]) try
{
simple::Server<simple_msgs::HugeObject, bool> server{ "tcp://*:5000", server_callback };
std::cout << "Press a key to exit.\n";
std::cin.get();
return 0;
}
It looks like request-reply is currently symmetric. In other words, the entire object is sent to the server, which processes the object, and then the entire object is sent back to the client. I have a scenario where the request object is large, and the reply is only a boolean. My application is performance-critical, so I want to minimize the data which is returned to the client. It would be helpful if
simplecould support an asymmetric request-reply like this: