5 #ifndef _XMLRPCSERVER_H_ 6 #define _XMLRPCSERVER_H_ 11 # pragma warning(disable:4786) // identifier was truncated in debug info 31 class XmlRpcServerMethod;
34 class XmlRpcServerConnection;
49 void enableIntrospection(
bool enabled=
true);
58 void removeMethod(
const std::string& methodName);
65 bool bindAndListen(
int port,
int backlog = 5);
68 void work(
double msTime);
82 virtual unsigned handleEvent(
unsigned eventType);
94 virtual unsigned acceptConnection();
100 bool enoughFreeFDs();
109 typedef std::map< std::string, XmlRpcServerMethod* >
MethodMap;
135 #endif //_XMLRPCSERVER_H_ A class to handle XML RPC requests from a particular client.
static const double ACCEPT_RETRY_INTERVAL_SEC
RPC method arguments and results are represented by Values.
std::vector< struct pollfd > pollfds
XmlRpcDispatch * get_dispatch()
Abstract class representing a single RPC method.
XmlRpcServerMethod * _listMethods
std::map< std::string, XmlRpcServerMethod *> MethodMap
An RPC source represents a file descriptor to monitor.
A class to handle XML RPC requests.
static const int FREE_FD_BUFFER
double _accept_retry_time_sec
XmlRpcServerMethod * _methodHelp
bool _introspectionEnabled