1xpacode(n)                    SAORD Documentation                   xpacode(n)
2
3
4

NAME

6       XPACode: Where to Find Example/Test Code
7

SYNOPSIS

9       The XPA source code directory contains two test programs, stest.c, and
10       ctest.c that can serve as examples for writing XPA servers and clients,
11       respectively.  They also can be used to test various features of XPA.
12

DESCRIPTION

14       To build the XPA test programs, execute:
15
16          make All
17
18       in the XPA source directory to generate the stest and ctest programs.
19       (NB: this should work on all platforms, although we have had problems
20       with unresolved externals on one Sun/Solaris machine, for reasons still
21       unknown.)
22
23       The stest program can be executed with no arguments to start an XPA
24       server that contains the access points: xpa, xpa1, c_xpa (containing
25       sub-commands cmd1 and cmd2), and i_xpa.  You then can use xpaset and
26       xpaget to interact with these access points:
27
28         cat xpa.c ⎪ xpaset xpa      # send to xpa
29         cat xpa.c ⎪ xpaset "xpa*"   # send to xpa and xpa1
30         xpaget xpa                  # receive from xpa
31         xpaget xpa*                 # receive from xpa and xpa1
32
33       etc. You also can use ctest to do the same thing, or to iterate:
34
35         ctest -s -l 100 xpa        # send to xpa 100 times
36         ctest -s -l 100 "xpa*"     # send to xpa and xpa1 100 times
37         ctest -g -l 100 xpa        # receive from xpa 100 times
38         ctest -g -l 100 "xpa*"     # receive from xpa and xpa1 100 times
39
40       More options are available: see the stest.c and ctest.c code itself,
41       which were used extensively to debug XPA.
42
43       The file test.tcl in the XPA source directory gives examples for using
44       the XPATclInterface.
45

SEE ALSO

47       See xpa(n) for a list of XPA help pages
48
49
50
51version 2.1.12                 January 26, 2010                     xpacode(n)
Impressum