xrServer.c File Reference

Procedures used to implement an XML-RPC server. More...

#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"

Defines

#define DEBUG   0

Functions

int xr_createServer (char *path, int port, char *logfile)
int xr_addServerMethod (char *name, void *method, void *userData)
int xr_removeServerMethod (char *name)
void xr_setServerParam (char *param, void *value)
int xr_startServerThread ()
void xr_startServer ()
int xr_shutdownServer ()


Detailed Description

Procedures used to implement an XML-RPC server.

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 ()

Author:
Mike Fitzpatrick
Date:
6/10/09

Generated on Fri Apr 30 15:45:21 2010 for XRPC by  doxygen 1.5.9