You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
sems/apps/examples/tutorial/cc_acc_xmlrpc
Stefan Sayer 2379cfb0ef
b/f: result of xmlrpc call does not need to be array
19 years ago
..
server added cc_acc using xmlrpc from Todd Lewis 19 years ago
CCAcc.cpp b/f: result of xmlrpc call does not need to be array 19 years ago
CCAcc.h added cc_acc using xmlrpc from Todd Lewis 19 years ago
Makefile added cc_acc using xmlrpc from Todd Lewis 19 years ago
Readme.cc_acc_xmlrpc added cc_acc using xmlrpc from Todd Lewis 19 years ago

Readme.cc_acc_xmlrpc

cc_acc_xmlrpc                contributed by Todd Lewis 

This module implements the accounting functions for the calling
card example, specifically the cc_acc interface. It can be loaded 
as an alternative to the cc_acc module.

Instead of maintaining a local in memory map of credits, as the 
cc_acc module does, it executes the getCredit and subtractCredit
functions via XMLRPC to an accounting server:

acc system components using cc_acc_xmlrpc

 +------------------------+
 |       SEMS             |
 |                        |
 |    +-------------+     |
 |    | mycc        |     | 
 |    +-------------+     | 
 |    |             |     |
 |    |             |     |
 |    +-------------+     | 
 |       |                |
 |       |DI getCredit    |
 |       |   subtractCredit
 |       v                |
 |    +-------------+     |             +--------------------+
 |    |cc_acc_xmlrpc|     |             |XMLRPC              |
 |    +-------------+     | XMLRPC      |  accounting server |
 |    | credits     | ----------------> |                    |
 |    |   (map)     | ----------------> |                    |
 |    +-------------+     | getCredit   +--------------------+
 |                        | subtractCredit
 |                        |
 |                        |
 +------------------------+
 
acc system components using cc_acc

 +------------------------+
 |       SEMS             |
 |                        |
 |    +-------------+     |
 |    | mycc        |     | 
 |    +-------------+     | 
 |    |             |     |
 |    |             |     |
 |    +-------------+     | 
 |       |                |
 |       |DI getCredit    |
 |       |   subtractCredit
 |       v                |
 |    +-------------+     |
 |    |  cc_acc     |     | 
 |    +-------------+     | 
 |    | credits     |     |
 |    |   (map)     |     |
 |    +-------------+     | 
 |        ^               |
 |        |DI addCredit   |       
 |        |   setCredit   |
 |        |               |
 |    +-------------+     |
 |    |  xmlrpc2di  |     | 
 |    +-------------+     | 
 |    |             |<---------- XMLRPC addCredit
 |    |             |<---------- XMLRPC setCredit
 |    +-------------+     | 
 |                        |
 |                        |
 +------------------------+
 
a python example XMLRPC server can be found in server/xmlrpcserver.py.

This module needs the xmlrpcpp library (see apps/examples/xmlrpc2di module
for details).