#include <stdlib.h>
#include <stdio.h>
#include <unistd.h>
#include <pthread.h>
#include <string.h>
#include <xmlrpc-c/base.h>
#include <xmlrpc-c/client.h>
#include <xmlrpc-c/server.h>
#include <xmlrpc-c/server_abyss.h>
#include "xrpcP.h"
XRSERVER.C
Procedures used to implement an XML-RPC server in an application. To do this, we keep a local registry of method names and functions and rely on a default method to invoke the procedure using a common function prototype.
Server methods:
xr_createServer (path, port, logfile) xr_addServerMethod (name, *method, *userData) xr_removeServerMethod (name) xr_setServerParam (param, *value)
xr_startServerThread () // never returns xr_shutdownServer ()
1.5.9