Menu

Tree [r3316] / advanced / examples /
 History

HTTPS access


File Date Author Commit
 cpp 2025-03-28 giraffedata [r3294] promote Development to Advanced
 Makefile 2017-12-26 giraffedata [r2979] Release 1.51.00
 README 2011-09-27 giraffedata [r2200] Rebase to 1.28
 auth_client.c 2024-06-25 giraffedata [r3232] promote Development to Advanced
 compound_value_client.c 2019-06-28 giraffedata [r3043] Promote Development to Advanced as 01.55.00
 compound_value_server.c 2019-06-28 giraffedata [r3043] Promote Development to Advanced as 01.55.00
 curl_client.c 2025-03-28 giraffedata [r3294] promote Development to Advanced
 gen_sample_add_xml.c 2009-06-29 giraffedata [r1766] Version 01.19.00
 interrupted_client.c 2023-12-26 giraffedata [r3201] promote Development to Advanced
 interrupted_server.c 2012-03-31 giraffedata [r2294] Update to current development release: 01.30.00
 json.c 2015-12-31 giraffedata [r2803] Promote Development to Advanced as Release 1.44
 ssl_secure_server.c 2025-03-28 giraffedata [r3294] promote Development to Advanced
 ssl_server.c 2025-03-28 giraffedata [r3294] promote Development to Advanced
 synch_client.c 2011-03-26 giraffedata [r2118] Release 1.26.00
 xmlrpc_asynch_client.c 2011-03-26 giraffedata [r2118] Release 1.26.00
 xmlrpc_inetd_server.c 4 days ago giraffedata [r3315] promote Development to Advanced
 xmlrpc_loop_server.c 2024-06-25 giraffedata [r3232] promote Development to Advanced
 xmlrpc_sample_add_client.c 2017-12-26 giraffedata [r2979] Release 1.51.00
 xmlrpc_sample_add_server.c 2017-12-26 giraffedata [r2979] Release 1.51.00
 xmlrpc_sample_add_server_cgi.c 2009-06-29 giraffedata [r1766] Version 01.19.00
 xmlrpc_sample_add_server_w32httpsys.c 2007-12-27 giraffedata [r1294] Release 1.13.00
 xmlrpc_server_validatee.c 2012-03-31 giraffedata [r2294] Update to current development release: 01.30.00
 xmlrpc_socket_server.c 4 days ago giraffedata [r3315] promote Development to Advanced

Read Me

This directory contains working examples of uses of XML-RPC-c.  There are
XML-RPC server programs and XML-RPC client programs that use the Xmlrpc-c
libraries.

The make file is a combination of an example of how to build programs that use
Xmlrpc-c libraries and something that actually does build the programs in this
directory.  As such, it isn't perfect for either of those purposes.  To build
the examples, you must first build the libraries (make dependencies will not
take care of that for you).  Do that by running a default 'make' in the top
level source directory.  Then you can issue a simple 'make' in this directory.

A default make in the root of the Xmlrpc-c source directory does not build
this directory, but a 'make all' does.


The simplest server program is 'xmlrpc_sample_add_server'.  This
implements a single XML-RPC method called 'sample.add'.  All it does is
add two numbers and return the sum.  You can run such a server like
this:

  $ ./xmlrpc_sample_add_server 8080

The server this runs is based on the Abyss HTTP server.  file.  The
argument tell it to listen on TCP Port 8080 for RPCs.  It puts log
information in /tmp, so be sure to look there.

A client program that goes along with this server is
'xmlrpc_sample_add_client'.  All this client does is make an XML-RPC
request to Port 8080 of 'localhost' to add the numbers 5 and 7 and
print the result on Standard Output.

You can run such a client like this:

  $ ./xmlrpc_sample_add_client

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.