mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-02-04 18:27:36 +00:00
00654d880e
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@8545 d0543943-73ff-0310-b7d9-9358b9ac24b2
29 lines
545 B
Bash
29 lines
545 B
Bash
#! /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 $*
|
|
|