Debian Codegraph @

xpa/doc/template.html

raw symbols SCIP
1 <!-- =defdoc xpatemplate xpatemplate n -->
2 <HTML>
3 <HEAD>
4 <TITLE>Access Point Names and Templates</TITLE>
5 </HEAD>
6 <BODY>
7
8 <!-- =section xpatemplate NAME -->
9 <H2><A NAME="xpatemplate">XPATemplate: Access Point Names and Templates</A></H2>
10 <!-- =section xpatemplate SYNOPSIS -->
11 <H2>Summary</H2>
12 <P>
13 XPA access points are composed of two parts: a general class and a
14 specific name. Both parts accept template characters so that you
15 can send/retrieve data to/from multiple servers at one time.
16
17 <!-- =section xpatemplate DESCRIPTION -->
18 <H2>Description</H2>
19 <P>
20 When XPA servers call
21 <A HREF="./server.html#xpanew">XPANew(),</A>
22 or
23 <A HREF="./server.html#xpacmdnew">XPACmdNew()</A>
24 to define XPA access points, they specify a string identifier composed of a
25 class and a name. When clients communicate with XPA access points,
26 they specify which access points to communicate with using
27 an identifier of the form:
28 <PRE>
29 class:name
30 </PRE>
31 All registered XPA access points that match the specified identifier
32 will be available for communication (subject to access control rules,
33 etc.)
34
35 <P>
36 As of XPA 2.1.5, the length of both the class and name designations are
37 limited to 1024 characters.
38
39 <P>
40 The XPA class:name identifier actually is a template: it accepts wild
41 cards in its syntax, so a single specifier can match more than one XPA
42 access point. (Note that the class is optional and defaults to "*".)
43 The allowed syntax for clients to specify the class:name template is
44 of the form shown below. (Note that "*" is used to denote a generic
45 wild card, but other wild cards characters are supported, as described
46 below).
47 <PRE>
48 template explanation
49 -------- -----------
50 class:name exact match of class and name
51 name match any class with this name
52 *:name match any class with this name
53 class:* match any name of this class
54 *:* match any access point
55 </PRE>
56 <P>
57 In general, the following wild-cards can be applied to class and name:
58 <PRE>
59 wildcard explanation
60 -------- -----------
61 ? match any character, but there must be one
62 * match anything, or nothing
63 [...] match an inclusive set
64 </PRE>
65 <P>
66 Although the class:name template normally is used to refer to XPA
67 access points, these also can be specified using their individual
68 socket identifiers. For inet sockets, the socket identifier is
69 <B>ip:port</B>, where ip can be the DNS-registered name,
70 the ASCII IP number (e.g. 123.45.67.890) or the hex IP number
71 (e.g. 838f3a60). For unix sockets, the identifier is the <B>socket file
72 name</B>. These socket identifiers are displayed as the fourth argument
73 in the xpans display of registered access points. For example,
74 consider the ds9 program started using inet sockets. The xpans name
75 server will register something like this:
76 <PRE>
77 csh> xpaget xpans
78 DS9 ds9 gs saord.harvard.edu:3236 eric
79 </PRE>
80 You can access ds9 using ip:3236 in any of the three forms:
81 <PRE>
82 csh> xpaget saord:3236 file
83 /home/eric/data/snr.ev
84
85 csh> xpaget 123.45.67.890:3236 file
86 /home/eric/data/snr.ev
87
88 csh> xpaget 838f3a60:3236 file
89 /home/eric/data/snr.ev
90 </PRE>
91 In the case of unix sockets, the socket identifier is a file:
92 <PRE>
93 csh> xpaget xpans
94 DS9 ds9 gs /tmp/.xpa/DS9_ds9.2631 eric
95
96 csh> xpaget /tmp/.xpa/DS9_ds9.2631 file
97 /home/eric/data/snr.ev
98 </PRE>
99 This feature can be useful in distinguishing between multiple
100 instances of a program that all have the same class:name designation.
101
102 <!-- =section xpatemplate SEE ALSO -->
103 <!-- =text See xpa(n) for a list of XPA help pages -->
104 <!-- =stop -->
105
106 <P>
107 <A HREF="./help.html">Go to XPA Help Index</A>
108
109 <H5>Last updated: September 10, 2003</H5>
110 </BODY>
111 </HTML>
112