I wrote a XmlRpc server, and it's working fine. But I'd like to nicely terminate the main loop of the server:
server->work(-1.0);
Currently, it's running in a secoundary thread, and when I want to finish it, I kill that thread. It's posible finish the server in a more convenient way ?
Thanks.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I wrote a XmlRpc server, and it's working fine. But I'd like to nicely terminate the main loop of the server:
server->work(-1.0);
Currently, it's running in a secoundary thread, and when I want to finish it, I kill that thread. It's posible finish the server in a more convenient way ?
Thanks.
Use XmlRpcServer::shutdown().
See http://xmlrpcpp.sourceforge.net/doc/classXmlRpc_1_1XmlRpcServer.html