Go to the documentation of this file.
28 #ifndef ROSCPP_XMLRPC_MANAGER_H
29 #define ROSCPP_XMLRPC_MANAGER_H
33 #include <boost/function.hpp>
34 #include <boost/thread/mutex.hpp>
35 #include <boost/thread/thread.hpp>
36 #include <boost/enable_shared_from_this.hpp>
68 virtual bool check() = 0;
112 bool validateXmlrpcResponse(
const std::string& method,
121 XmlRpc::XmlRpcClient* getXMLRPCClient(
const std::string& host,
const int port,
const std::string& uri);
127 bool bind(
const std::string& function_name,
const XMLRPCFunc& cb);
128 void unbind(
const std::string& function_name);
136 void serverThreadFunc();
142 #if defined(__APPLE__)
144 boost::mutex xmlrpc_call_mutex_;
const std::string response
ROSCPP_DECL bool check()
Check whether the master is up.
ROSCPP_DECL XmlRpc::XmlRpcValue responseBool(int code, const std::string &msg, bool response)
XMLRPCCallWrapperPtr wrapper
ROSCPP_DECL XmlRpc::XmlRpcValue responseInt(int code, const std::string &msg, int response)
boost::mutex clients_mutex_
boost::mutex removed_connections_mutex_
ROSCPP_DECL void shutdown()
Disconnects everything and unregisters from the master. It is generally not necessary to call this fu...
const std::string & getServerURI() const
Get the xmlrpc server URI of this node.
std::set< ASyncXMLRPCConnectionPtr > S_ASyncXMLRPCConnection
ROSCPP_DECL XmlRpc::XmlRpcValue responseStr(int code, const std::string &msg, const std::string &response)
S_ASyncXMLRPCConnection removed_connections_
static const ros::WallDuration s_zombie_time_
XmlRpc::XmlRpcServer server_
std::map< std::string, FunctionInfo > M_StringToFuncInfo
M_StringToFuncInfo functions_
ros::WallDuration master_retry_timeout_
boost::mutex functions_mutex_
volatile bool unbind_requested_
CachedXmlRpcClient(XmlRpc::XmlRpcClient *c)
virtual ~ASyncXMLRPCConnection()
ROSCPP_DECL void start()
Actually starts the internals of the node (spins up threads, starts the network polling and xmlrpc lo...
V_CachedXmlRpcClient clients_
S_ASyncXMLRPCConnection added_connections_
S_ASyncXMLRPCConnection connections_
boost::mutex added_connections_mutex_
XmlRpc::XmlRpcClient * client_
boost::thread server_thread_
boost::shared_ptr< XMLRPCCallWrapper > XMLRPCCallWrapperPtr
uint32_t getServerPort() const
ros::SteadyTime last_use_time_
boost::function< void(XmlRpc::XmlRpcValue &, XmlRpc::XmlRpcValue &)> XMLRPCFunc
boost::shared_ptr< XMLRPCManager > XMLRPCManagerPtr
boost::shared_ptr< ASyncXMLRPCConnection > ASyncXMLRPCConnectionPtr
std::vector< CachedXmlRpcClient > V_CachedXmlRpcClient
roscpp
Author(s): Morgan Quigley, Josh Faust, Brian Gerkey, Troy Straszheim, Dirk Thomas
, Jacob Perron
autogenerated on Sat Sep 14 2024 02:59:36