5 #ifndef _XMLRPCSERVER_H_ 6 #define _XMLRPCSERVER_H_ 11 # pragma warning(disable:4786) // identifier was truncated in debug info 29 class XmlRpcServerMethod;
32 class XmlRpcServerConnection;
47 void enableIntrospection(
bool enabled=
true);
56 void removeMethod(
const std::string& methodName);
63 bool bindAndListen(
int port,
int backlog = 5);
66 void work(
double msTime);
80 virtual unsigned handleEvent(
unsigned eventType);
92 virtual unsigned acceptConnection();
107 typedef std::map< std::string, XmlRpcServerMethod* >
MethodMap;
131 #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