Public Member Functions | Protected Types | Protected Member Functions | Protected Attributes
XmlRpc::XmlRpcServer Class Reference

A class to handle XML RPC requests. More...

#include <XmlRpcServer.h>

Inheritance diagram for XmlRpc::XmlRpcServer:
Inheritance graph
[legend]

List of all members.

Public Member Functions

void addMethod (XmlRpcServerMethod *method)
 Add a command to the RPC server.
bool bindAndListen (int port, int backlog=5)
void enableIntrospection (bool enabled=true)
 Specify whether introspection is enabled or not. Default is not enabled.
void exit ()
 Temporarily stop processing client requests and exit the work() method.
XmlRpcServerMethodfindMethod (const std::string &name) const
 Look up a method by name.
XmlRpcDispatchget_dispatch ()
int get_port ()
virtual unsigned handleEvent (unsigned eventType)
 Handle client connection requests.
void listMethods (XmlRpcValue &result)
 Introspection support.
virtual void removeConnection (XmlRpcServerConnection *)
 Remove a connection from the dispatcher.
void removeMethod (XmlRpcServerMethod *method)
 Remove a command from the RPC server.
void removeMethod (const std::string &methodName)
 Remove a command from the RPC server by name.
void shutdown ()
 Close all connections with clients and the socket file descriptor.
void work (double msTime)
 Process client requests for the specified time.
 XmlRpcServer ()
 Create a server object.
virtual ~XmlRpcServer ()
 Destructor.

Protected Types

typedef std::map< std::string,
XmlRpcServerMethod * > 
MethodMap

Protected Member Functions

virtual void acceptConnection ()
 Accept a client connection request.
virtual XmlRpcServerConnectioncreateConnection (int socket)
 Create a new connection object for processing requests from a specific client.

Protected Attributes

XmlRpcDispatch _disp
bool _introspectionEnabled
XmlRpcServerMethod_listMethods
XmlRpcServerMethod_methodHelp
MethodMap _methods
int _port

Detailed Description

A class to handle XML RPC requests.

Definition at line 37 of file XmlRpcServer.h.


Member Typedef Documentation

typedef std::map< std::string, XmlRpcServerMethod* > XmlRpc::XmlRpcServer::MethodMap [protected]

Definition at line 102 of file XmlRpcServer.h.


Constructor & Destructor Documentation

Create a server object.

Definition at line 16 of file XmlRpcServer.cpp.

Destructor.

Definition at line 25 of file XmlRpcServer.cpp.


Member Function Documentation

void XmlRpcServer::acceptConnection ( ) [protected, virtual]

Accept a client connection request.

Definition at line 151 of file XmlRpcServer.cpp.

Add a command to the RPC server.

Definition at line 36 of file XmlRpcServer.cpp.

bool XmlRpcServer::bindAndListen ( int  port,
int  backlog = 5 
)

Create a socket, bind to the specified port, and set it in listen mode to make it available for clients.

Definition at line 74 of file XmlRpcServer.cpp.

XmlRpcServerConnection * XmlRpcServer::createConnection ( int  socket) [protected, virtual]

Create a new connection object for processing requests from a specific client.

Definition at line 175 of file XmlRpcServer.cpp.

void XmlRpcServer::enableIntrospection ( bool  enabled = true)

Specify whether introspection is enabled or not. Default is not enabled.

Definition at line 251 of file XmlRpcServer.cpp.

Temporarily stop processing client requests and exit the work() method.

Definition at line 191 of file XmlRpcServer.cpp.

XmlRpcServerMethod * XmlRpcServer::findMethod ( const std::string &  name) const

Look up a method by name.

Definition at line 62 of file XmlRpcServer.cpp.

Definition at line 85 of file XmlRpcServer.h.

Definition at line 83 of file XmlRpcServer.h.

unsigned XmlRpcServer::handleEvent ( unsigned  eventType) [virtual]

Handle client connection requests.

Implements XmlRpc::XmlRpcSource.

Definition at line 141 of file XmlRpcServer.cpp.

Introspection support.

Definition at line 278 of file XmlRpcServer.cpp.

Remove a connection from the dispatcher.

Definition at line 183 of file XmlRpcServer.cpp.

Remove a command from the RPC server.

Definition at line 43 of file XmlRpcServer.cpp.

void XmlRpcServer::removeMethod ( const std::string &  methodName)

Remove a command from the RPC server by name.

Definition at line 52 of file XmlRpcServer.cpp.

Close all connections with clients and the socket file descriptor.

Definition at line 199 of file XmlRpcServer.cpp.

void XmlRpcServer::work ( double  msTime)

Process client requests for the specified time.

Definition at line 130 of file XmlRpcServer.cpp.


Member Data Documentation

Definition at line 99 of file XmlRpcServer.h.

Definition at line 96 of file XmlRpcServer.h.

Definition at line 106 of file XmlRpcServer.h.

Definition at line 107 of file XmlRpcServer.h.

Definition at line 103 of file XmlRpcServer.h.

int XmlRpc::XmlRpcServer::_port [protected]

Definition at line 109 of file XmlRpcServer.h.


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


xmlrpcpp
Author(s): Chris Morley, Konstantin Pilipchuk, Morgan Quigley
autogenerated on Tue Mar 7 2017 03:44:43