Debian Codegraph @

xpa/doc/info.html

raw symbols SCIP
1 <!-- =defdoc xpacommon xpacommon n -->
2 <HTML>
3 <HEAD>
4 <TITLE>Getting Common Information About Access Points</TITLE>
5 </HEAD>
6 <BODY>
7
8 <!-- =section xpacommon NAME -->
9 <H2><A NAME="xpacommon">XPACommon: Getting Common Information About Access Points</A></H2>
10
11 <!-- =section xpacommon SYNOPSIS -->
12 <H2>Summary</H2>
13 <P>
14 There are various kinds of generic information you can retrieve about
15 an XPA access point by using the xpaget command.
16
17 <!-- =section xpacommon DESCRIPTION -->
18 <H2>Description</H2>
19 <P>
20 You can find out which XPA access points have been registered with
21 the currently running
22 <A HREF="./xpans.html">XPA name server</A>
23 by executing the
24 <A HREF="./programs.html#xpaget">xpaget</A>
25 command to retrieve info from the XPA name server:
26 <PRE>
27 xpaget xpans
28 </PRE>
29 If, for example, the
30 <A HREF="./examples.html">stest</A> test server program
31 is running, the following XPA access points will be returned (the specifics
32 of the returned info will vary for different machines and users):
33 <PRE>
34 XPA xpa gs 838e2f67:1262 eric
35 XPA xpa1 gs 838e2f67:1266 eric
36 XPA c_xpa gs 838e2f67:1267 eric
37 XPA i_xpa i 838e2f67:1268 eric
38 </PRE>
39 Note that access to this information is subject to the usual
40 <A HREF="./acl.html">XPA Access Control</A> restrictions.
41
42 <P>
43 Each XPA access point supports a number of reserved sub-commands that provide
44 access to different kinds of information, e.g. the access control for
45 that access point. These sub-commands can be executed by using
46 <A HREF="./programs.html#xpaset">xpaset</A>
47 or
48 <A HREF="./programs.html#xpaget">xpaget</A>
49 at the command line, or
50 <A HREF="./client.html#xpaget">XPAGet()</A>
51 or
52 <A HREF="./client.html#xpaset">XPASet()</A>
53 in programs, e.g:
54 <PRE>
55 xpaget ds9 -acl
56 xpaget ds9 -help
57 xpaget ds9 env FOO
58
59 xpaset -p ds9 env FOO foofoo
60 </PRE>
61 With the exception of <B>-help</B> and <B>-version</B>, reserved
62 sub-commands are available only on the machine on which the XPA server
63 itself is running.
64
65 The following reserved sub-commands are defined for all access points:
66 <DL>
67
68 <P>
69 <DT><B>-acl</B> get (set) the access control list [options: host type acl, for set]
70 <DD>
71 The 'xpaset' option allows you to add a new acl for a given host, or change
72 the acl for an existing host. See
73 <A HREF="./acl.html">XPA Access Control</A>
74 for more information.
75 This access point is available only on the server machine.
76
77 <P>
78 <DT><B>-env</B> get (set) an environment variable [options: name (value, for set)]
79 <DD>
80 The 'xpaget' option will return the value of the named environment
81 variable. The 'xpaset' option will set the value of the names
82 variable to the specified value.
83 This access point is available only on the server machine.
84 (Please be advised that we have had problems setting environment
85 variables in static Tcl/Tk programs such as ds9 running under Linux.)
86
87 <P>
88 <DT> <B>-clipboard</B> set(get) information on a named clipboard
89 <DD> Clients can store ASCII state information on any number of named
90 clipboards. Clipboards of the same name created by clients on
91 different machines are kept separate. The syntax for creating a
92 clipboard is:
93 <PRE>
94 [data] | xpaset [server] -clipboard add|append [clipboard_name]
95 xpaset -p [server] -clipboard delete [clipboard_name]
96 </PRE>
97 Use "add" to create a new clipboard or replace the contents of an existing
98 one. Use "append" to append to an existing clipboard.
99 <P>
100 Information on a named clipboard is retrieved using:
101 <PRE>
102 xpaget [server] -clipboard [clipboard_name]
103 </PRE>
104 <P>
105 <DT><B>-exec</B> set: execute commands from buffer [options: none]
106 <DD>
107 If -exec is specified in the paramlist of an 'xpaset' call, then further
108 sub-commands will be retrieved from the data buffer.
109
110 <P>
111 <DT><B>-help</B> get: return help string for this XPA or sub-command [options: name (for sub-commands)]
112 <DD>
113 Each XPA access point and each XPA sub-command can have a help string
114 associated with it that is specified when the access point is defined.
115 The -help option will return this help string. For XPA access points
116 that contain user-defined sub-commands, you can get the help string
117 for a particular sub-command by specifying its name, or else get the
118 help strings for all sub-commands if not name is specified.
119
120 <P>
121 <DT><B>-ltimeout</B> get (set) the long timeout value [options: seconds|reset]
122 <DD>
123 The 'xpaget' option will return the value of the long timeout (in seconds).
124 The 'xpaset' option will set the value of the long timeout. If "reset" is
125 specified, then the timeout value will be reset to the default value.
126
127 <P>
128 <DT><B>-nsconnect</B> set: re-establish name server connection to all XPA's [options: none]
129 <DD>
130 If the
131 <A HREF="./xpans.html">XPA Name Server (xpans)</A>
132 process has terminated unexpectedly and then re-started, this
133 sub-command can be used to re-establish the connection. You use it by
134 sending the command to the [name:port] or [file] of the access point
135 instead of to the XPA name (since the latter requires the xpans
136 connection!):
137 <PRE>
138 xpaset -p 838e2f67:1268 -nsconnect
139 </PRE>
140 See <A HREF="./xpans.html">xpans</A> for more information.
141
142 <P>
143 <DT><B>-nsdisconnect</B> set: break name server connection to all XPA's [options: none]
144 <DD>
145 This sub-command will terminate the connection to the
146 <A HREF="./xpans.html">XPA Name Server (xpans)</A>, thereby making
147 all access points inaccessible except through their underlying [name:port]
148 or [file] identifiers. I forget why we added it, it seems pretty useless.
149
150 <P>
151 <DT><B>-stimeout</B> get (set) the short timeout value [options: seconds|reset]
152 <DD>
153 The 'xpaget' option will return the value of the short timeout (in seconds).
154 The 'xpaset' option will set the value of the short timeout. If "reset" is
155 specified, then the timeout value will be reset to the default value.
156
157 <P>
158 <DT><B>-remote</B> set: register xpa with remote server [options: host[:port] [acl]] [-proxy]
159 <DD>
160 This sub-command will register the XPA access point with the XPA name
161 server (xpans) on the specified host (which must already be running).
162 The specified host also is given access control to the access point,
163 using the specified acl or the default acl of "+" (meaning the remote
164 host can xpaset, xpaget, xpainfo or xpaaccess). If the acl is
165 specified as "-", then the access point is unregistered.
166 See <A HREF="./inet.html">Communication Between Machines</A>
167 for more information on how this sub-command is used.
168
169 <P>
170 <DT><B>-version</B> get: return XPA version string [options: none]
171 <DD>
172 The version refers to the version of XPA used to define this access point
173 (currently something like 2.0).
174
175 </DL>
176
177 <P>
178 You can add your own reserved commands to all XPA access points by using the
179 <A HREF="./server.html#xpacmdadd">XPACmdAdd()</A>
180 routine, passing the XPA handle returned by <EM>XPA XPAGetReserved(void)</EM>
181 as the first argument. Note again that these will only be available on the
182 machine where the XPA service is running.
183
184 <!-- =section xpacommon SEE ALSO -->
185 <!-- =text See xpa(n) for a list of XPA help pages -->
186 <!-- =stop -->
187
188 <P>
189 <A HREF="./help.html">Go to XPA Help Index</A>
190
191 <H5>Last updated: September 10, 2003</H5>
192 </BODY>
193 </HTML>