#include <xmlrpc_manager.h>
Classes | |
| struct | FunctionInfo |
Public Member Functions | |
| void | addASyncConnection (const ASyncXMLRPCConnectionPtr &conn) |
| bool | bind (const std::string &function_name, const XMLRPCFunc &cb) |
| uint32_t | getServerPort () const |
| const std::string & | getServerURI () const |
| Get the xmlrpc server URI of this node. More... | |
| XmlRpc::XmlRpcClient * | getXMLRPCClient (const std::string &host, const int port, const std::string &uri) |
| bool | isShuttingDown () |
| void | releaseXMLRPCClient (XmlRpc::XmlRpcClient *c) |
| void | removeASyncConnection (const ASyncXMLRPCConnectionPtr &conn) |
| void | shutdown () |
| void | start () |
| void | unbind (const std::string &function_name) |
| bool | validateXmlrpcResponse (const std::string &method, XmlRpc::XmlRpcValue &response, XmlRpc::XmlRpcValue &payload) |
| Validate an XML/RPC response. More... | |
| XMLRPCManager () | |
| ~XMLRPCManager () | |
Static Public Member Functions | |
| static const XMLRPCManagerPtr & | instance () |
Private Types | |
| typedef std::map< std::string, FunctionInfo > | M_StringToFuncInfo |
| typedef std::vector< CachedXmlRpcClient > | V_CachedXmlRpcClient |
Private Member Functions | |
| void | serverThreadFunc () |
Private Attributes | |
| S_ASyncXMLRPCConnection | added_connections_ |
| std::mutex | added_connections_mutex_ |
| V_CachedXmlRpcClient | clients_ |
| std::mutex | clients_mutex_ |
| S_ASyncXMLRPCConnection | connections_ |
| M_StringToFuncInfo | functions_ |
| std::mutex | functions_mutex_ |
| ros::WallDuration | master_retry_timeout_ |
| int | port_ |
| S_ASyncXMLRPCConnection | removed_connections_ |
| std::mutex | removed_connections_mutex_ |
| XmlRpc::XmlRpcServer | server_ |
| std::thread | server_thread_ |
| bool | shutting_down_ |
| volatile bool | unbind_requested_ |
| std::string | uri_ |
Definition at line 95 of file xmlrpc_manager.h.
|
private |
Definition at line 170 of file xmlrpc_manager.h.
|
private |
Definition at line 148 of file xmlrpc_manager.h.
| roswrap::XMLRPCManager::XMLRPCManager | ( | ) |
Definition at line 114 of file xmlrpc_manager.cpp.
| roswrap::XMLRPCManager::~XMLRPCManager | ( | ) |
Definition at line 121 of file xmlrpc_manager.cpp.
| void roswrap::XMLRPCManager::addASyncConnection | ( | const ASyncXMLRPCConnectionPtr & | conn | ) |
Definition at line 399 of file xmlrpc_manager.cpp.
| bool roswrap::XMLRPCManager::bind | ( | const std::string & | function_name, |
| const XMLRPCFunc & | cb | ||
| ) |
Definition at line 411 of file xmlrpc_manager.cpp.
|
inline |
Definition at line 120 of file xmlrpc_manager.h.
|
inline |
Get the xmlrpc server URI of this node.
Definition at line 119 of file xmlrpc_manager.h.
| XmlRpcClient * roswrap::XMLRPCManager::getXMLRPCClient | ( | const std::string & | host, |
| const int | port, | ||
| const std::string & | uri | ||
| ) |
Definition at line 319 of file xmlrpc_manager.cpp.
|
static |
Definition at line 100 of file xmlrpc_manager.cpp.
|
inline |
Definition at line 134 of file xmlrpc_manager.h.
| void roswrap::XMLRPCManager::releaseXMLRPCClient | ( | XmlRpc::XmlRpcClient * | c | ) |
Definition at line 374 of file xmlrpc_manager.cpp.
| void roswrap::XMLRPCManager::removeASyncConnection | ( | const ASyncXMLRPCConnectionPtr & | conn | ) |
Definition at line 405 of file xmlrpc_manager.cpp.
|
private |
Definition at line 257 of file xmlrpc_manager.cpp.
| void roswrap::XMLRPCManager::shutdown | ( | ) |
Definition at line 145 of file xmlrpc_manager.cpp.
| void roswrap::XMLRPCManager::start | ( | ) |
Definition at line 126 of file xmlrpc_manager.cpp.
| void roswrap::XMLRPCManager::unbind | ( | const std::string & | function_name | ) |
Definition at line 428 of file xmlrpc_manager.cpp.
| bool roswrap::XMLRPCManager::validateXmlrpcResponse | ( | const std::string & | method, |
| XmlRpc::XmlRpcValue & | response, | ||
| XmlRpc::XmlRpcValue & | payload | ||
| ) |
Validate an XML/RPC response.
| method | The RPC method that was invoked. |
| response | The resonse that was received. |
| payload | The payload that was received. |
Definition at line 209 of file xmlrpc_manager.cpp.
|
private |
Definition at line 156 of file xmlrpc_manager.h.
|
private |
Definition at line 157 of file xmlrpc_manager.h.
|
private |
Definition at line 149 of file xmlrpc_manager.h.
|
private |
Definition at line 150 of file xmlrpc_manager.h.
|
private |
Definition at line 161 of file xmlrpc_manager.h.
|
private |
Definition at line 172 of file xmlrpc_manager.h.
|
private |
Definition at line 171 of file xmlrpc_manager.h.
|
private |
Definition at line 154 of file xmlrpc_manager.h.
|
private |
Definition at line 140 of file xmlrpc_manager.h.
|
private |
Definition at line 158 of file xmlrpc_manager.h.
|
private |
Definition at line 159 of file xmlrpc_manager.h.
|
private |
Definition at line 147 of file xmlrpc_manager.h.
|
private |
Definition at line 141 of file xmlrpc_manager.h.
|
private |
Definition at line 152 of file xmlrpc_manager.h.
|
private |
Definition at line 174 of file xmlrpc_manager.h.
|
private |
Definition at line 139 of file xmlrpc_manager.h.