You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, each server (or subscriber) in simple is limited to one callback. This means that if I have more than one service (on the same node), I need to create an additional server object, which uses an additional port. For servers with many services, this could result in a complex configuration--especially if there is other server software running on that node and competing for the ports.
It would be nice to have a single server object and then add multiple services to it like this:
// assume service callbacks are defined here
int main(int argc, char * argv[]) try
{
simple::Service<simple_msgs::Point> service1{ service1_callback };
simple::Service<simple_msgs::Image> service2{ service2_callback };
simple::Server server{ "tcp://*:5000", {service1, service2} };
std::cout << "Press a key to exit.\n";
std::cin.get();
return 0;
}
The text was updated successfully, but these errors were encountered:
This would require some extensive modifications, like also allowing to receive different message types on the same socket. I will keep it in the log for the future!
Currently, each server (or subscriber) in
simple
is limited to one callback. This means that if I have more than one service (on the same node), I need to create an additional server object, which uses an additional port. For servers with many services, this could result in a complex configuration--especially if there is other server software running on that node and competing for the ports.It would be nice to have a single server object and then add multiple services to it like this:
The text was updated successfully, but these errors were encountered: