File: test

package info (click to toggle)
xmlrpc-c 1.60.05-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 8,132 kB
  • sloc: ansic: 55,332; cpp: 13,541; sh: 3,321; makefile: 2,556; perl: 593; xml: 134
file content (28 lines) | stat: -rwxr-xr-x 545 bytes parent folder | download | duplicates (8)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#! /bin/sh

# This is for testing and playing with Xmlrpc_pstream.

# To use, first start a packet stream XML-RPC server.  The
# 'pstream_inetd_server' program from examples/cpp is good:
#
#  $ socketexec -accept -local_port=8080 -- pstream_inetd_server
# 
# Then (in another shell), run this program:
#
#  $ ./test
#  > sample.add i/3 i/5
#
#      Result:
#        Integer: 8
#
#  > [ctl-D]
#  $
#
# OR:
#
#  $ ./test sample.add i/3 i/5
#  $

socketexec -connect -remote_host=localhost -remote_port=8080 --filedes=3 -- \
  ./xmlrpc_pstream $*