2
0

test 545 B

12345678910111213141516171819202122232425262728
  1. #! /bin/sh
  2. # This is for testing and playing with Xmlrpc_pstream.
  3. # To use, first start a packet stream XML-RPC server. The
  4. # 'pstream_inetd_server' program from examples/cpp is good:
  5. #
  6. # $ socketexec -accept -local_port=8080 -- pstream_inetd_server
  7. #
  8. # Then (in another shell), run this program:
  9. #
  10. # $ ./test
  11. # > sample.add i/3 i/5
  12. #
  13. # Result:
  14. # Integer: 8
  15. #
  16. # > [ctl-D]
  17. # $
  18. #
  19. # OR:
  20. #
  21. # $ ./test sample.add i/3 i/5
  22. # $
  23. socketexec -connect -remote_host=localhost -remote_port=8080 --filedes=3 -- \
  24. ./xmlrpc_pstream $*