summaryrefslogtreecommitdiffstats
path: root/Utilities/cmxmlrpc
diff options
context:
space:
mode:
authorAndy Cedilnik <andy.cedilnik@kitware.com>2005-03-04 20:04:59 (GMT)
committerAndy Cedilnik <andy.cedilnik@kitware.com>2005-03-04 20:04:59 (GMT)
commitcecda2a3bf1170f98542a78d15fb42e05f6637ce (patch)
treeb0788c2bcf34cf5ef25c9249aba85f801168f485 /Utilities/cmxmlrpc
parentef282e2a7f14551af0e45f76a153e81891f1e4f5 (diff)
downloadCMake-cecda2a3bf1170f98542a78d15fb42e05f6637ce.zip
CMake-cecda2a3bf1170f98542a78d15fb42e05f6637ce.tar.gz
CMake-cecda2a3bf1170f98542a78d15fb42e05f6637ce.tar.bz2
ENH: Print more states including NY
Diffstat (limited to 'Utilities/cmxmlrpc')
-rw-r--r--Utilities/cmxmlrpc/synch_client.c20
1 files changed, 12 insertions, 8 deletions
diff --git a/Utilities/cmxmlrpc/synch_client.c b/Utilities/cmxmlrpc/synch_client.c
index 0193e0b..532416e 100644
--- a/Utilities/cmxmlrpc/synch_client.c
+++ b/Utilities/cmxmlrpc/synch_client.c
@@ -27,6 +27,7 @@ main(int const argc,
xmlrpc_env env;
xmlrpc_value *result;
char *state_name;
+ int cc;
if (argc-1 > 0) {
fprintf(stderr, "No arguments");
@@ -40,15 +41,18 @@ main(int const argc,
xmlrpc_env_init(&env);
/* Call the famous server at UserLand. */
- result = xmlrpc_client_call(&env, "http://betty.userland.com/RPC2",
+ for ( cc = 30; cc < 35; cc ++ )
+ {
+ result = xmlrpc_client_call(&env, "http://betty.userland.com/RPC2",
"examples.getStateName",
- "(i)", (xmlrpc_int32) 41);
- die_if_fault_occurred(&env);
-
- /* Get our state name and print it out. */
- xmlrpc_parse_value(&env, result, "s", &state_name);
- die_if_fault_occurred(&env);
- printf("%s\n", state_name);
+ "(i)", (xmlrpc_int32) cc);
+ die_if_fault_occurred(&env);
+
+ /* Get our state name and print it out. */
+ xmlrpc_parse_value(&env, result, "s", &state_name);
+ die_if_fault_occurred(&env);
+ printf("%d: %s\n", cc, state_name);
+ }
/* Dispose of our result value. */
xmlrpc_DECREF(result);