Classes | Public Member Functions | Static Public Member Functions | Private Types | Private Member Functions | Private Attributes | List of all members
ros::XMLRPCManager Class Reference

#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::XmlRpcClientgetXMLRPCClient (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 XMLRPCManagerPtrinstance ()
 

Private Types

typedef std::map< std::string, FunctionInfoM_StringToFuncInfo
 
typedef std::vector< CachedXmlRpcClientV_CachedXmlRpcClient
 

Private Member Functions

void serverThreadFunc ()
 

Private Attributes

S_ASyncXMLRPCConnection added_connections_
 
boost::mutex added_connections_mutex_
 
V_CachedXmlRpcClient clients_
 
boost::mutex clients_mutex_
 
S_ASyncXMLRPCConnection connections_
 
M_StringToFuncInfo functions_
 
boost::mutex functions_mutex_
 
ros::WallDuration master_retry_timeout_
 
int port_
 
S_ASyncXMLRPCConnection removed_connections_
 
boost::mutex removed_connections_mutex_
 
XmlRpc::XmlRpcServer server_
 
boost::thread server_thread_
 
bool shutting_down_
 
volatile bool unbind_requested_
 
std::string uri_
 

Detailed Description

Definition at line 94 of file xmlrpc_manager.h.

Member Typedef Documentation

◆ M_StringToFuncInfo

typedef std::map<std::string, FunctionInfo> ros::XMLRPCManager::M_StringToFuncInfo
private

Definition at line 169 of file xmlrpc_manager.h.

◆ V_CachedXmlRpcClient

Definition at line 147 of file xmlrpc_manager.h.

Constructor & Destructor Documentation

◆ XMLRPCManager()

ros::XMLRPCManager::XMLRPCManager ( )

Definition at line 104 of file xmlrpc_manager.cpp.

◆ ~XMLRPCManager()

ros::XMLRPCManager::~XMLRPCManager ( )

Definition at line 111 of file xmlrpc_manager.cpp.

Member Function Documentation

◆ addASyncConnection()

void ros::XMLRPCManager::addASyncConnection ( const ASyncXMLRPCConnectionPtr conn)

Definition at line 392 of file xmlrpc_manager.cpp.

◆ bind()

bool ros::XMLRPCManager::bind ( const std::string &  function_name,
const XMLRPCFunc cb 
)

Definition at line 404 of file xmlrpc_manager.cpp.

◆ getServerPort()

uint32_t ros::XMLRPCManager::getServerPort ( ) const
inline

Definition at line 119 of file xmlrpc_manager.h.

◆ getServerURI()

const std::string& ros::XMLRPCManager::getServerURI ( ) const
inline

Get the xmlrpc server URI of this node.

Definition at line 118 of file xmlrpc_manager.h.

◆ getXMLRPCClient()

XmlRpcClient * ros::XMLRPCManager::getXMLRPCClient ( const std::string &  host,
const int  port,
const std::string &  uri 
)

Definition at line 312 of file xmlrpc_manager.cpp.

◆ instance()

const XMLRPCManagerPtr & ros::XMLRPCManager::instance ( )
static

Definition at line 98 of file xmlrpc_manager.cpp.

◆ isShuttingDown()

bool ros::XMLRPCManager::isShuttingDown ( )
inline

Definition at line 133 of file xmlrpc_manager.h.

◆ releaseXMLRPCClient()

void ros::XMLRPCManager::releaseXMLRPCClient ( XmlRpc::XmlRpcClient c)

Definition at line 367 of file xmlrpc_manager.cpp.

◆ removeASyncConnection()

void ros::XMLRPCManager::removeASyncConnection ( const ASyncXMLRPCConnectionPtr conn)

Definition at line 398 of file xmlrpc_manager.cpp.

◆ serverThreadFunc()

void ros::XMLRPCManager::serverThreadFunc ( )
private

Definition at line 250 of file xmlrpc_manager.cpp.

◆ shutdown()

void ros::XMLRPCManager::shutdown ( )

Definition at line 135 of file xmlrpc_manager.cpp.

◆ start()

void ros::XMLRPCManager::start ( )

Definition at line 116 of file xmlrpc_manager.cpp.

◆ unbind()

void ros::XMLRPCManager::unbind ( const std::string &  function_name)

Definition at line 421 of file xmlrpc_manager.cpp.

◆ validateXmlrpcResponse()

bool ros::XMLRPCManager::validateXmlrpcResponse ( const std::string &  method,
XmlRpc::XmlRpcValue response,
XmlRpc::XmlRpcValue payload 
)

Validate an XML/RPC response.

Parameters
methodThe RPC method that was invoked.
responseThe resonse that was received.
payloadThe payload that was received.
Returns
true if validation succeeds, false otherwise.
Todo:
Consider making this private.

Definition at line 202 of file xmlrpc_manager.cpp.

Member Data Documentation

◆ added_connections_

S_ASyncXMLRPCConnection ros::XMLRPCManager::added_connections_
private

Definition at line 155 of file xmlrpc_manager.h.

◆ added_connections_mutex_

boost::mutex ros::XMLRPCManager::added_connections_mutex_
private

Definition at line 156 of file xmlrpc_manager.h.

◆ clients_

V_CachedXmlRpcClient ros::XMLRPCManager::clients_
private

Definition at line 148 of file xmlrpc_manager.h.

◆ clients_mutex_

boost::mutex ros::XMLRPCManager::clients_mutex_
private

Definition at line 149 of file xmlrpc_manager.h.

◆ connections_

S_ASyncXMLRPCConnection ros::XMLRPCManager::connections_
private

Definition at line 160 of file xmlrpc_manager.h.

◆ functions_

M_StringToFuncInfo ros::XMLRPCManager::functions_
private

Definition at line 171 of file xmlrpc_manager.h.

◆ functions_mutex_

boost::mutex ros::XMLRPCManager::functions_mutex_
private

Definition at line 170 of file xmlrpc_manager.h.

◆ master_retry_timeout_

ros::WallDuration ros::XMLRPCManager::master_retry_timeout_
private

Definition at line 153 of file xmlrpc_manager.h.

◆ port_

int ros::XMLRPCManager::port_
private

Definition at line 139 of file xmlrpc_manager.h.

◆ removed_connections_

S_ASyncXMLRPCConnection ros::XMLRPCManager::removed_connections_
private

Definition at line 157 of file xmlrpc_manager.h.

◆ removed_connections_mutex_

boost::mutex ros::XMLRPCManager::removed_connections_mutex_
private

Definition at line 158 of file xmlrpc_manager.h.

◆ server_

XmlRpc::XmlRpcServer ros::XMLRPCManager::server_
private

Definition at line 146 of file xmlrpc_manager.h.

◆ server_thread_

boost::thread ros::XMLRPCManager::server_thread_
private

Definition at line 140 of file xmlrpc_manager.h.

◆ shutting_down_

bool ros::XMLRPCManager::shutting_down_
private

Definition at line 151 of file xmlrpc_manager.h.

◆ unbind_requested_

volatile bool ros::XMLRPCManager::unbind_requested_
private

Definition at line 173 of file xmlrpc_manager.h.

◆ uri_

std::string ros::XMLRPCManager::uri_
private

Definition at line 138 of file xmlrpc_manager.h.


The documentation for this class was generated from the following files:


roscpp
Author(s): Morgan Quigley, Josh Faust, Brian Gerkey, Troy Straszheim, Dirk Thomas
autogenerated on Mon Feb 28 2022 23:33:27