1555991fdSmrg<?xml version="1.0" encoding="UTF-8" ?>
23c15da26Smrg<!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
33c15da26Smrg                   "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd"
43c15da26Smrg[
53c15da26Smrg<!ENTITY % defs SYSTEM "defs.ent"> %defs;
63c15da26Smrg]>
7555991fdSmrg
8555991fdSmrg
9555991fdSmrg<!-- lifted from troff+ms+XMan by doclifter -->
103c15da26Smrg<book id="xsmp">
11555991fdSmrg
12555991fdSmrg<bookinfo>
13555991fdSmrg   <title>X Session Management Protocol</title>
14555991fdSmrg   <subtitle>X Consortium Standard</subtitle>
153c15da26Smrg   <releaseinfo>X Version 11, Release &fullrelvers;</releaseinfo>
163c15da26Smrg   <releaseinfo>Version 1.0</releaseinfo>
17555991fdSmrg   <authorgroup>
18555991fdSmrg      <author>
19555991fdSmrg         <firstname>Mike</firstname><surname>Wexler</surname>
203c15da26Smrg         <affiliation><orgname>Kubota Pacific Computer, Inc</orgname></affiliation>
21555991fdSmrg      </author>
22555991fdSmrg   </authorgroup>
23555991fdSmrg   <copyright>
24555991fdSmrg     <year>1992</year><year>1993</year><year>1994</year><year>2002</year>
25555991fdSmrg     <holder>The Open Group</holder>
26555991fdSmrg   </copyright>
27555991fdSmrg
28555991fdSmrg   <legalnotice>
29555991fdSmrg     <para>
30555991fdSmrgPermission is hereby granted, free of charge, to any person
31555991fdSmrgobtaining a copy of this software and associated documentation files
32555991fdSmrg(the &ldquo;Software&rdquo;), to deal in the Software without
33555991fdSmrgrestriction, including without limitation the rights to use, copy,
34555991fdSmrgmodify, merge, publish, distribute, sublicense, and/or sell copies of
35555991fdSmrgthe Software, and to permit persons to whom the Software is furnished
36555991fdSmrgto do so, subject to the following conditions:
37555991fdSmrg     </para>
38555991fdSmrg
39555991fdSmrg     <para>
40555991fdSmrgThe above copyright notice and this permission notice shall be
41555991fdSmrgincluded in all copies or substantial portions of the Software.
42555991fdSmrg     </para>
43555991fdSmrg
44555991fdSmrg     <para>
45555991fdSmrgTHE SOFTWARE IS PROVIDED &ldquo;AS IS&rdquo;, WITHOUT WARRANTY
46555991fdSmrgOF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
47555991fdSmrgWARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
48555991fdSmrgNONINFRINGEMENT.  IN NO EVENT SHALL THE X CONSORTIUM BE LIABLE FOR ANY
49555991fdSmrgCLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
50555991fdSmrgTORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
51555991fdSmrgSOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
52555991fdSmrg     </para>
53555991fdSmrg
54555991fdSmrg     <para>
55555991fdSmrgExcept as contained in this notice, the name of the X Consortium
56555991fdSmrgshall not be used in advertising or otherwise to promote the sale, use
57555991fdSmrgor other dealings in this Software without prior written authorization
58555991fdSmrgfrom the X Consortium.
59555991fdSmrg     </para>
60555991fdSmrg
61555991fdSmrg     <para>
62555991fdSmrgX Window System is a trademark of The Open Group.
63555991fdSmrg     </para>
64555991fdSmrg   </legalnotice>
65555991fdSmrg
66555991fdSmrg   <abstract>
67555991fdSmrg     <para>
68555991fdSmrgThis document specifies a protocol that facilitates the management of
69555991fdSmrggroups of client applications by a session manager.  The session
70555991fdSmrgmanager can cause clients to save their state, to shut down, and to be
71555991fdSmrgrestarted into a previously saved state.  This protocol is layered on
72555991fdSmrgtop of the X.Org <acronym>ICE</acronym> protocol.
73555991fdSmrg     </para>
74555991fdSmrg   </abstract>
75555991fdSmrg
76555991fdSmrg</bookinfo>
77555991fdSmrg
783c15da26Smrg<chapter id='Acknowledgments'>
79555991fdSmrg  <title>Acknowledgments</title>
80555991fdSmrg
81555991fdSmrg  <para>
82555991fdSmrgFirst I would like to thank the entire <acronym>ICCCM</acronym> and Intrinsics
83555991fdSmrgworking groups for the comments and suggestions. I would like to make special
84555991fdSmrgthanks to the following people (in alphabetical order), Jordan Brown,
85555991fdSmrgEllis Cohen, Donna Converse, Vania Joloboff, Stuart Marks, Ralph Mor
86555991fdSmrgand Bob Scheifler.
87555991fdSmrg  </para>
88555991fdSmrg</chapter>
89555991fdSmrg
903c15da26Smrg<chapter id='Definitions_and_Goals'>
91555991fdSmrg  <title>Definitions and Goals</title>
92555991fdSmrg
93555991fdSmrg  <para>
94555991fdSmrgThe purpose of the X Session Management Protocol (<acronym>XSMP</acronym>) is
95555991fdSmrgto provide a uniform mechanism for users to save and restore their sessions.
96555991fdSmrgA <firstterm>session</firstterm> is a group of clients, each
97555991fdSmrgof which has a particular state.  The session is controlled by a
98555991fdSmrgnetwork service called the <firstterm>session manager</firstterm>.
99555991fdSmrgThe session manager issues commands to its
100555991fdSmrgclients on behalf of the user.  These commands may cause clients to
101555991fdSmrgsave their state or to terminate.  It is expected that the client will
102555991fdSmrgsave its state in such a way that the client can be restarted at a
103555991fdSmrglater time and resume its operation as if it had never been
104555991fdSmrgterminated.  A client's state might include information about the file
105555991fdSmrgcurrently being edited, the current position of the insertion point
106555991fdSmrgwithin the file, or the start of an uncommitted transaction.  The
107555991fdSmrgmeans by which clients are restarted is unspecified by this
108555991fdSmrgprotocol.
109555991fdSmrg  </para>
110555991fdSmrg
111555991fdSmrg  <para>
112555991fdSmrgFor purposes of this protocol, a <firstterm>client</firstterm>
113555991fdSmrgof the session manager is defined as a connection to the session
114555991fdSmrgmanager.  A client is typically, though not necessarily, a process
115555991fdSmrgrunning an application program connected to an X Window System
116555991fdSmrgdisplay.  However, a client may be connected to more than one X
117555991fdSmrgdisplay or not be connected to any X displays at all.
118555991fdSmrg  </para>
119555991fdSmrg
120555991fdSmrg  <para>
121555991fdSmrgThis protocol is layered on top of the X Consortium's <acronym>ICE</acronym> protocol and
122555991fdSmrgrelies on the <acronym>ICE</acronym> protocol to handle connection management and authentication.
123555991fdSmrg  </para>
124555991fdSmrg
125555991fdSmrg</chapter>
126555991fdSmrg
1273c15da26Smrg<chapter id='Overview_of_the_Protocol'>
128555991fdSmrg  <title>Overview of the Protocol</title>
129555991fdSmrg
130555991fdSmrg  <para>
131555991fdSmrgClients use XSMP to register themselves with the session manager (SM).
132555991fdSmrgWhen a client starts up, it should connect to the SM.  The client
133555991fdSmrgshould remain connected for as long as it runs.  A client may resign
134555991fdSmrgfrom the session by issuing the proper protocol messages before
135555991fdSmrgdisconnecting.  Termination of the connection without notice will be
136555991fdSmrgtaken as an indication that the client died unexpectedly.
137555991fdSmrg  </para>
138555991fdSmrg
139555991fdSmrg  <para>
140555991fdSmrgClients are expected to save their state in such a way as to allow
141555991fdSmrgmultiple instantiations of themselves to be managed independently.  A
142555991fdSmrgunique value called a <firstterm>client-ID</firstterm> is
143555991fdSmrgprovided by the protocol for the purpose of disambiguating multiple
144555991fdSmrginstantiations of clients.  Clients may use this ID, for example, as
145555991fdSmrgpart of a filename in which to store the state for a particular
146555991fdSmrginstantiation.  The client-ID should be saved as part of the command
147555991fdSmrgused to restart this client
148555991fdSmrg(the <property>RestartCommand</property>) so that the client
149555991fdSmrgwill retain the same ID after it is restarted.  Certain small pieces
150555991fdSmrgof state might also be stored in the RestartCommand.  For example, an
151555991fdSmrgX11 client might place a '-twoWindow' option in its RestartCommand to
152555991fdSmrgindicate that it should start up in two window mode when it is
153555991fdSmrgrestarted.
154555991fdSmrg  </para>
155555991fdSmrg
156555991fdSmrg  <para>
157555991fdSmrgThe client finds the network address of the SM in a system-dependent
158555991fdSmrgway.  On <acronym>POSIX</acronym> systems an environment
159555991fdSmrgvariable called <envar>SESSION_MANAGER</envar>
160555991fdSmrgwill contain a list of network IDs.  Each id will contain the
161555991fdSmrgtransport name followed by a slash and the (transport-specific)
162555991fdSmrgaddress.  A TCP/IP address would look like this:
163555991fdSmrg    <informalexample><para>
164555991fdSmrg      <literal>tcp/</literal><replaceable>hostname</replaceable><literal>:</literal><replaceable>portnumber</replaceable>
165555991fdSmrg    </para></informalexample>
166555991fdSmrgwhere the hostname is a fully qualified domain name.
167555991fdSmrgA Unix Domain address looks like this:
168555991fdSmrg    <informalexample><para>
169555991fdSmrg	<literal>local/</literal><replaceable>hostname</replaceable><literal>:</literal><replaceable>path</replaceable>
170555991fdSmrg    </para></informalexample>
171555991fdSmrgA DECnet address would look like this:
172555991fdSmrg    <informalexample><para>
173555991fdSmrg	<literal>decnet/</literal><replaceable>nodename</replaceable><literal>::</literal><replaceable>objname</replaceable>
174555991fdSmrg    </para></informalexample>
175555991fdSmrg  </para>
176555991fdSmrg
177555991fdSmrg  <para>
178555991fdSmrgIf multiple network IDs are specified, they should be separated by commas.
179555991fdSmrg  </para>
180555991fdSmrg
181555991fdSmrg  <note><title>Rationale</title>
182555991fdSmrg    <para>
183555991fdSmrgThere was much discussion over whether the XSMP protocol should use X
184555991fdSmrgas the transport protocol or whether it should use its own independent
185555991fdSmrgtransport.  It was decided that it would use an independent protocol
186555991fdSmrgfor several reasons.  First, the Session Manager should be able to
187555991fdSmrgmanage programs that do not maintain an X connection.  Second, the X
188555991fdSmrgprotocol is not appropriate to use as a general-purpose transport
189555991fdSmrgprotocol.  Third, a session might span multiple displays.
190555991fdSmrg    </para>
191555991fdSmrg
192555991fdSmrg    <para>
193555991fdSmrgThe protocol is connection based, because there is no other way for
194555991fdSmrgthe SM to determine reliably when clients terminate.
195555991fdSmrg    </para>
196555991fdSmrg
197555991fdSmrg    <para>
198555991fdSmrgIt should be noted that this protocol introduces another single point
199555991fdSmrgof failure into the system.  Although it is possible for clients to
200555991fdSmrgcontinue running after the SM has exited, this will probably not be
201555991fdSmrgthe case in normal practice.  Normally the program that starts the SM
202555991fdSmrgwill consider the session to be terminated when the SM exits (either
203555991fdSmrgnormally or abnormally).
204555991fdSmrg    </para>
205555991fdSmrg
206555991fdSmrg    <para>
207555991fdSmrgTo get around this would require some sort of rendezvous server that
208555991fdSmrgwould also introduce a single point of failure.  In the absence of a
209555991fdSmrggenerally available rendezvous server, XSMP is kept simple in the
210555991fdSmrghopes of making simple reliable SMs.
211555991fdSmrg    </para>
212555991fdSmrg  </note>
213555991fdSmrg
214555991fdSmrg  <para>
215555991fdSmrgSome clients may wish to manage the programs they start.  For example,
216555991fdSmrga mail program could start a text editor for editing the text of a
217555991fdSmrgmail message.  A client that does this is a session manager itself; it
218555991fdSmrgshould supply the clients it starts with the appropriate connection
219555991fdSmrginformation (i.e., the <envar>SESSION_MANAGER</envar> environment variable)
220555991fdSmrgthat specifies a connection to itself instead of to the top level session
221555991fdSmrgmanager.
222555991fdSmrg  </para>
223555991fdSmrg
224555991fdSmrg  <para>
225555991fdSmrgEach client has associated with it a list of properties.  A property
226555991fdSmrgset by one client is not visible to any other client.  These
227555991fdSmrgproperties are used for the client to inform the SM of the client's
228555991fdSmrgcurrent state.  When a client initially connects to the SM, there are
229555991fdSmrgno properties set.
230555991fdSmrg  </para>
231555991fdSmrg</chapter>
232555991fdSmrg
2333c15da26Smrg<chapter id='Data_Types'>
234555991fdSmrg  <title>Data Types</title>
235555991fdSmrg
236555991fdSmrg  <para>
237555991fdSmrgXSMP messages contain several types of data.  Both the SM and the
238555991fdSmrgclient always send messages in their native byte order.  Thus, both
239555991fdSmrgsides may need to byte-swap the messages received.  The need to do
240555991fdSmrgbyte-swapping is determined at run-time by the <acronym>ICE</acronym> protocol.
241555991fdSmrg  </para>
242555991fdSmrg
243555991fdSmrg  <para>
244555991fdSmrgIf an invalid value is specified for a field of any of the enumerated
245555991fdSmrgtypes, a <errorname>BadValue</errorname> error message must be sent by
246555991fdSmrgthe receiver of the message to the sender of the message.
247555991fdSmrg  </para>
248555991fdSmrg
2493c15da26Smrg<informaltable frame='topbot'>
2503c15da26Smrg  <tgroup cols='2' align='left' colsep='0' rowsep='0'>
2513c15da26Smrg    <colspec colname='c1' colwidth='1.0*'/>
2523c15da26Smrg    <colspec colname='c2' colwidth='3.0*'/>
253555991fdSmrg    <thead>
2543c15da26Smrg      <row rowsep='1'>
255555991fdSmrg        <entry>Type Name</entry>
256555991fdSmrg        <entry>Description</entry>
257555991fdSmrg      </row>
258555991fdSmrg    </thead>
259555991fdSmrg    <tbody>
260555991fdSmrg      <row>
261555991fdSmrg        <entry>BOOL</entry>
262555991fdSmrg        <entry><para><constant>False</constant> or <constant>True</constant></para></entry>
263555991fdSmrg      </row>
264555991fdSmrg      <row>
265555991fdSmrg        <entry>INTERACT_STYLE</entry>
266555991fdSmrg        <entry><function>None</function> <function>Errors</function> or <function>Any</function></entry>
267555991fdSmrg      </row>
268555991fdSmrg      <row>
269555991fdSmrg        <entry>DIALOG_TYPE</entry>
270555991fdSmrg        <entry><function>Error</function> or <function>Normal</function></entry>
271555991fdSmrg      </row>
272555991fdSmrg      <row>
273555991fdSmrg        <entry>SAVE_TYPE</entry>
274555991fdSmrg        <entry><function>Global</function> <function>Local</function> or <function>Both</function></entry>
275555991fdSmrg      </row>
276555991fdSmrg      <row>
277555991fdSmrg        <entry>CARD8</entry>
278555991fdSmrg        <entry>a one-byte unsigned integer</entry>
279555991fdSmrg      </row>
280555991fdSmrg      <row>
281555991fdSmrg        <entry>CARD16</entry>
282555991fdSmrg        <entry>a two-byte unsigned integer</entry>
283555991fdSmrg      </row>
284555991fdSmrg      <row>
285555991fdSmrg        <entry>CARD32</entry>
286555991fdSmrg        <entry>a four-byte unsigned integer</entry>
287555991fdSmrg      </row>
288555991fdSmrg      <row>
289555991fdSmrg        <entry>ARRAY8</entry>
290555991fdSmrg        <entry>a sequence of CARD8s</entry>
291555991fdSmrg      </row>
292555991fdSmrg      <row>
293555991fdSmrg        <entry>LISTofARRAY8</entry>
294555991fdSmrg        <entry>a sequence of ARRAY8s</entry>
295555991fdSmrg      </row>
296555991fdSmrg      <row>
297555991fdSmrg        <entry>PROPERTY</entry>
298555991fdSmrg        <entry>a property name (an ARRAY8), a type name, and a value of that type</entry>
299555991fdSmrg      </row>
300555991fdSmrg      <row>
301555991fdSmrg        <entry>LISTofPROPERTY</entry>
302555991fdSmrg        <entry>a counted collection of &shy;PROPERTYs.</entry>
303555991fdSmrg      </row>
304555991fdSmrg    </tbody>
305555991fdSmrg  </tgroup>
306555991fdSmrg</informaltable>
307555991fdSmrg
308555991fdSmrg</chapter>
309555991fdSmrg
3103c15da26Smrg<chapter id='Protocol_Setup_and_Message_Format'>
311555991fdSmrg  <title>Protocol Setup and Message Format</title>
312555991fdSmrg
313555991fdSmrg  <para>
314555991fdSmrgTo start the XSMP protocol, the client sends the server an
315555991fdSmrg<acronym>ICE</acronym> <function>ProtocolSetup</function> message.  All XSMP messages are
316555991fdSmrgin the standard <acronym>ICE</acronym> message format.  The message's major opcode is
317555991fdSmrgassigned to XSMP by <acronym>ICE</acronym> at run-time.  The different parties (client
318555991fdSmrgand SM) may be assigned different major opcodes for XSMP.  Once
319555991fdSmrgassigned, all XSMP messages issued by this party will use the same
320555991fdSmrgmajor opcode.  The message's minor opcode specifies which protocol
321555991fdSmrgmessage this message contains.
322555991fdSmrg  </para>
323555991fdSmrg</chapter>
324555991fdSmrg
3253c15da26Smrg<chapter id='Client_Identification_String'>
326555991fdSmrg  <title>Client Identification String</title>
327555991fdSmrg  <para>
328555991fdSmrgA client ID is a string of XPCS characters encoded in ISO Latin 1 (ISO
329555991fdSmrg8859-1).  No null characters are allowed in this string.  The client
330555991fdSmrgID string is used in the <function>Register&shy;Client</function>
331555991fdSmrgand <function>Register&shy;ClientReply</function> messages.
332555991fdSmrg  </para>
333555991fdSmrg
334555991fdSmrg  <para>
335555991fdSmrgClient IDs consist of the pieces described below.  The ID is formed by
336555991fdSmrgconcatenating the pieces in sequence, without separator characters.
337555991fdSmrgAll pieces are padded on the left with '<literal>0</literal>'
338555991fdSmrgcharacters so as to fill the specified length.  Decimal numbers are
339555991fdSmrgencoded using the characters '<literal>0</literal>' through
340555991fdSmrg'<literal>9</literal>', and hexadecimal numbers using the characters
341555991fdSmrg'<literal>0</literal>' through '<literal>9</literal>' and
342555991fdSmrg'<literal>A</literal>' through '<literal>F</literal>'.
343555991fdSmrg  </para>
344555991fdSmrg
345555991fdSmrg  <itemizedlist mark='bullet'>
346555991fdSmrg     <listitem><para>
347555991fdSmrgVersion.  This is currently the character '<literal>1</literal>'.
348555991fdSmrg     </para></listitem>
349555991fdSmrg     <listitem>
350555991fdSmrg       <para>Address type and address.  The address type will be one of
351555991fdSmrg<literallayout remap='DS'>
352555991fdSmrg     '<literal>1</literal>'     a 4-byte IPv4 address encoded as 8 hexadecimal digits
353555991fdSmrg     '<literal>2</literal>'     a 6-byte DECNET address encoded as 12 hexadecimal digits
354555991fdSmrg     '<literal>6</literal>'     a 16-byte IPv6 address encoded as 32 hexadecimal digits
355555991fdSmrg</literallayout>
356555991fdSmrg       </para>
357555991fdSmrg
358555991fdSmrg       <para>
359555991fdSmrgThe address is the one of the network addresses of the machine where
360555991fdSmrgthe session manager (not the client) is running.  For example, the IP
361555991fdSmrgaddress 198.112.45.11 would be encoded as the string
362555991fdSmrg"<literal>QC6702D0B</literal>".
363555991fdSmrg       </para>
364555991fdSmrg     </listitem>
365555991fdSmrg     <listitem><para>
366555991fdSmrg	 Time stamp.  A 13-digit decimal number specifying
367555991fdSmrg	 the number of milliseconds since 00:00:00 UTC, January 1, 1970.
368555991fdSmrg     </para></listitem>
369555991fdSmrg     <listitem>
370555991fdSmrg       <para>
371555991fdSmrg	Process-ID type and process-ID.  The process-ID type will be one of
372555991fdSmrg<literallayout remap='DS'>
373555991fdSmrg     '<literal>1</literal>'	a <acronym>POSIX</acronym> process-ID encoded as a 10-digit decimal number.
374555991fdSmrg</literallayout>
375555991fdSmrg       </para>
376555991fdSmrg       <para>
377555991fdSmrgThe process-ID is the process-ID of the session manager, not of a client.
378555991fdSmrg       </para>
379555991fdSmrg     </listitem>
380555991fdSmrg     <listitem>
381555991fdSmrg       <para>
382555991fdSmrgSequence number.  This is a four-digit decimal number.  It is
383555991fdSmrgincremented every time the session manager creates an ID.  After
384555991fdSmrgreaching "Q9999" it wraps to "Q0000".
385555991fdSmrg       </para>
386555991fdSmrg       <note><title>Rationale</title>
387555991fdSmrg	 <para>
388555991fdSmrgOnce a client ID has been assigned to the client, the client keeps
389555991fdSmrgthis ID indefinitely.  If the client is terminated and restarted, it
390555991fdSmrgwill be reassigned the same ID.  It is desirable to be able to pass
391555991fdSmrgclient IDs around from machine to machine, from user to user, and from
392555991fdSmrgsession manager to session manager, while retaining the identity of
393555991fdSmrgthe client.  This, combined with the indefinite persistence of client
394555991fdSmrgIDs, means that client IDs need to be globally unique.  The
395555991fdSmrgconstruction specified above will ensure that any client ID created by
396555991fdSmrgany user, session manager, and machine will be different from any other.
397555991fdSmrg	 </para>
398555991fdSmrg       </note>
399555991fdSmrg     </listitem>
400555991fdSmrg  </itemizedlist>
401555991fdSmrg</chapter>
402555991fdSmrg
4033c15da26Smrg<chapter id='Protocol'>
404555991fdSmrg  <title>Protocol</title>
405555991fdSmrg  <para>
406555991fdSmrgThe protocol consists of a sequence of messages as described below.
407555991fdSmrgEach message type is specified by an <acronym>ICE</acronym> minor opcode.  A given
408555991fdSmrgmessage type is sent either from a client to the session manager or
409555991fdSmrgfrom the session manager to a client; the appropriate direction is
410555991fdSmrglisted with each message's description.  For each message type, the
411555991fdSmrgset of valid responses and possible error messages are listed.  The
412555991fdSmrg<acronym>ICE</acronym> severity is given in parentheses following each error class.
413555991fdSmrg  </para>
414555991fdSmrg
415555991fdSmrg  <synopsis>
416555991fdSmrg<function>RegisterClient</function> [Client &rarr; SM]
417555991fdSmrg
418555991fdSmrg  <parameter>previous-ID</parameter>: ARRAY8
419555991fdSmrg
420555991fdSmrg  Valid Responses: <function>RegisterClientReply</function>
421555991fdSmrg
422555991fdSmrg  Possible Errors: <errorname>BadValue</errorname> (<symbol role='Pn'>CanContinue</symbol>)
423555991fdSmrg  </synopsis>
424555991fdSmrg
425555991fdSmrg  <para>
426555991fdSmrgThe client must send this message to the SM to register the client's
427555991fdSmrgexistence.  If a client is being restarted from a previous session,
428555991fdSmrgthe <parameter>previous-ID</parameter> field must contain the client
4293c15da26SmrgID from the previous session.  For new clients,
430555991fdSmrg<parameter>previous-ID</parameter> should be of zero length.
431555991fdSmrg  </para>
432555991fdSmrg
433555991fdSmrg  <para>
4343c15da26SmrgIf <parameter>previous-ID</parameter> is not valid,
435555991fdSmrgthe SM will send a <errorname>BadValue</errorname>
436555991fdSmrgerror message to the client.  At this point the SM reverts to the
437555991fdSmrgregister state and waits for another <function>RegisterClient</function>
438555991fdSmrgThe client should then send a <function>RegisterClient</function> with a
439555991fdSmrgnull <parameter>previous-ID</parameter> field.
440555991fdSmrg  </para>
441555991fdSmrg
442555991fdSmrg  <synopsis>
443555991fdSmrg<function>RegisterClientReply</function> [Client &larr; SM]
444555991fdSmrg
445555991fdSmrg  <parameter>client-ID</parameter>: <type>ARRAY8</type>
446555991fdSmrg  </synopsis>
447555991fdSmrg
448555991fdSmrg  <para>
449555991fdSmrgThe <parameter>client-ID</parameter> specifies a unique identification
4503c15da26Smrgfor this client.  If the client had specified an ID in the
4513c15da26Smrg<parameter>previous-ID</parameter> field of the
4523c15da26Smrg<function>RegisterClient</function> message,
453555991fdSmrg<parameter>client-ID</parameter> will be identical to the previously
454555991fdSmrgspecified ID.  If <parameter>previous-ID</parameter> was null,
455555991fdSmrg<parameter>client-ID</parameter> will be a unique ID freshly generated
456555991fdSmrgby the SM.  The <parameter>client-ID</parameter> format is specified in
4573c15da26Smrg<link linkend='Client_Identification_String'>section 6</link>.
458555991fdSmrg  </para>
459555991fdSmrg
460555991fdSmrg  <para>
461555991fdSmrgIf the client didn't supply a <parameter>previous-ID</parameter> field to
462555991fdSmrgthe <function>Register&shy;Client</function> message, the SM must send
463555991fdSmrga <function>SaveYourself</function> message with type = Local,
464555991fdSmrgshutdown = False, interact-style = None, and fast = False immediately
465555991fdSmrgafter the <function>RegisterClientReply</function> The client should
466555991fdSmrgrespond to this like any other <function>Save&shy;Yourself</function>
467555991fdSmrgmessage.
468555991fdSmrg  </para>
469555991fdSmrg
470555991fdSmrg  <synopsis>
471555991fdSmrg<function>SaveYourself</function> [Client &larr; SM]
472555991fdSmrg
473555991fdSmrg  <parameter>type</parameter>: <type>SAVE_TYPE</type>
474555991fdSmrg  <parameter>shutdown</parameter>: <type>BOOL</type>
475555991fdSmrg  <parameter>interact-style</parameter>: <type>INTERACT_STYLE</type>
476555991fdSmrg  <parameter>fast</parameter>: <type>BOOL</type>
477555991fdSmrg
478555991fdSmrg  Valid Responses:
479555991fdSmrg    <function>SetProperties</function>
480555991fdSmrg    <function>DeleteProperties</function>
481555991fdSmrg    <function>GetProperties</function>
482555991fdSmrg    <function>SaveYourselfDone</function>
483555991fdSmrg    <function>SaveYourselfPhase2Request</function>
484555991fdSmrg    <function>InteractRequest</function>
485555991fdSmrg  </synopsis>
486555991fdSmrg
487555991fdSmrg  <para>
488555991fdSmrgThe SM sends this message to a client to ask it to save its state.
489555991fdSmrgThe client writes a state file, if necessary, and, if necessary,
490555991fdSmrguses <function>SetProperties</function> to inform the SM of how to
491555991fdSmrgrestart it and how to discard the saved state.  During this process it
492555991fdSmrgcan, if allowed by <parameter>interact-style</parameter>, request permission
493555991fdSmrgto interact with
494555991fdSmrgthe user by sending an <function>InteractRequest</function> message.
495555991fdSmrgAfter the state has been saved, or if it cannot be successfully saved,
496555991fdSmrgand the properties are appropriately set, the client sends
497555991fdSmrga <function>SaveYourselfDone</function> message.  If the client wants
498555991fdSmrgto save additional information after all the other clients have
499555991fdSmrgfinished changing their own state, the client should
500555991fdSmrgsend <function>SaveYourselfPhase2Request</function> instead
501555991fdSmrgof <function>SaveYourselfDone</function> The client must then freeze
502555991fdSmrginteraction with the user and wait until it receives
503555991fdSmrga <function>SaveComplete</function> <function>Die</function> or
504555991fdSmrga <function>ShutdownCancelled</function> message.
505555991fdSmrg  </para>
506555991fdSmrg
507555991fdSmrg  <para>
508555991fdSmrgIf <parameter>interact-style</parameter> is <function>None</function> the
509555991fdSmrgclient must not interact with the user while saving state.  If the
510555991fdSmrg<parameter>interact-style</parameter>
511555991fdSmrgis <function>Errors</function> the client may interact with the user
512555991fdSmrgonly if an error condition arises.  If <parameter>interact-style</parameter>
513555991fdSmrgis <function>Any</function> then the client may interact with the user
514555991fdSmrgfor any purpose.  This is done by sending
515555991fdSmrgan <function>Interact&shy;Request</function> message.  The SM will
516555991fdSmrgsend an <function>Interact</function> message to each client that sent
517555991fdSmrgan <function>Interact&shy;Request</function> The client must postpone
518555991fdSmrgall interaction until it gets the <function>Interact</function>
519555991fdSmrgmessage.  When the client is done interacting it should send the SM
520555991fdSmrgan <function>Interact&shy;Done</function> message.
521555991fdSmrgThe <function>Interact&shy;Request</function> message can be sent any
522555991fdSmrgtime after a <function>Save&shy;Yourself</function> and before
523555991fdSmrga <function>Save&shy;Yourself&shy;Done</function>
524555991fdSmrg  </para>
525555991fdSmrg
526555991fdSmrg  <para>
527555991fdSmrgUnusual circumstances may dictate multiple interactions.  The client
528555991fdSmrgmay initiate as many <function>Interact&shy;Request</function>
529555991fdSmrg- <function>Interact</function> - <function>InteractDone</function>
530555991fdSmrgsequences as it needs before it sends <function>SaveYourselfDone</function>
531555991fdSmrg  </para>
532555991fdSmrg
533555991fdSmrg  <para>
534555991fdSmrgWhen a client receives <function>Save&shy;Yourself</function> and has
535555991fdSmrgnot yet responded <function>Save&shy;Yourself&shy;Done</function> to a
536555991fdSmrgprevious <function>Save&shy;Yourself</function> it must send
537555991fdSmrga <function>Save&shy;Yourself&shy;Done</function> and may then begin
538555991fdSmrgresponding as appropriate to the newly received
539555991fdSmrg<function>Save&shy;Yourself</function>
540555991fdSmrg</para>
541555991fdSmrg
542555991fdSmrg  <para>
543555991fdSmrgThe <parameter>type</parameter> field specifies the type of information that
544555991fdSmrgshould be saved: <function>Global</function> <function>Local</function>
545555991fdSmrgor <function>Both</function> The <function>Local</function> type
546555991fdSmrgindicates that the application must update the properties to reflect
547555991fdSmrgits current state, send
548555991fdSmrga <function>Save&shy;Yourself&shy;Done</function> and continue.
549555991fdSmrgSpecifically it should save enough information to restore the state as
550555991fdSmrgseen by the user of this client.  It should not affect the state as
551555991fdSmrgseen by other users.  The <function>Global</function> type indicates
552555991fdSmrgthat the user wants the client to commit all of its data to permanent,
553555991fdSmrgglobally-accessible storage.  <function>Both</function> indicates that
554555991fdSmrgthe client should do both of these.  If <function>Both</function> is
555555991fdSmrgspecified, the client should first commit the data to permanent
556555991fdSmrgstorage before updating its SM properties.
557555991fdSmrg  </para>
558555991fdSmrg
559555991fdSmrg  <note><title>Examples</title>
560555991fdSmrg    <para>
561555991fdSmrgIf a word processor was sent a <function>SaveYourself</function> with
562555991fdSmrga type of <function>Local</function> it could create a temporary file
563555991fdSmrgthat included the current contents of the file, the location of the
564555991fdSmrgcursor, and other aspects of the current editing session.  It would
565555991fdSmrgthen update its <function>Restart&shy;Command</function> property with
566555991fdSmrgenough information to find the temporary file, and
567555991fdSmrgits <function>Discard&shy;Command</function> with enough information
568555991fdSmrgto remove it.
569555991fdSmrg    </para>
570555991fdSmrg
571555991fdSmrg    <para>
572555991fdSmrgIf a word processor was sent a <function>SaveYourself</function> with
573555991fdSmrga type of <function>Global</function> it would simply save the
574555991fdSmrgcurrently edited file.
575555991fdSmrg    </para>
576555991fdSmrg
577555991fdSmrg    <para>
578555991fdSmrgIf a word processor was sent a <function>SaveYourself</function> with
579555991fdSmrga type of <function>Both</function> it would first save the currently
580555991fdSmrgedited file.  It would then create a temporary file with information
581555991fdSmrgsuch as the current position of the cursor and what file is being
582555991fdSmrgedited.  It would then update
583555991fdSmrgits <function>Restart&shy;Command</function> property with enough
584555991fdSmrginformation to find the temporary file, and
585555991fdSmrgits <function>Discard&shy;Command</function> with enough information
586555991fdSmrgto remove it.
587555991fdSmrg    </para>
588555991fdSmrg
589555991fdSmrg    <para>
590555991fdSmrgOnce the SM has send <function>SaveYourself</function> to a client, it
591555991fdSmrgcan't send another <function>SaveYourself</function> to that client until
592555991fdSmrgthe client either responds with a <function>SaveYourselfDone</function> or
593555991fdSmrgthe SM sends a <function>ShutdownCancelled</function>
594555991fdSmrg    </para>
595555991fdSmrg  </note>
596555991fdSmrg
597555991fdSmrg  <note><title>Advice to Implementors</title>
598555991fdSmrg    <para>
599555991fdSmrgIf the client stores local any state in a file or similar "external"
600555991fdSmrgstorage, it must create a distinct copy in response to
601555991fdSmrgeach <function>SaveYourself</function> message.
602555991fdSmrgIt <emphasis remap='I'>must not</emphasis> simply refer to a previous
603555991fdSmrgcopy, because the SM may discard that previous saved state using
604555991fdSmrga <function>DiscardCommand</function> without knowing that it is
605555991fdSmrgneeded for the new checkpoint.
606555991fdSmrg    </para>
607555991fdSmrg  </note>
608555991fdSmrg
609555991fdSmrg  <para>
610555991fdSmrgThe <parameter>shutdown</parameter> field specifies whether the system is
611555991fdSmrgbeing shut down.
612555991fdSmrg  </para>
613555991fdSmrg
614555991fdSmrg  <note><title>Rationale</title>
615555991fdSmrg    <para>
616555991fdSmrgThe interaction may be different depending on whether or not shutdown is set.
617555991fdSmrg    </para>
618555991fdSmrg  </note>
619555991fdSmrg
620555991fdSmrg  <para>
621555991fdSmrgThe client must save and then must prevent interaction until it
622555991fdSmrgreceives a <function>SaveComplete</function> <function>Die</function>
623555991fdSmrgor a <function>Shutdown&shy;Cancelled</function> because anything the
624555991fdSmrguser does after the save will be lost.
625555991fdSmrg  </para>
626555991fdSmrg
627555991fdSmrg  <para>
628555991fdSmrgThe <parameter>fast</parameter> field specifies whether or not the client
629555991fdSmrgshould save its state as quickly as possible.  For example, if the SM knows
630555991fdSmrgthat power is about to fail, it should set the <parameter>fast</parameter>
631555991fdSmrgfield to <constant>True</constant>.
632555991fdSmrg  </para>
633555991fdSmrg
634555991fdSmrg  <synopsis>
635555991fdSmrg<function>SaveYourselfPhase2</function> [Client &rarr; SM]
636555991fdSmrg
637555991fdSmrg  Valid Responses:
638555991fdSmrg    <function>SetProperties</function>
639555991fdSmrg    <function>DeleteProperties</function>
640555991fdSmrg    <function>GetProperties</function>
641555991fdSmrg    <function>SaveYourselfDone</function>
642555991fdSmrg    <function>InteractRequest</function>
643555991fdSmrg  </synopsis>
644555991fdSmrg
645555991fdSmrg  <para>
646555991fdSmrgThe SM sends this message to a client that has previously sent
647555991fdSmrga <function>SaveYourselfPhase2Request</function> message.  This
648555991fdSmrgmessage informs the client that all other clients are in a fixed state
649555991fdSmrgand this client can save state that is associated with other clients.
650555991fdSmrg  </para>
651555991fdSmrg
652555991fdSmrg  <note><title>Rationale</title>
653555991fdSmrg    <para>
654555991fdSmrgClients that manager other clients (window managers, workspace
655555991fdSmrgmanagers, etc) need to know when all clients they are managing are
656555991fdSmrgidle, so that the manager can save state related to each of the
657555991fdSmrgclients without being concerned with that state changing.
658555991fdSmrg    </para>
659555991fdSmrg  </note>
660555991fdSmrg  <para>
661555991fdSmrgThe client writes a state file, if necessary, and, if necessary,
662555991fdSmrguses <function>SetProperties</function> to inform the SM of how to
663555991fdSmrgrestart it and how to discard the saved state.  During this process it
664555991fdSmrgcan request permission to interact with the user by sending
665555991fdSmrgan <function>InteractRequest</function> message.  This should only be
666555991fdSmrgdone if an error occurs that requires user interaction to resolve.
667555991fdSmrgAfter the state has been saved, or if it cannot be successfully saved,
668555991fdSmrgand the properties are appropriately set, the client sends
669555991fdSmrga <function>SaveYourselfDone</function> message.
670555991fdSmrg  </para>
671555991fdSmrg
672555991fdSmrg  <synopsis>
673555991fdSmrg<function>SaveYourselfRequest</function> [Client &rarr; SM]
674555991fdSmrg
675555991fdSmrg  <parameter>type</parameter>: <type>SAVE_TYPE</type>
676555991fdSmrg  <parameter>shutdown</parameter>: <type>BOOL</type>
677555991fdSmrg  <parameter>interact-style</parameter>: <type>INTERACT_STYLE</type>
678555991fdSmrg  <parameter>fast</parameter>: <type>BOOL</type>
679555991fdSmrg  <parameter>global</parameter>: <type>BOOL</type>
680555991fdSmrg
681555991fdSmrg  Valid Responses: <function>SaveYourself</function>
682555991fdSmrg  </synopsis>
683555991fdSmrg
684555991fdSmrg  <para>
685555991fdSmrgAn application sends this to the SM to request a checkpoint.  When the
686555991fdSmrgSM receives this request it may generate a <function>SaveYourself</function>
687555991fdSmrgmessage in response and it may leave the fields intact.
688555991fdSmrg  </para>
689555991fdSmrg
690555991fdSmrg  <note><title>Example</title> <para>
691555991fdSmrgA vendor of a <acronym>UPS</acronym> (Uninterruptible Power Supply)
692555991fdSmrgmight include an SM client that would monitor the status of
693555991fdSmrgthe <acronym>UPS</acronym> and generate a fast shutdown if the power
694555991fdSmrgis about to be lost.
695555991fdSmrg  </para></note>
696555991fdSmrg
697555991fdSmrg  <para>
698555991fdSmrgIf <parameter>global</parameter> is set to <constant>True</constant> then the
699555991fdSmrgresulting <function>SaveYourself</function> should be sent to all
700555991fdSmrgapplications.  If <parameter>global</parameter> is set to
701555991fdSmrg<constant>False</constant> then the
702555991fdSmrgresulting <function>SaveYourself</function> should be sent to the
703555991fdSmrgapplication that sent the <function>Save&shy;Yourself&shy;Request</function>
704555991fdSmrg  </para>
705555991fdSmrg
706555991fdSmrg  <synopsis>
707555991fdSmrg<function>InteractRequest</function> [Client &rarr; SM]
708555991fdSmrg
709555991fdSmrg  <parameter>dialog-type</parameter>: <type>DIALOG_TYPE</type>
710555991fdSmrg
711555991fdSmrg  Valid Responses: <function>Interact</function> <function>ShutdownCancelled</function>
712555991fdSmrg
713555991fdSmrg  Possible Errors: <errorname>BadState</errorname> (<symbol role='Pn'>CanContinue</symbol>)
714555991fdSmrg  </synopsis>
715555991fdSmrg
716555991fdSmrg  <para>
717555991fdSmrgDuring a checkpoint or session-save operation, only one client at a
718555991fdSmrgtime might be granted the privilege of interacting with the user.
719555991fdSmrgThe <function>InteractRequest</function> message causes the SM to emit
720555991fdSmrgan <function>Interact</function> message at some later time if the
721555991fdSmrgshutdown is not cancelled by another client first.
722555991fdSmrg  </para>
723555991fdSmrg
724555991fdSmrg  <para>
725555991fdSmrgThe <parameter>dialog-type</parameter> field specifies either
726555991fdSmrg<function>Errors</function> indicating that the client wants to start an
727555991fdSmrgerror dialog or <function>Normal</function> meaning the client wishes
728555991fdSmrgto start a non-error dialog.
729555991fdSmrg  </para>
730555991fdSmrg
731555991fdSmrg  <synopsis>
732555991fdSmrg<function>Interact</function> [Client &larr; SM]
733555991fdSmrg
734555991fdSmrg  Valid Responses: <function>InteractDone</function>
735555991fdSmrg  </synopsis>
736555991fdSmrg
737555991fdSmrg  <para>
738555991fdSmrgThis message grants the client the privilege of interacting with the
739555991fdSmrguser.  When the client is done interacting with the user it must send
740555991fdSmrgan <function>InteractDone</function> message to the SM unless a
741555991fdSmrgshutdown cancel is received.
742555991fdSmrg  </para>
743555991fdSmrg  <note><title>Advice to Implementors</title>
744555991fdSmrg    <para>If a client receives a ShutdownCancelled
745555991fdSmrgafter receiving an <function>Interact</function> message, but before
746555991fdSmrgsending a <function>InteractDone</function> the client should abort
747555991fdSmrgthe interaction and send a <function>SaveYourselfDone</function>
748555991fdSmrg  </para></note>
749555991fdSmrg
750555991fdSmrg  <synopsis>
751555991fdSmrg<function>InteractDone</function> [Client &rarr; SM]
752555991fdSmrg
753555991fdSmrg  <parameter>cancel-shutdown</parameter>: <type>BOOL</type>
754555991fdSmrg
755555991fdSmrg  Valid Responses: <function>ShutdownCancelled</function>
756555991fdSmrg  </synopsis>
757555991fdSmrg
758555991fdSmrg  <para>
759555991fdSmrgThis message is used by a client to notify the SM that it is done interacting.
760555991fdSmrg  </para>
761555991fdSmrg
762555991fdSmrg  <para>
763555991fdSmrgSetting the <parameter>cancel-shutdown</parameter> field to <constant>True</constant>
764555991fdSmrgindicates that the user has requested that the entire shutdown be
765555991fdSmrgcancelled.  <parameter>Cancel-shutdown</parameter> may only be <constant>True</constant> if
766555991fdSmrgthe corresponding <function>SaveYourself</function> message
767555991fdSmrgspecified <constant>True</constant> for the shutdown field
768555991fdSmrgand <function>Any</function> or <function>Errors</function> for the
769555991fdSmrg<parameter>interact-style</parameter> field.  Otherwise,
770555991fdSmrg<parameter>cancel-shutdown</parameter> must be <constant>False</constant>.
771555991fdSmrg  </para>
772555991fdSmrg
773555991fdSmrg  <synopsis>
774555991fdSmrg<function>SaveYourselfDone</function> [Client &rarr; SM]
775555991fdSmrg
776555991fdSmrg  <parameter>success</parameter>: <type>BOOL</type>
777555991fdSmrg
778555991fdSmrg  Valid Responses:
779555991fdSmrg    <function>SaveComplete</function>
780555991fdSmrg    <function>Die</function>
781555991fdSmrg    <function>ShutdownCancelled</function>
7823c15da26Smrg
783555991fdSmrg  </synopsis>
784555991fdSmrg
785555991fdSmrg  <para>
786555991fdSmrgThis message is sent by a client to indicate that all of the
787555991fdSmrgproperties representing its state have been updated.  After
788555991fdSmrgsending <function>SaveYourselfDone</function> the client must wait for
789555991fdSmrga <function>SaveComplete</function> <function>ShutdownCancelled</function>
790555991fdSmrgor <function>Die</function> message before changing its state.  If
791555991fdSmrgthe <function>SaveYourself</function> operation was successful, then
792555991fdSmrgthe client should set the <parameter>success</parameter> field to
793555991fdSmrg<constant>True</constant> otherwise the client should set it to
794555991fdSmrg<constant>False</constant>.
795555991fdSmrg  </para>
796555991fdSmrg
797555991fdSmrg  <note><title>Example</title>
798555991fdSmrg    <para>
799555991fdSmrgIf a client tries to save its state and runs out of disk space, it
800555991fdSmrgshould return <constant>False</constant> in the <parameter>success</parameter>
801555991fdSmrgfield of the <function>SaveYourselfDone</function> message.
802555991fdSmrg    </para>
803555991fdSmrg  </note>
804555991fdSmrg
805555991fdSmrg  <synopsis>
806555991fdSmrg<function>SaveYourselfPhase2Request</function> [Client &rarr; SM]
807555991fdSmrg
808555991fdSmrg  Valid Responses:
809555991fdSmrg    <function>ShutdownCancelled</function>
810555991fdSmrg    <function>SaveYourselfPhase2</function>
8113c15da26Smrg
812555991fdSmrg  </synopsis>
813555991fdSmrg
814555991fdSmrg  <para>
815555991fdSmrgThis message is sent by a client to indicate that it needs to be informed
816555991fdSmrgwhen all the other clients are quiescent, so it can continue its state.
817555991fdSmrg  </para>
818555991fdSmrg
819555991fdSmrg  <synopsis>
820555991fdSmrg<function>Die</function> [Client &larr; SM]
821555991fdSmrg
822555991fdSmrg  Valid Responses: <function>ConnectionClosed</function>
823555991fdSmrg  </synopsis>
824555991fdSmrg
825555991fdSmrg  <para>
826555991fdSmrgWhen the SM wants a client to die it sends a <function>Die</function>
827555991fdSmrgmessage.  Before the client dies it responds by sending
828555991fdSmrga <function>ConnectionClosed</function> message and may then close its
829555991fdSmrgconnection to the SM at any time.
830555991fdSmrg  </para>
831555991fdSmrg
832555991fdSmrg  <synopsis>
833555991fdSmrg<function>SaveComplete</function> [Client &rarr; SM]
834555991fdSmrg
835555991fdSmrg  Valid Responses:
836555991fdSmrg  </synopsis>
837555991fdSmrg
838555991fdSmrg  <para>
839555991fdSmrgWhen the SM is done with a checkpoint, it will send each of the
840555991fdSmrgclients a <function>SaveComplete</function> message.  The client is
841555991fdSmrgthen free to change its state.
842555991fdSmrg  </para>
843555991fdSmrg
844555991fdSmrg  <synopsis>
845555991fdSmrg<function>ShutdownCancelled</function> [Client &larr; SM]
846555991fdSmrg  </synopsis>
847555991fdSmrg
848555991fdSmrg  <para>
849555991fdSmrgThe shutdown currently in process has been aborted.  The client can
850555991fdSmrgnow continue as if the shutdown had never happened.  If the client has
851555991fdSmrgnot sent <function>SaveYourselfDone</function> yet, the client can
852555991fdSmrgeither abort the save and send <function>SaveYourselfDone</function>
853555991fdSmrgwith the success field set to <constant>False</constant> or it can
854555991fdSmrgcontinue with the save and send a <function>SaveYourselfDone</function>
855555991fdSmrgwith the success field set to reflect the outcome of the save.
856555991fdSmrg  </para>
857555991fdSmrg
858555991fdSmrg  <synopsis>
859555991fdSmrg<function>ConnectionClosed</function> [Client &rarr; SM]
860555991fdSmrg
861555991fdSmrg  <parameter>reason</parameter>: <type>LISTofARRAY8</type>
862555991fdSmrg  </synopsis>
863555991fdSmrg
864555991fdSmrg  <para>
865555991fdSmrgSpecifies that the client has decided to terminate.  It should be
866555991fdSmrgimmediately followed by closing the connection.
867555991fdSmrg  </para>
868555991fdSmrg
869555991fdSmrg  <para>
870555991fdSmrgThe <parameter>reason</parameter> field specifies why the client is resigning
871555991fdSmrgfrom the session.  It is encoded as an array of Compound Text strings.  If the
872555991fdSmrgresignation is expected by the user, there will typically be zero
873555991fdSmrgARRAY8s here.  But if the client encountered an unexpected fatal
874555991fdSmrgerror, the error message (which might otherwise be printed on stderr
875555991fdSmrgon a <acronym>POSIX</acronym> system) should be forwarded to the SM here, one ARRAY8 per
876555991fdSmrgline of the message.  It is the responsibility of the SM to display
877555991fdSmrgthis reason to the user.
878555991fdSmrg  </para>
879555991fdSmrg
880555991fdSmrg  <para>
881555991fdSmrgAfter sending this message, the client must not send any additional
882555991fdSmrgXSMP messages to the SM.
883555991fdSmrg  </para>
884555991fdSmrg  <note><title>Advice to Implementors</title><para>
885555991fdSmrgIf additional messages are received, they should be discarded.
886555991fdSmrg  </para></note>
887555991fdSmrg  <note><title>Rationale</title><para>
888555991fdSmrgThe reason for sending the <function>ConnectionClosed</function>
889555991fdSmrgmessage before actually closing the connections is that some transport
890555991fdSmrgprotocols will not provide immediate notification of connection
891555991fdSmrgclosure.
892555991fdSmrg  </para></note>
893555991fdSmrg
894555991fdSmrg  <synopsis>
895555991fdSmrg<function>SetProperties</function> [Client &rarr; SM]
896555991fdSmrg
897555991fdSmrg  <parameter>properties</parameter>: <type>LISTofPROPERTY</type>
898555991fdSmrg  </synopsis>
899555991fdSmrg
900555991fdSmrg  <para>
901555991fdSmrgSets the specified <parameter>properties</parameter> to the specified values.
902555991fdSmrgExisting
903555991fdSmrgproperties not specified in the <function>Set&shy;Properties</function>
904555991fdSmrgmessage are unaffected. Some properties have predefined semantics.
9053c15da26SmrgSee <link linkend='Predefined_Properties'>section 11, 
906555991fdSmrg&ldquo;Predefined Properties.&rdquo;</link>
907555991fdSmrg  </para>
908555991fdSmrg
909555991fdSmrg  <para>
910555991fdSmrgThe protocol specification recommends that property names used for
911555991fdSmrgproperties not defined by the standard should begin with an
912555991fdSmrgunderscore.  To prevent conflicts among organizations, additional
913555991fdSmrgprefixes should be chosen (for example, _KPC_FAST_SAVE_OPTION).  The
914555991fdSmrgorganizational prefixes should be registered with the X Registry.  The
915555991fdSmrgXSMP reserves all property names not beginning with an underscore for
916555991fdSmrgfuture use.
917555991fdSmrg  </para>
918555991fdSmrg
919555991fdSmrg  <synopsis>
920555991fdSmrg<function>DeleteProperties</function> [Client &rarr; SM]
921555991fdSmrg
922555991fdSmrg  <parameter>property-names</parameter>: <type>LISTofARRAY8</type>
923555991fdSmrg  </synopsis>
924555991fdSmrg
925555991fdSmrg  <para>Removes the named properties.</para>
926555991fdSmrg
927555991fdSmrg  <synopsis>
928555991fdSmrg<function>GetProperties</function> [Client &rarr; SM]
929555991fdSmrg
930555991fdSmrg  Valid Responses: <function>GetPropertiesReply</function>
931555991fdSmrg  </synopsis>
932555991fdSmrg
933555991fdSmrg  <para>
934555991fdSmrgRequests that the SM respond with the values of all the properties for
935555991fdSmrgthis client.
936555991fdSmrg  </para>
937555991fdSmrg
938555991fdSmrg  <synopsis>
939555991fdSmrg<function>GetPropertiesReply</function> [Client &larr; SM]
940555991fdSmrg
941555991fdSmrg  <parameter>values</parameter>: <type>LISTofPROPERTY</type>
942555991fdSmrg  </synopsis>
943555991fdSmrg
944555991fdSmrg  <para>
945555991fdSmrgThis message is sent in reply to a <function>GetProperties</function>
946555991fdSmrgmessage and includes the <parameter>values</parameter> of all the properties.
947555991fdSmrg  </para>
948555991fdSmrg</chapter>
949555991fdSmrg
9503c15da26Smrg<chapter id='Errors'>
951555991fdSmrg  <title>Errors</title>
952555991fdSmrg
953555991fdSmrg  <para>
954555991fdSmrgWhen the receiver of a message detects an error condition, the
955555991fdSmrgreceiver sends an <acronym>ICE</acronym> error message to the sender.  There are only two
956555991fdSmrgtypes of errors that are used by the XSMP:
957555991fdSmrg<errorname>BadValue</errorname> and <errorname>BadState</errorname>
958555991fdSmrgThese are both defined in the <acronym>ICE</acronym> protocol.
959555991fdSmrg  </para>
960555991fdSmrg
961555991fdSmrg  <para>
962555991fdSmrgAny message received out-of-sequence will generate
963555991fdSmrga <errorname>BadState</errorname> error message.
964555991fdSmrg  </para>
965555991fdSmrg</chapter>
966555991fdSmrg
9673c15da26Smrg<chapter id='State_Diagrams'>
968555991fdSmrg  <title>State Diagrams</title>
969555991fdSmrg  <para>
970555991fdSmrgThese state diagrams are designed to cover all actions of both the
971555991fdSmrgclient and the SM.
972555991fdSmrg  </para>
973555991fdSmrg
9743c15da26Smrg  <sect1 id='Client_State_Diagram'>
9753c15da26Smrg<title>Client State Diagram</title>
976555991fdSmrg
977555991fdSmrg<!-- <literallayout remap='DS'> -->
978555991fdSmrg<literallayout>
979555991fdSmrg<emphasis remap='I'>start:</emphasis>
980555991fdSmrg     <acronym>ICE</acronym> protocol setup complete &rarr; <emphasis remap='C'>register</emphasis></literallayout>
981555991fdSmrg
982555991fdSmrg<literallayout>
983555991fdSmrg<emphasis remap='I'>register:</emphasis>
984555991fdSmrg     send <emphasis remap='B'>RegisterClient</emphasis> &rarr; <emphasis remap='C'>collect-id</emphasis></literallayout>
985555991fdSmrg
986555991fdSmrg<literallayout remap='DS'>
987555991fdSmrg<emphasis remap='I'>collect-id:</emphasis>
988555991fdSmrg     receive <emphasis remap='B'>RegisterClientReply</emphasis> &rarr; <emphasis remap='C'>idle</emphasis></literallayout>
989555991fdSmrg
990555991fdSmrg<literallayout remap='DS'>
991555991fdSmrg<emphasis remap='I'>shutdown-cancelled:</emphasis>
992555991fdSmrg     send <emphasis remap='B'>SaveYourselfDone</emphasis> &rarr; <emphasis remap='C'>idle</emphasis></literallayout>
993555991fdSmrg
994555991fdSmrg<literallayout remap='DS'>
995555991fdSmrg<emphasis remap='I'>idle:</emphasis> [Undoes any freeze of interaction with user.]
996555991fdSmrg     receive <emphasis remap='B'>Die</emphasis> &rarr; <emphasis remap='C'>die</emphasis>
997555991fdSmrg     receive <emphasis remap='B'>SaveYourself</emphasis> &rarr; <emphasis remap='C'>freeze-interaction</emphasis>
998555991fdSmrg     send <emphasis remap='B'>GetProperties</emphasis> &rarr; <emphasis remap='C'>idle</emphasis>
999555991fdSmrg     receive <emphasis remap='B'>GetPropertiesReply</emphasis> &rarr; <emphasis remap='C'>idle</emphasis>
1000555991fdSmrg     send <emphasis remap='B'>SetProperties</emphasis> &rarr; <emphasis remap='C'>idle</emphasis>
1001555991fdSmrg     send <emphasis remap='B'>DeleteProperties</emphasis> &rarr; <emphasis remap='C'>idle</emphasis>
1002555991fdSmrg     send <emphasis remap='B'>ConnectionClosed</emphasis> &rarr; <emphasis remap='C'>connection-closed</emphasis>
1003555991fdSmrg     send <emphasis remap='B'>SaveYourselfRequest</emphasis> &rarr; <emphasis remap='C'>idle</emphasis>
1004555991fdSmrg</literallayout> <!-- remap='DE' -->
1005555991fdSmrg
1006555991fdSmrg<literallayout remap='DS'>
1007555991fdSmrg<emphasis remap='I'>die:</emphasis>
1008555991fdSmrg     send <emphasis remap='B'>ConnectionClosed</emphasis> &rarr; <emphasis remap='C'>connection-closed</emphasis></literallayout>
1009555991fdSmrg
1010555991fdSmrg<literallayout remap='DS'>
1011555991fdSmrg<emphasis remap='I'>freeze-interaction:</emphasis>
1012555991fdSmrg     freeze interaction with user &rarr; <emphasis remap='C'>save-yourself</emphasis></literallayout>
1013555991fdSmrg
1014555991fdSmrg<literallayout remap='DS'>
1015555991fdSmrg<emphasis remap='I'>save-yourself:</emphasis>
1016555991fdSmrg     receive <emphasis remap='B'>ShutdownCancelled</emphasis> &rarr; <emphasis remap='C'>shutdown-cancelled</emphasis>
1017555991fdSmrg     send <emphasis remap='B'>SetProperties</emphasis> &rarr; <emphasis remap='C'>save-yourself</emphasis>
1018555991fdSmrg     send <emphasis remap='B'>DeleteProperties</emphasis> &rarr; <emphasis remap='C'>save-yourself</emphasis>
1019555991fdSmrg     send <emphasis remap='B'>GetProperties</emphasis> &rarr; <emphasis remap='C'>save-yourself</emphasis>
1020555991fdSmrg     receive <emphasis remap='B'>GetPropertiesReply</emphasis> &rarr; <emphasis remap='C'>save-yourself</emphasis>
1021555991fdSmrg     send <emphasis remap='B'>InteractRequest</emphasis> &rarr; <emphasis remap='C'>interact-request</emphasis>
1022555991fdSmrg     send <emphasis remap='B'>SaveYourselfPhase2Request</emphasis> &rarr; waiting-for-phase2
1023555991fdSmrg
1024555991fdSmrg<emphasis remap='I'>save-yourself:</emphasis>
1025555991fdSmrg     if shutdown mode:
1026555991fdSmrg          send <emphasis remap='B'>SaveYourselfDone</emphasis> &rarr; <emphasis remap='C'>save-yourself-done</emphasis>
1027555991fdSmrg     otherwise:
1028555991fdSmrg          send <emphasis remap='B'>SaveYourselfDone</emphasis> &rarr; <emphasis remap='C'>idle</emphasis></literallayout>
1029555991fdSmrg
1030555991fdSmrg<literallayout remap='DS'>
1031555991fdSmrg<emphasis remap='I'>waiting-for-phase2:</emphasis>
1032555991fdSmrg     receive <emphasis remap='B'>ShutdownCancelled</emphasis> &rarr; <emphasis remap='C'>shutdown-cancelled</emphasis>
1033555991fdSmrg     receive <emphasis remap='B'>SaveYourselfPhase2</emphasis> &rarr; <emphasis remap='C'>phase2</emphasis></literallayout>
1034555991fdSmrg
1035555991fdSmrg<literallayout remap='DS'>
1036555991fdSmrg<emphasis remap='I'>phase2:</emphasis>
1037555991fdSmrg     receive <emphasis remap='B'>ShutdownCancelled</emphasis> &rarr; <emphasis remap='C'>shutdown-cancelled</emphasis>
1038555991fdSmrg     send <emphasis remap='B'>SetProperties</emphasis> &rarr; <emphasis remap='C'>save-yourself</emphasis>
1039555991fdSmrg     send <emphasis remap='B'>DeleteProperties</emphasis> &rarr; <emphasis remap='C'>save-yourself</emphasis>
1040555991fdSmrg     send <emphasis remap='B'>GetProperties</emphasis> &rarr; <emphasis remap='C'>save-yourself</emphasis>
1041555991fdSmrg     receive <emphasis remap='B'>GetPropertiesReply</emphasis> &rarr; <emphasis remap='C'>save-yourself</emphasis>
1042555991fdSmrg     send <emphasis remap='B'>InteractRequest</emphasis> &rarr; <emphasis remap='C'>interact-request</emphasis> (errors only)
1043555991fdSmrg     if shutdown mode:
1044555991fdSmrg          send <emphasis remap='B'>SaveYourselfDone</emphasis> &rarr; <emphasis remap='C'>save-yourself-done</emphasis>
1045555991fdSmrg     otherwise:
1046555991fdSmrg          send <emphasis remap='B'>SaveYourselfDone</emphasis> &rarr; <emphasis remap='C'>idle</emphasis></literallayout>
1047555991fdSmrg
1048555991fdSmrg<literallayout remap='DS'>
1049555991fdSmrg<emphasis remap='I'>interact-request:</emphasis>
1050555991fdSmrg     receive <emphasis remap='B'>Interact</emphasis> &rarr; <emphasis remap='C'>interact</emphasis>
1051555991fdSmrg     receive <emphasis remap='B'>ShutdownCancelled</emphasis> &rarr; <emphasis remap='C'>shutdown-cancelled</emphasis></literallayout>
1052555991fdSmrg
1053555991fdSmrg<literallayout remap='DS'>
1054555991fdSmrg<emphasis remap='I'>interact:</emphasis>
1055555991fdSmrg     send <emphasis remap='B'>InteractDone</emphasis> &rarr; <emphasis remap='C'>save-yourself</emphasis>
1056555991fdSmrg     receive <emphasis remap='B'>ShutdownCancelled</emphasis> &rarr; <emphasis remap='C'>shutdown-cancelled</emphasis></literallayout>
1057555991fdSmrg
1058555991fdSmrg<literallayout remap='DS'>
1059555991fdSmrg<emphasis remap='I'>save-yourself-done:</emphasis> (changing state is forbidden)
1060555991fdSmrg     receive <emphasis remap='B'>SaveComplete</emphasis> &rarr; <emphasis remap='C'>idle</emphasis>
1061555991fdSmrg     receive <emphasis remap='B'>Die</emphasis> &rarr; <emphasis remap='C'>die</emphasis>
1062555991fdSmrg     receive <emphasis remap='B'>ShutdownCancelled</emphasis> &rarr; <emphasis remap='C'>idle</emphasis></literallayout>
1063555991fdSmrg
1064555991fdSmrg<literallayout remap='DS'>
1065555991fdSmrg<emphasis remap='I'>connection-closed:</emphasis>
1066555991fdSmrg     client stops participating in session </literallayout>
1067555991fdSmrg</sect1>
1068555991fdSmrg
10693c15da26Smrg<sect1 id='Session_Manager_State_Diagram'>
1070555991fdSmrg<title>Session Manager State Diagram</title>
1071555991fdSmrg
1072555991fdSmrg<literallayout remap='DS'>
1073555991fdSmrg<emphasis remap='I'>start:</emphasis>
1074555991fdSmrg     receive <emphasis remap='B'>ProtocolSetup</emphasis> &rarr; <emphasis remap='C'>protocol-setup</emphasis></literallayout>
1075555991fdSmrg
1076555991fdSmrg<literallayout remap='DS'>
1077555991fdSmrg<emphasis remap='I'>protocol-setup:</emphasis>
1078555991fdSmrg     send <emphasis remap='B'>ProtocolSetupReply</emphasis> &rarr; <emphasis remap='C'>register</emphasis></literallayout>
1079555991fdSmrg
1080555991fdSmrg<literallayout remap='DS'>
1081555991fdSmrg<emphasis remap='I'>register:</emphasis>
1082555991fdSmrg     receive <emphasis remap='B'>RegisterClient</emphasis> &rarr; <emphasis remap='C'>acknowledge-register</emphasis>
1083555991fdSmrg</literallayout>
1084555991fdSmrg
1085555991fdSmrg<literallayout remap='DS'>
1086555991fdSmrg<emphasis remap='I'>acknowledge-register:</emphasis>
1087555991fdSmrg     send <emphasis remap='B'>RegisterClientReply</emphasis> &rarr; <emphasis remap='C'>idle</emphasis>
1088555991fdSmrg</literallayout>
1089555991fdSmrg
1090555991fdSmrg<literallayout remap='DS'>
1091555991fdSmrg<emphasis remap='I'>idle:</emphasis>
1092555991fdSmrg     receive <emphasis remap='B'>SetProperties</emphasis> &rarr; <emphasis remap='C'>idle</emphasis>
1093555991fdSmrg     receive <emphasis remap='B'>DeleteProperties</emphasis> &rarr; <emphasis remap='C'>idle</emphasis>
1094555991fdSmrg     receive <emphasis remap='B'>ConnectionClosed</emphasis> &rarr; <emphasis remap='C'>start</emphasis>
1095555991fdSmrg     receive <emphasis remap='B'>GetProperties</emphasis> &rarr; <emphasis remap='C'>get-properties</emphasis>
1096555991fdSmrg     receive <emphasis remap='B'>SaveYourselfRequest</emphasis> &rarr; <emphasis remap='C'>save-yourself</emphasis>
1097555991fdSmrg     send <emphasis remap='B'>SaveYourself</emphasis> &rarr; <emphasis remap='C'>saving-yourself</emphasis>
1098555991fdSmrg</literallayout>
1099555991fdSmrg
1100555991fdSmrg<literallayout remap='DS'>
1101555991fdSmrg<emphasis remap='I'>save-yourself:</emphasis>
1102555991fdSmrg     send <emphasis remap='B'>SaveYourself</emphasis> &rarr; <emphasis remap='C'>saving-yourself</emphasis>
1103555991fdSmrg</literallayout>
1104555991fdSmrg
1105555991fdSmrg<literallayout remap='DS'>
1106555991fdSmrg<emphasis remap='I'>get-properties:</emphasis>
1107555991fdSmrg     send <emphasis remap='B'>GetPropertiesReply</emphasis> &rarr; <emphasis remap='C'>idle</emphasis>
1108555991fdSmrg</literallayout>
1109555991fdSmrg
1110555991fdSmrg<literallayout remap='DS'>
1111555991fdSmrg<emphasis remap='I'>saving-get-properties:</emphasis>
1112555991fdSmrg     send <emphasis remap='B'>GetPropertiesReply</emphasis> &rarr; <emphasis remap='C'>saving-yourself</emphasis>
1113555991fdSmrg</literallayout>
1114555991fdSmrg
1115555991fdSmrg<literallayout remap='DS'>
1116555991fdSmrg<emphasis remap='I'>saving-yourself:</emphasis>
1117555991fdSmrg     receive <emphasis remap='B'>InteractRequest</emphasis> &rarr; <emphasis remap='C'>saving-yourself</emphasis>
1118555991fdSmrg     send <emphasis remap='B'>Interact</emphasis> &rarr; <emphasis remap='C'>saving-yourself</emphasis>
1119555991fdSmrg     send <emphasis remap='B'>ShutdownCancelled</emphasis> &rarr; <emphasis remap='C'>idle</emphasis>
1120555991fdSmrg     receive <emphasis remap='B'>InteractDone</emphasis> &rarr; <emphasis remap='C'>saving-yourself</emphasis>
1121555991fdSmrg     receive <emphasis remap='B'>SetProperties</emphasis> &rarr; <emphasis remap='C'>saving-yourself</emphasis>
1122555991fdSmrg      receive <emphasis remap='B'>DeleteProperties</emphasis> &rarr; <emphasis remap='C'>saving-yourself</emphasis>
1123555991fdSmrg     receive <emphasis remap='B'>GetProperties</emphasis> &rarr; <emphasis remap='C'>saving-get-properties</emphasis>
1124555991fdSmrg     receive <emphasis remap='B'>SaveYourselfPhase2Request</emphasis> &rarr; <emphasis remap='C'>start-phase2</emphasis>
1125555991fdSmrg     receive <emphasis remap='B'>SaveYourselfDone</emphasis> &rarr; <emphasis remap='C'>save-yourself-done</emphasis>
1126555991fdSmrg</literallayout>
1127555991fdSmrg
1128555991fdSmrg<literallayout remap='DS'>
1129555991fdSmrg<emphasis remap='I'>start-phase2:</emphasis>
1130555991fdSmrg     If all clients have sent either SaveYourselfPhase2Request or SaveYourselfDone:
1131555991fdSmrg          send <emphasis remap='B'>SaveYourselfPhase2</emphasis> &rarr; <emphasis remap='C'>phase2</emphasis>
1132555991fdSmrg     else
1133555991fdSmrg          &rarr; <emphasis remap='C'>saving-yourself</emphasis>
1134555991fdSmrg</literallayout>
1135555991fdSmrg
1136555991fdSmrg<literallayout remap='DS'>
1137555991fdSmrg<emphasis remap='I'>phase2:</emphasis>
1138555991fdSmrg     receive <emphasis remap='B'>InteractRequest</emphasis> &rarr; <emphasis remap='C'>saving-yourself</emphasis>
1139555991fdSmrg     send <emphasis remap='B'>Interact</emphasis> &rarr; <emphasis remap='C'>saving-yourself</emphasis>
1140555991fdSmrg     send <emphasis remap='B'>ShutdownCancelled</emphasis> &rarr; <emphasis remap='C'>idle</emphasis>
1141555991fdSmrg     receive <emphasis remap='B'>InteractDone</emphasis> &rarr; <emphasis remap='C'>saving-yourself</emphasis>
1142555991fdSmrg     receive <emphasis remap='B'>SetProperties</emphasis> &rarr; <emphasis remap='C'>saving-yourself</emphasis>
1143555991fdSmrg      receive <emphasis remap='B'>DeleteProperties</emphasis> &rarr; <emphasis remap='C'>saving-yourself</emphasis>
1144555991fdSmrg     receive <emphasis remap='B'>GetProperties</emphasis> &rarr; <emphasis remap='C'>saving-get-properties</emphasis>
1145555991fdSmrg     receive <emphasis remap='B'>SaveYourselfDone</emphasis> &rarr; <emphasis remap='C'>save-yourself-done</emphasis>
1146555991fdSmrg</literallayout>
1147555991fdSmrg
1148555991fdSmrg<literallayout remap='DS'>
1149555991fdSmrg<emphasis remap='I'>save-yourself-done:</emphasis>
1150555991fdSmrg     If all clients are saved:
1151555991fdSmrg          If shutting down:
1152555991fdSmrg               send <emphasis remap='B'>Die</emphasis> &rarr; <emphasis remap='C'>die</emphasis>
1153555991fdSmrg          otherwise
1154555991fdSmrg               send <emphasis remap='B'>SaveComplete</emphasis> &rarr; <emphasis remap='C'>idle</emphasis>
1155555991fdSmrg
1156555991fdSmrg     If some clients are not saved:
1157555991fdSmrg     &rarr; <emphasis remap='C'>saving-yourself</emphasis>
1158555991fdSmrg</literallayout>
1159555991fdSmrg
1160555991fdSmrg<literallayout remap='DS'>
1161555991fdSmrg<emphasis remap='I'>die:</emphasis>
1162555991fdSmrg     SM stops accepting connections
1163555991fdSmrg</literallayout>
1164555991fdSmrg  </sect1>
1165555991fdSmrg</chapter>
1166555991fdSmrg
11673c15da26Smrg<chapter id='Protocol_Encoding'>
1168555991fdSmrg  <title>Protocol Encoding</title>
11693c15da26Smrg  <sect1 id='Types'>
11703c15da26Smrg<title>Types</title>
11713c15da26Smrg
11723c15da26Smrg<informaltable frame='none'>
11733c15da26Smrg  <tgroup cols='2' align='left' colsep='0' rowsep='0'>
11743c15da26Smrg    <?dbfo keep-together="always" ?>
11753c15da26Smrg    <colspec colname='c1' colwidth='1.0*'/>
11763c15da26Smrg    <colspec colname='c2' colwidth='10.0*'/>
11773c15da26Smrg    <thead>
1178555991fdSmrg      <row>
11793c15da26Smrg        <entry namest='c1' nameend='c2'><emphasis role="bold">BOOL</emphasis></entry>
1180555991fdSmrg      </row>
11813c15da26Smrg    </thead>
11823c15da26Smrg    <tbody>
1183555991fdSmrg      <row>
11843c15da26Smrg        <entry>0</entry>
11853c15da26Smrg        <entry>False</entry>
1186555991fdSmrg      </row>
1187555991fdSmrg      <row>
11883c15da26Smrg        <entry>1</entry>
11893c15da26Smrg        <entry>True</entry>
1190555991fdSmrg      </row>
11913c15da26Smrg    </tbody>
11923c15da26Smrg  </tgroup>
11933c15da26Smrg  <tgroup cols='2' align='left' colsep='0' rowsep='0'>
11943c15da26Smrg    <?dbfo keep-together="always" ?>
11953c15da26Smrg    <colspec colname='c1' colwidth='1.0*'/>
11963c15da26Smrg    <colspec colname='c2' colwidth='10.0*'/>
11973c15da26Smrg    <thead>
1198555991fdSmrg      <row>
11993c15da26Smrg        <entry namest='c1' nameend='c2'><emphasis role="bold">INTERACT_STYLE</emphasis></entry>
1200555991fdSmrg      </row>
12013c15da26Smrg    </thead>
12023c15da26Smrg    <tbody>
1203555991fdSmrg      <row>
12043c15da26Smrg        <entry>0</entry>
12053c15da26Smrg        <entry>None</entry>
1206555991fdSmrg      </row>
1207555991fdSmrg      <row>
12083c15da26Smrg        <entry>1</entry>
12093c15da26Smrg        <entry>Errors</entry>
1210555991fdSmrg      </row>
1211555991fdSmrg      <row>
12123c15da26Smrg        <entry>2</entry>
12133c15da26Smrg        <entry>Any</entry>
1214555991fdSmrg      </row>
12153c15da26Smrg    </tbody>
12163c15da26Smrg  </tgroup>
12173c15da26Smrg  <tgroup cols='2' align='left' colsep='0' rowsep='0'>
12183c15da26Smrg    <?dbfo keep-together="always" ?>
12193c15da26Smrg    <colspec colname='c1' colwidth='1.0*'/>
12203c15da26Smrg    <colspec colname='c2' colwidth='10.0*'/>
12213c15da26Smrg    <thead>
1222555991fdSmrg      <row>
12233c15da26Smrg        <entry namest='c1' nameend='c2'><emphasis role="bold">DIALOG_TYPE</emphasis></entry>
1224555991fdSmrg      </row>
12253c15da26Smrg    </thead>
12263c15da26Smrg    <tbody>
1227555991fdSmrg      <row>
12283c15da26Smrg        <entry>0</entry>
12293c15da26Smrg        <entry>Error</entry>
1230555991fdSmrg      </row>
1231555991fdSmrg      <row>
12323c15da26Smrg        <entry>1</entry>
12333c15da26Smrg        <entry>Normal</entry>
1234555991fdSmrg      </row>
12353c15da26Smrg    </tbody>
12363c15da26Smrg  </tgroup>
12373c15da26Smrg  <tgroup cols='2' align='left' colsep='0' rowsep='0'>
12383c15da26Smrg    <?dbfo keep-together="always" ?>
12393c15da26Smrg    <colspec colname='c1' colwidth='1.0*'/>
12403c15da26Smrg    <colspec colname='c2' colwidth='10.0*'/>
12413c15da26Smrg    <thead>
1242555991fdSmrg      <row>
12433c15da26Smrg        <entry namest='c1' nameend='c2'><emphasis role="bold">SAVE_TYPE</emphasis></entry>
1244555991fdSmrg      </row>
12453c15da26Smrg    </thead>
12463c15da26Smrg    <tbody>
1247555991fdSmrg      <row>
12483c15da26Smrg        <entry>0</entry>
12493c15da26Smrg        <entry>Global</entry>
1250555991fdSmrg      </row>
1251555991fdSmrg      <row>
12523c15da26Smrg        <entry>1</entry>
12533c15da26Smrg        <entry>Local</entry>
1254555991fdSmrg      </row>
1255555991fdSmrg      <row>
12563c15da26Smrg        <entry>2</entry>
12573c15da26Smrg        <entry>Both</entry>
1258555991fdSmrg      </row>
12593c15da26Smrg    </tbody>
12603c15da26Smrg  </tgroup>
12613c15da26Smrg  <tgroup cols='3' align='left' colsep='0' rowsep='0'>
12623c15da26Smrg    <?dbfo keep-together="always" ?>
12633c15da26Smrg    <colspec colname='c1' colwidth='1.0*'/>
12643c15da26Smrg    <colspec colname='c2' colwidth='5.0*'/>
12653c15da26Smrg    <colspec colname='c3' colwidth='5.0*'/>
12663c15da26Smrg    <thead>
1267555991fdSmrg      <row>
12683c15da26Smrg        <entry namest='c1' nameend='c2'><emphasis role="bold">ARRAY8</emphasis></entry>
1269555991fdSmrg      </row>
12703c15da26Smrg    </thead>
12713c15da26Smrg    <tbody>
1272555991fdSmrg      <row>
12733c15da26Smrg        <entry>4</entry>
12743c15da26Smrg        <entry>CARD32</entry>
12753c15da26Smrg        <entry>length</entry>
1276555991fdSmrg      </row>
1277555991fdSmrg      <row>
12783c15da26Smrg        <entry>n</entry>
12793c15da26Smrg        <entry>ListofCARD8, the array</entry>
12803c15da26Smrg        <entry>p = pad (4 + n, 8)</entry>
1281555991fdSmrg      </row>
1282555991fdSmrg      <row>
12833c15da26Smrg        <entry>2</entry>
12843c15da26Smrg        <entry>Both</entry>
1285555991fdSmrg      </row>
12863c15da26Smrg    </tbody>
12873c15da26Smrg  </tgroup>
12883c15da26Smrg  <tgroup cols='3' align='left' colsep='0' rowsep='0'>
12893c15da26Smrg    <?dbfo keep-together="always" ?>
12903c15da26Smrg    <colspec colname='c1' colwidth='1.0*'/>
12913c15da26Smrg    <colspec colname='c2' colwidth='5.0*'/>
12923c15da26Smrg    <colspec colname='c3' colwidth='5.0*'/>
12933c15da26Smrg    <thead>
1294555991fdSmrg      <row>
12953c15da26Smrg        <entry namest='c1' nameend='c2'><emphasis role="bold">LISTofARRAY8</emphasis></entry>
1296555991fdSmrg      </row>
12973c15da26Smrg    </thead>
12983c15da26Smrg    <tbody>
1299555991fdSmrg      <row>
13003c15da26Smrg        <entry>4</entry>
13013c15da26Smrg        <entry>CARD32</entry>
13023c15da26Smrg        <entry>count</entry>
1303555991fdSmrg      </row>
1304555991fdSmrg      <row>
13053c15da26Smrg        <entry>4</entry>
13063c15da26Smrg        <entry></entry>
13073c15da26Smrg        <entry>unused</entry>
1308555991fdSmrg      </row>
1309555991fdSmrg      <row>
13103c15da26Smrg        <entry>a</entry>
13113c15da26Smrg        <entry>ARRAY8</entry>
13123c15da26Smrg        <entry>first array</entry>
1313555991fdSmrg      </row>
1314555991fdSmrg      <row>
13153c15da26Smrg        <entry>b</entry>
13163c15da26Smrg        <entry>ARRAY8</entry>
13173c15da26Smrg        <entry>second array</entry>
1318555991fdSmrg      </row>
1319555991fdSmrg      <row>
13203c15da26Smrg        <entry>.</entry>
13213c15da26Smrg        <entry></entry>
13223c15da26Smrg        <entry></entry>
1323555991fdSmrg      </row>
1324555991fdSmrg      <row>
13253c15da26Smrg        <entry>.</entry>
13263c15da26Smrg        <entry></entry>
13273c15da26Smrg        <entry></entry>
1328555991fdSmrg      </row>
1329555991fdSmrg      <row>
13303c15da26Smrg        <entry>.</entry>
13313c15da26Smrg        <entry></entry>
13323c15da26Smrg        <entry></entry>
1333555991fdSmrg      </row>
1334555991fdSmrg      <row>
13353c15da26Smrg        <entry>q</entry>
13363c15da26Smrg        <entry>ARRAY8</entry>
13373c15da26Smrg        <entry>last array</entry>
1338555991fdSmrg      </row>
13393c15da26Smrg    </tbody>
13403c15da26Smrg  </tgroup>
13413c15da26Smrg  <tgroup cols='3' align='left' colsep='0' rowsep='0'>
13423c15da26Smrg    <?dbfo keep-together="always" ?>
13433c15da26Smrg    <colspec colname='c1' colwidth='1.0*'/>
13443c15da26Smrg    <colspec colname='c2' colwidth='5.0*'/>
13453c15da26Smrg    <colspec colname='c3' colwidth='5.0*'/>
13463c15da26Smrg    <thead>
1347555991fdSmrg      <row>
13483c15da26Smrg        <entry namest='c1' nameend='c2'><emphasis role="bold">PROPERTY</emphasis></entry>
1349555991fdSmrg      </row>
13503c15da26Smrg    </thead>
13513c15da26Smrg    <tbody>
1352555991fdSmrg      <row>
13533c15da26Smrg        <entry>a</entry>
13543c15da26Smrg        <entry>ARRAY8</entry>
13553c15da26Smrg        <entry>name</entry>
1356555991fdSmrg      </row>
1357555991fdSmrg      <row>
13583c15da26Smrg        <entry>b</entry>
13593c15da26Smrg        <entry>ARRAY8</entry>
13603c15da26Smrg        <entry>type (XPCS encoded in Latin-1, case sensitive)</entry>
1361555991fdSmrg      </row>
1362555991fdSmrg      <row>
13633c15da26Smrg        <entry>c</entry>
13643c15da26Smrg        <entry>LISTofARRAY8</entry>
13653c15da26Smrg        <entry>values</entry>
1366555991fdSmrg      </row>
13673c15da26Smrg    </tbody>
13683c15da26Smrg  </tgroup>
13693c15da26Smrg  <tgroup cols='3' align='left' colsep='0' rowsep='0'>
13703c15da26Smrg    <?dbfo keep-together="always" ?>
13713c15da26Smrg    <colspec colname='c1' colwidth='1.0*'/>
13723c15da26Smrg    <colspec colname='c2' colwidth='5.0*'/>
13733c15da26Smrg    <colspec colname='32' colwidth='5.0*'/>
13743c15da26Smrg    <thead>
1375555991fdSmrg      <row>
13763c15da26Smrg        <entry namest='c1' nameend='c2'><emphasis role="bold">LISTofPROPERTY</emphasis></entry>
1377555991fdSmrg      </row>
13783c15da26Smrg    </thead>
13793c15da26Smrg    <tbody>
1380555991fdSmrg      <row>
13813c15da26Smrg        <entry>4</entry>
13823c15da26Smrg        <entry>CARD32</entry>
13833c15da26Smrg        <entry>count</entry>
1384555991fdSmrg      </row>
1385555991fdSmrg      <row>
13863c15da26Smrg        <entry>4</entry>
13873c15da26Smrg        <entry></entry>
13883c15da26Smrg        <entry>unused</entry>
1389555991fdSmrg      </row>
1390555991fdSmrg      <row>
13913c15da26Smrg        <entry>a</entry>
13923c15da26Smrg        <entry>PROPERTY</entry>
13933c15da26Smrg        <entry>first property</entry>
1394555991fdSmrg      </row>
1395555991fdSmrg      <row>
13963c15da26Smrg        <entry>b</entry>
13973c15da26Smrg        <entry>PROPERTY</entry>
13983c15da26Smrg        <entry>second property</entry>
1399555991fdSmrg      </row>
1400555991fdSmrg      <row>
14013c15da26Smrg        <entry>.</entry>
14023c15da26Smrg        <entry></entry>
14033c15da26Smrg        <entry></entry>
1404555991fdSmrg      </row>
1405555991fdSmrg      <row>
14063c15da26Smrg        <entry>.</entry>
14073c15da26Smrg        <entry></entry>
14083c15da26Smrg        <entry></entry>
1409555991fdSmrg      </row>
1410555991fdSmrg      <row>
14113c15da26Smrg        <entry>.</entry>
14123c15da26Smrg        <entry></entry>
14133c15da26Smrg        <entry></entry>
1414555991fdSmrg      </row>
1415555991fdSmrg      <row>
14163c15da26Smrg        <entry>q</entry>
14173c15da26Smrg        <entry>PROPERTY</entry>
14183c15da26Smrg        <entry>last property</entry>
1419555991fdSmrg      </row>
1420555991fdSmrg     </tbody>
1421555991fdSmrg  </tgroup>
1422555991fdSmrg</informaltable>
1423555991fdSmrg
1424555991fdSmrg  </sect1>
1425555991fdSmrg
14263c15da26Smrg  <sect1 id='Messages'>
14273c15da26Smrg<title>Messages</title>
1428555991fdSmrg    <para>
1429555991fdSmrgXSMP is a sub-protocol of <acronym>ICE</acronym>.  The major opcode is
1430555991fdSmrgassigned at run-time by <acronym>ICE</acronym> and is represented here
1431555991fdSmrgby '<literal>?</literal>'.
1432555991fdSmrg    </para>
1433555991fdSmrg
1434555991fdSmrg    <para>
1435555991fdSmrgTo start the XSMP protocol, the client sends the server an
1436555991fdSmrg<acronym>ICE</acronym> <function>ProtocolSetup</function> message.
1437555991fdSmrgThe protocol-name field should be specified as "<literal>XSMP</literal>",
1438555991fdSmrgthe major version of the protocol is 1, the minor version is 0.  These
1439555991fdSmrgvalues may change if the protocol is revised.  The minor version
1440555991fdSmrgnumber will be incremented if the change is compatible, otherwise the
1441555991fdSmrgmajor version number will be incremented.
1442555991fdSmrg    </para>
1443555991fdSmrg
1444555991fdSmrg    <para>
1445555991fdSmrgIn <function>ProtocolReply</function> message sent by the session
1446555991fdSmrgmanager, the XSMP protocol defines the vendor parameter as product
1447555991fdSmrgidentification of the session manager, and defines the release
1448555991fdSmrgparameter as the software release identification of the session
1449555991fdSmrgmanager.  The session manager should supply this information in the
1450555991fdSmrg<acronym>ICE</acronym> <function>ProtocolReply</function> message.
1451555991fdSmrg    </para>
1452555991fdSmrg
14533c15da26Smrg<informaltable frame='none'>
14543c15da26Smrg  <tgroup cols='3' align='left' colsep='0' rowsep='0'>
14553c15da26Smrg    <?dbfo keep-together="always" ?>
14563c15da26Smrg    <colspec colname='c1' colwidth='1.0*'/>
14573c15da26Smrg    <colspec colname='c2' colwidth='5.0*'/>
14583c15da26Smrg    <colspec colname='c3' colwidth='5.0*'/>
14593c15da26Smrg    <thead>
1460555991fdSmrg      <row>
14613c15da26Smrg	<entry namest="c1" nameend="c3"><emphasis role="bold"><function>RegisterClient</function></emphasis></entry>
1462555991fdSmrg      </row>
14633c15da26Smrg    </thead>
14643c15da26Smrg    <tbody>
1465555991fdSmrg      <row>
14663c15da26Smrg        <entry>1</entry>
14673c15da26Smrg        <entry>?</entry>
14683c15da26Smrg        <entry>XSMP</entry>
1469555991fdSmrg      </row>
1470555991fdSmrg      <row>
14713c15da26Smrg        <entry>1</entry>
14723c15da26Smrg        <entry>1</entry>
14733c15da26Smrg        <entry>opcode</entry>
1474555991fdSmrg      </row>
1475555991fdSmrg      <row>
14763c15da26Smrg        <entry>2</entry>
14773c15da26Smrg        <entry></entry>
14783c15da26Smrg        <entry>unused</entry>
1479555991fdSmrg      </row>
1480555991fdSmrg      <row>
14813c15da26Smrg        <entry>4</entry>
14823c15da26Smrg        <entry>a/8</entry>
14833c15da26Smrg        <entry>length of remaining data in 8-byte units</entry>
1484555991fdSmrg      </row>
1485555991fdSmrg      <row>
14863c15da26Smrg        <entry>a</entry>
14873c15da26Smrg        <entry>ARRAY8</entry>
14883c15da26Smrg        <entry>previous-ID</entry>
1489555991fdSmrg      </row>
14903c15da26Smrg    </tbody>
14913c15da26Smrg  </tgroup>
14923c15da26Smrg  <tgroup cols='3' align='left' colsep='0' rowsep='0'>
14933c15da26Smrg    <?dbfo keep-together="always" ?>
14943c15da26Smrg    <colspec colname='c1' colwidth='1.0*'/>
14953c15da26Smrg    <colspec colname='c2' colwidth='5.0*'/>
14963c15da26Smrg    <colspec colname='c3' colwidth='5.0*'/>
14973c15da26Smrg    <thead>
1498555991fdSmrg      <row>
14993c15da26Smrg        <entry namest='c1' nameend='c3'><emphasis role="bold"><function>RegisterClientReply</function></emphasis></entry>
1500555991fdSmrg      </row>
15013c15da26Smrg    </thead>
15023c15da26Smrg    <tbody>
1503555991fdSmrg      <row>
15043c15da26Smrg        <entry>1</entry>
15053c15da26Smrg        <entry>?</entry>
15063c15da26Smrg        <entry>XSMP</entry>
1507555991fdSmrg      </row>
1508555991fdSmrg      <row>
15093c15da26Smrg        <entry>1</entry>
15103c15da26Smrg        <entry>2</entry>
15113c15da26Smrg        <entry>opcode</entry>
1512555991fdSmrg      </row>
1513555991fdSmrg      <row>
15143c15da26Smrg        <entry>2</entry>
15153c15da26Smrg        <entry></entry>
15163c15da26Smrg        <entry>unused</entry>
1517555991fdSmrg      </row>
1518555991fdSmrg      <row>
15193c15da26Smrg        <entry>4</entry>
15203c15da26Smrg        <entry>a/8</entry>
15213c15da26Smrg        <entry>length of remaining data in 8-byte units</entry>
1522555991fdSmrg      </row>
1523555991fdSmrg      <row>
15243c15da26Smrg        <entry>a</entry>
15253c15da26Smrg        <entry>ARRAY8</entry>
15263c15da26Smrg        <entry>client-ID</entry>
1527555991fdSmrg      </row>
15283c15da26Smrg    </tbody>
15293c15da26Smrg  </tgroup>
15303c15da26Smrg  <tgroup cols='3' align='left' colsep='0' rowsep='0'>
15313c15da26Smrg    <?dbfo keep-together="always" ?>
15323c15da26Smrg    <colspec colname='c1' colwidth='1.0*'/>
15333c15da26Smrg    <colspec colname='c2' colwidth='5.0*'/>
15343c15da26Smrg    <colspec colname='c3' colwidth='5.0*'/>
15353c15da26Smrg    <thead>
1536555991fdSmrg      <row>
15373c15da26Smrg        <entry namest='c1' nameend='c3'><emphasis role="bold"><function>SaveYourself</function></emphasis></entry>
1538555991fdSmrg      </row>
15393c15da26Smrg    </thead>
15403c15da26Smrg    <tbody>
1541555991fdSmrg      <row>
15423c15da26Smrg        <entry>1</entry>
15433c15da26Smrg        <entry>?</entry>
15443c15da26Smrg        <entry>XSMP</entry>
1545555991fdSmrg      </row>
1546555991fdSmrg      <row>
15473c15da26Smrg        <entry>1</entry>
15483c15da26Smrg        <entry>3</entry>
15493c15da26Smrg        <entry>opcode</entry>
1550555991fdSmrg      </row>
1551555991fdSmrg      <row>
15523c15da26Smrg        <entry>2</entry>
15533c15da26Smrg        <entry></entry>
15543c15da26Smrg        <entry>unused</entry>
1555555991fdSmrg      </row>
1556555991fdSmrg      <row>
15573c15da26Smrg        <entry>4</entry>
15583c15da26Smrg        <entry>1</entry>
15593c15da26Smrg        <entry>length of remaining data in 8-byte units</entry>
1560555991fdSmrg      </row>
1561555991fdSmrg      <row>
15623c15da26Smrg        <entry>1</entry>
15633c15da26Smrg        <entry>SAVE_TYPE</entry>
15643c15da26Smrg        <entry>type</entry>
1565555991fdSmrg      </row>
1566555991fdSmrg      <row>
15673c15da26Smrg        <entry>1</entry>
15683c15da26Smrg        <entry>BOOL</entry>
15693c15da26Smrg        <entry>shutdown</entry>
1570555991fdSmrg      </row>
1571555991fdSmrg      <row>
15723c15da26Smrg        <entry>1</entry>
15733c15da26Smrg        <entry>INTERACT_STYLE</entry>
15743c15da26Smrg        <entry>interact-style</entry>
1575555991fdSmrg      </row>
1576555991fdSmrg      <row>
15773c15da26Smrg        <entry>1</entry>
15783c15da26Smrg        <entry>BOOL</entry>
15793c15da26Smrg        <entry>fast</entry>
1580555991fdSmrg      </row>
1581555991fdSmrg      <row>
15823c15da26Smrg        <entry>4</entry>
15833c15da26Smrg        <entry></entry>
15843c15da26Smrg        <entry>unused</entry>
1585555991fdSmrg      </row>
15863c15da26Smrg    </tbody>
15873c15da26Smrg  </tgroup>
15883c15da26Smrg  <tgroup cols='3' align='left' colsep='0' rowsep='0'>
15893c15da26Smrg    <?dbfo keep-together="always" ?>
15903c15da26Smrg    <colspec colname='c1' colwidth='1.0*'/>
15913c15da26Smrg    <colspec colname='c2' colwidth='5.0*'/>
15923c15da26Smrg    <colspec colname='c3' colwidth='5.0*'/>
15933c15da26Smrg    <thead>
1594555991fdSmrg      <row>
15953c15da26Smrg        <entry namest="c1" nameend="c3"><emphasis role="bold"><function>SaveYourselfRequest</function></emphasis></entry>
1596555991fdSmrg      </row>
15973c15da26Smrg    </thead>
15983c15da26Smrg    <tbody>
1599555991fdSmrg      <row>
16003c15da26Smrg        <entry>1</entry>
16013c15da26Smrg        <entry>?</entry>
16023c15da26Smrg        <entry>XSMP</entry>
1603555991fdSmrg      </row>
1604555991fdSmrg      <row>
16053c15da26Smrg        <entry>1</entry>
16063c15da26Smrg        <entry>4</entry>
16073c15da26Smrg        <entry>opcode</entry>
1608555991fdSmrg      </row>
1609555991fdSmrg      <row>
16103c15da26Smrg        <entry>2</entry>
16113c15da26Smrg        <entry></entry>
16123c15da26Smrg        <entry>unused</entry>
1613555991fdSmrg      </row>
1614555991fdSmrg      <row>
16153c15da26Smrg        <entry>4</entry>
16163c15da26Smrg        <entry>1</entry>
16173c15da26Smrg        <entry>length of remainning data in 8-byte units</entry>
1618555991fdSmrg      </row>
1619555991fdSmrg      <row>
16203c15da26Smrg        <entry>1</entry>
16213c15da26Smrg        <entry>SAVE_TYPE</entry>
16223c15da26Smrg        <entry>type</entry>
1623555991fdSmrg      </row>
1624555991fdSmrg      <row>
16253c15da26Smrg        <entry>1</entry>
16263c15da26Smrg        <entry>BOOL</entry>
16273c15da26Smrg        <entry>shutdown</entry>
1628555991fdSmrg      </row>
1629555991fdSmrg      <row>
16303c15da26Smrg        <entry>1</entry>
16313c15da26Smrg        <entry>INTERACT_STYLE</entry>
16323c15da26Smrg        <entry>interact-style</entry>
1633555991fdSmrg      </row>
1634555991fdSmrg      <row>
16353c15da26Smrg        <entry>1</entry>
16363c15da26Smrg        <entry>BOOL</entry>
16373c15da26Smrg        <entry>fast</entry>
1638555991fdSmrg      </row>
1639555991fdSmrg      <row>
16403c15da26Smrg        <entry>3</entry>
16413c15da26Smrg        <entry></entry>
16423c15da26Smrg        <entry>unused</entry>
1643555991fdSmrg      </row>
16443c15da26Smrg    </tbody>
16453c15da26Smrg  </tgroup>
16463c15da26Smrg  <tgroup cols='3' align='left' colsep='0' rowsep='0'>
16473c15da26Smrg    <?dbfo keep-together="always" ?>
16483c15da26Smrg    <colspec colname='c1' colwidth='1.0*'/>
16493c15da26Smrg    <colspec colname='c2' colwidth='5.0*'/>
16503c15da26Smrg    <colspec colname='c3' colwidth='5.0*'/>
16513c15da26Smrg    <thead>
1652555991fdSmrg      <row>
16533c15da26Smrg        <entry namest="c1" nameend="c3"><emphasis role="bold"><function>InteractRequest</function></emphasis></entry>
1654555991fdSmrg      </row>
16553c15da26Smrg    </thead>
16563c15da26Smrg    <tbody>
1657555991fdSmrg      <row>
16583c15da26Smrg        <entry>1</entry>
16593c15da26Smrg        <entry>?</entry>
16603c15da26Smrg        <entry>XSMP</entry>
1661555991fdSmrg      </row>
1662555991fdSmrg      <row>
16633c15da26Smrg        <entry>1</entry>
16643c15da26Smrg        <entry>5</entry>
16653c15da26Smrg        <entry>opcode</entry>
1666555991fdSmrg      </row>
1667555991fdSmrg      <row>
16683c15da26Smrg        <entry>1</entry>
16693c15da26Smrg        <entry>DIALOG_TYPE</entry>
16703c15da26Smrg        <entry>dialog type</entry>
1671555991fdSmrg      </row>
1672555991fdSmrg      <row>
16733c15da26Smrg        <entry>1</entry>
16743c15da26Smrg        <entry></entry>
16753c15da26Smrg        <entry>unused</entry>
1676555991fdSmrg      </row>
1677555991fdSmrg      <row>
16783c15da26Smrg        <entry>4</entry>
16793c15da26Smrg        <entry>0</entry>
16803c15da26Smrg        <entry>length of remaining data in 8-byte units</entry>
1681555991fdSmrg      </row>
16823c15da26Smrg    </tbody>
16833c15da26Smrg  </tgroup>
16843c15da26Smrg  <tgroup cols='3' align='left' colsep='0' rowsep='0'>
16853c15da26Smrg    <?dbfo keep-together="always" ?>
16863c15da26Smrg    <colspec colname='c1' colwidth='1.0*'/>
16873c15da26Smrg    <colspec colname='c2' colwidth='5.0*'/>
16883c15da26Smrg    <colspec colname='c3' colwidth='5.0*'/>
16893c15da26Smrg    <thead>
1690555991fdSmrg      <row>
16913c15da26Smrg        <entry namest="c1" nameend="c3"><emphasis role="bold"><function>Interact</function></emphasis></entry>
1692555991fdSmrg      </row>
16933c15da26Smrg    </thead>
16943c15da26Smrg    <tbody>
1695555991fdSmrg      <row>
16963c15da26Smrg        <entry>1</entry>
16973c15da26Smrg        <entry>?</entry>
16983c15da26Smrg        <entry>XSMP</entry>
1699555991fdSmrg      </row>
1700555991fdSmrg      <row>
17013c15da26Smrg        <entry>1</entry>
17023c15da26Smrg        <entry>6</entry>
17033c15da26Smrg        <entry>opcode</entry>
1704555991fdSmrg      </row>
1705555991fdSmrg      <row>
17063c15da26Smrg        <entry>2</entry>
17073c15da26Smrg        <entry></entry>
17083c15da26Smrg        <entry>unused</entry>
1709555991fdSmrg      </row>
1710555991fdSmrg      <row>
17113c15da26Smrg        <entry>4</entry>
17123c15da26Smrg        <entry>0</entry>
17133c15da26Smrg        <entry>length of remaining data in 8-byte units</entry>
1714555991fdSmrg      </row>
17153c15da26Smrg    </tbody>
17163c15da26Smrg  </tgroup>
17173c15da26Smrg  <tgroup cols='3' align='left' colsep='0' rowsep='0'>
17183c15da26Smrg    <?dbfo keep-together="always" ?>
17193c15da26Smrg    <colspec colname='c1' colwidth='1.0*'/>
17203c15da26Smrg    <colspec colname='c2' colwidth='5.0*'/>
17213c15da26Smrg    <colspec colname='c3' colwidth='5.0*'/>
17223c15da26Smrg    <thead>
1723555991fdSmrg      <row>
17243c15da26Smrg        <entry namest="c1" nameend="c3"><emphasis role="bold"><function>InteractDone</function></emphasis></entry>
1725555991fdSmrg      </row>
17263c15da26Smrg    </thead>
17273c15da26Smrg    <tbody>
1728555991fdSmrg      <row>
17293c15da26Smrg        <entry>1</entry>
17303c15da26Smrg        <entry>?</entry>
17313c15da26Smrg        <entry>XSMP</entry>
1732555991fdSmrg      </row>
1733555991fdSmrg      <row>
17343c15da26Smrg        <entry>1</entry>
17353c15da26Smrg        <entry>7</entry>
17363c15da26Smrg        <entry>opcode</entry>
1737555991fdSmrg      </row>
1738555991fdSmrg      <row>
17393c15da26Smrg        <entry>1</entry>
17403c15da26Smrg        <entry>BOOL</entry>
17413c15da26Smrg        <entry>cancel-shutdown</entry>
1742555991fdSmrg      </row>
1743555991fdSmrg      <row>
17443c15da26Smrg        <entry>1</entry>
17453c15da26Smrg        <entry></entry>
17463c15da26Smrg        <entry>unused</entry>
1747555991fdSmrg      </row>
17483c15da26Smrg    </tbody>
17493c15da26Smrg  </tgroup>
17503c15da26Smrg  <tgroup cols='3' align='left' colsep='0' rowsep='0'>
17513c15da26Smrg    <?dbfo keep-together="always" ?>
17523c15da26Smrg    <colspec colname='c1' colwidth='1.0*'/>
17533c15da26Smrg    <colspec colname='c2' colwidth='5.0*'/>
17543c15da26Smrg    <colspec colname='c3' colwidth='5.0*'/>
17553c15da26Smrg    <thead>
1756555991fdSmrg      <row>
17573c15da26Smrg        <entry namest="c1" nameend="c3"><emphasis role="bold"><function>InteractDone</function></emphasis></entry>
1758555991fdSmrg      </row>
17593c15da26Smrg    </thead>
17603c15da26Smrg    <tbody>
1761555991fdSmrg      <row>
17623c15da26Smrg        <entry>1</entry>
17633c15da26Smrg        <entry>?</entry>
17643c15da26Smrg        <entry>XSMP</entry>
1765555991fdSmrg      </row>
1766555991fdSmrg      <row>
17673c15da26Smrg        <entry>1</entry>
17683c15da26Smrg        <entry>7</entry>
17693c15da26Smrg        <entry>opcode</entry>
1770555991fdSmrg      </row>
1771555991fdSmrg      <row>
17723c15da26Smrg        <entry>1</entry>
17733c15da26Smrg        <entry>BOOL</entry>
17743c15da26Smrg        <entry>cancel-shutdown</entry>
1775555991fdSmrg      </row>
1776555991fdSmrg      <row>
17773c15da26Smrg        <entry>1</entry>
17783c15da26Smrg        <entry></entry>
17793c15da26Smrg        <entry>unused</entry>
1780555991fdSmrg      </row>
1781555991fdSmrg      <row>
17823c15da26Smrg        <entry>4</entry>
17833c15da26Smrg        <entry>0</entry>
17843c15da26Smrg        <entry>length of remaining data in 8-byte units</entry>
1785555991fdSmrg      </row>
17863c15da26Smrg    </tbody>
17873c15da26Smrg  </tgroup>
17883c15da26Smrg  <tgroup cols='3' align='left' colsep='0' rowsep='0'>
17893c15da26Smrg    <?dbfo keep-together="always" ?>
17903c15da26Smrg    <colspec colname='c1' colwidth='1.0*'/>
17913c15da26Smrg    <colspec colname='c2' colwidth='5.0*'/>
17923c15da26Smrg    <colspec colname='c3' colwidth='5.0*'/>
17933c15da26Smrg    <thead>
1794555991fdSmrg      <row>
17953c15da26Smrg        <entry namest="c1" nameend="c3"><emphasis role="bold"><function>SaveYourselfDone</function></emphasis></entry>
1796555991fdSmrg      </row>
17973c15da26Smrg    </thead>
17983c15da26Smrg    <tbody>
1799555991fdSmrg      <row>
18003c15da26Smrg        <entry>1</entry>
18013c15da26Smrg        <entry>?</entry>
18023c15da26Smrg        <entry>XSMP</entry>
1803555991fdSmrg      </row>
1804555991fdSmrg      <row>
18053c15da26Smrg        <entry>1</entry>
18063c15da26Smrg        <entry>8</entry>
18073c15da26Smrg        <entry>opcode</entry>
1808555991fdSmrg      </row>
1809555991fdSmrg      <row>
18103c15da26Smrg        <entry>1</entry>
18113c15da26Smrg        <entry>BOOL</entry>
18123c15da26Smrg        <entry>success</entry>
1813555991fdSmrg      </row>
1814555991fdSmrg      <row>
18153c15da26Smrg        <entry>1</entry>
18163c15da26Smrg        <entry></entry>
18173c15da26Smrg        <entry>unused</entry>
1818555991fdSmrg      </row>
1819555991fdSmrg      <row>
18203c15da26Smrg        <entry>4</entry>
18213c15da26Smrg        <entry>0</entry>
18223c15da26Smrg        <entry>length of remaining data in 8-byte units</entry>
1823555991fdSmrg      </row>
18243c15da26Smrg    </tbody>
18253c15da26Smrg  </tgroup>
18263c15da26Smrg  <tgroup cols='3' align='left' colsep='0' rowsep='0'>
18273c15da26Smrg    <?dbfo keep-together="always" ?>
18283c15da26Smrg    <colspec colname='c1' colwidth='1.0*'/>
18293c15da26Smrg    <colspec colname='c2' colwidth='5.0*'/>
18303c15da26Smrg    <colspec colname='c3' colwidth='5.0*'/>
18313c15da26Smrg    <thead>
1832555991fdSmrg      <row>
18333c15da26Smrg        <entry namest="c1" nameend="c3"><emphasis role="bold"><function>Die</function></emphasis></entry>
1834555991fdSmrg      </row>
18353c15da26Smrg    </thead>
18363c15da26Smrg    <tbody>
1837555991fdSmrg      <row>
18383c15da26Smrg        <entry>1</entry>
18393c15da26Smrg        <entry>?</entry>
18403c15da26Smrg        <entry>XSMP</entry>
1841555991fdSmrg      </row>
1842555991fdSmrg      <row>
18433c15da26Smrg        <entry>1</entry>
18443c15da26Smrg        <entry>9</entry>
18453c15da26Smrg        <entry>opcode</entry>
1846555991fdSmrg      </row>
1847555991fdSmrg      <row>
18483c15da26Smrg        <entry>1</entry>
18493c15da26Smrg        <entry></entry>
18503c15da26Smrg        <entry>unused</entry>
1851555991fdSmrg      </row>
1852555991fdSmrg      <row>
18533c15da26Smrg        <entry>4</entry>
18543c15da26Smrg        <entry>0</entry>
18553c15da26Smrg        <entry>length of remaining data in 8-byte units</entry>
1856555991fdSmrg      </row>
18573c15da26Smrg    </tbody>
18583c15da26Smrg  </tgroup>
18593c15da26Smrg  <tgroup cols='3' align='left' colsep='0' rowsep='0'>
18603c15da26Smrg    <?dbfo keep-together="always" ?>
18613c15da26Smrg    <colspec colname='c1' colwidth='1.0*'/>
18623c15da26Smrg    <colspec colname='c2' colwidth='5.0*'/>
18633c15da26Smrg    <colspec colname='c3' colwidth='5.0*'/>
18643c15da26Smrg    <thead>
1865555991fdSmrg      <row>
18663c15da26Smrg        <entry namest="c1" nameend="c3"><emphasis role="bold"><function>ShutdownCancelled</function></emphasis></entry>
1867555991fdSmrg      </row>
18683c15da26Smrg    </thead>
18693c15da26Smrg    <tbody>
1870555991fdSmrg      <row>
18713c15da26Smrg        <entry>1</entry>
18723c15da26Smrg        <entry>?</entry>
18733c15da26Smrg        <entry>XSMP</entry>
1874555991fdSmrg      </row>
1875555991fdSmrg      <row>
18763c15da26Smrg        <entry>1</entry>
18773c15da26Smrg        <entry>10</entry>
18783c15da26Smrg        <entry>opcode</entry>
1879555991fdSmrg      </row>
1880555991fdSmrg      <row>
18813c15da26Smrg        <entry>2</entry>
18823c15da26Smrg        <entry></entry>
18833c15da26Smrg        <entry>unused</entry>
1884555991fdSmrg      </row>
1885555991fdSmrg      <row>
18863c15da26Smrg        <entry>4</entry>
18873c15da26Smrg        <entry>0</entry>
18883c15da26Smrg        <entry>length of remaining data in 8-byte units</entry>
1889555991fdSmrg      </row>
18903c15da26Smrg    </tbody>
18913c15da26Smrg  </tgroup>
18923c15da26Smrg  <tgroup cols='3' align='left' colsep='0' rowsep='0'>
18933c15da26Smrg    <?dbfo keep-together="always" ?>
18943c15da26Smrg    <colspec colname='c1' colwidth='1.0*'/>
18953c15da26Smrg    <colspec colname='c2' colwidth='5.0*'/>
18963c15da26Smrg    <colspec colname='c3' colwidth='5.0*'/>
18973c15da26Smrg    <thead>
1898555991fdSmrg      <row>
18993c15da26Smrg        <entry namest="c1" nameend="c3"><emphasis role="bold"><function>ConnectionClosed</function></emphasis></entry>
1900555991fdSmrg      </row>
19013c15da26Smrg    </thead>
19023c15da26Smrg    <tbody>
1903555991fdSmrg      <row>
19043c15da26Smrg        <entry>1</entry>
19053c15da26Smrg        <entry>?</entry>
19063c15da26Smrg        <entry>XSMP</entry>
1907555991fdSmrg      </row>
1908555991fdSmrg      <row>
19093c15da26Smrg        <entry>1</entry>
19103c15da26Smrg        <entry>11</entry>
19113c15da26Smrg        <entry>opcode</entry>
1912555991fdSmrg      </row>
1913555991fdSmrg      <row>
19143c15da26Smrg        <entry>2</entry>
19153c15da26Smrg        <entry></entry>
19163c15da26Smrg        <entry>unused</entry>
1917555991fdSmrg      </row>
1918555991fdSmrg      <row>
19193c15da26Smrg        <entry>4</entry>
19203c15da26Smrg        <entry>a/8</entry>
19213c15da26Smrg        <entry>length of remaining data in 8-byte units</entry>
1922555991fdSmrg      </row>
1923555991fdSmrg      <row>
19243c15da26Smrg        <entry>a</entry>
19253c15da26Smrg        <entry>LISTofARRAY8</entry>
19263c15da26Smrg        <entry>reason</entry>
1927555991fdSmrg      </row>
19283c15da26Smrg    </tbody>
19293c15da26Smrg  </tgroup>
19303c15da26Smrg  <tgroup cols='3' align='left' colsep='0' rowsep='0'>
19313c15da26Smrg    <?dbfo keep-together="always" ?>
19323c15da26Smrg    <colspec colname='c1' colwidth='1.0*'/>
19333c15da26Smrg    <colspec colname='c2' colwidth='5.0*'/>
19343c15da26Smrg    <colspec colname='c3' colwidth='5.0*'/>
19353c15da26Smrg    <thead>
1936555991fdSmrg      <row>
19373c15da26Smrg        <entry namest="c1" nameend="c3"><emphasis role="bold"><function>SetProperties</function></emphasis></entry>
1938555991fdSmrg      </row>
19393c15da26Smrg    </thead>
19403c15da26Smrg    <tbody>
1941555991fdSmrg      <row>
19423c15da26Smrg        <entry>1</entry>
19433c15da26Smrg        <entry>?</entry>
19443c15da26Smrg        <entry>XSMP</entry>
1945555991fdSmrg      </row>
1946555991fdSmrg      <row>
19473c15da26Smrg        <entry>1</entry>
19483c15da26Smrg        <entry>12</entry>
19493c15da26Smrg        <entry>opcode</entry>
1950555991fdSmrg      </row>
1951555991fdSmrg      <row>
19523c15da26Smrg        <entry>2</entry>
19533c15da26Smrg        <entry></entry>
19543c15da26Smrg        <entry>unused</entry>
1955555991fdSmrg      </row>
1956555991fdSmrg      <row>
19573c15da26Smrg        <entry>4</entry>
19583c15da26Smrg        <entry>a/8</entry>
19593c15da26Smrg        <entry>length of remaining data in 8-byte units</entry>
1960555991fdSmrg      </row>
1961555991fdSmrg      <row>
19623c15da26Smrg        <entry>a</entry>
19633c15da26Smrg        <entry>LISTofPROPERTY</entry>
19643c15da26Smrg        <entry>properties</entry>
1965555991fdSmrg      </row>
19663c15da26Smrg    </tbody>
19673c15da26Smrg  </tgroup>
19683c15da26Smrg  <tgroup cols='3' align='left' colsep='0' rowsep='0'>
19693c15da26Smrg    <?dbfo keep-together="always" ?>
19703c15da26Smrg    <colspec colname='c1' colwidth='1.0*'/>
19713c15da26Smrg    <colspec colname='c2' colwidth='5.0*'/>
19723c15da26Smrg    <colspec colname='c3' colwidth='5.0*'/>
19733c15da26Smrg    <thead>
1974555991fdSmrg      <row>
19753c15da26Smrg        <entry namest="c1" nameend="c3"><emphasis role="bold"><function>DeleteProperties</function></emphasis></entry>
1976555991fdSmrg      </row>
19773c15da26Smrg    </thead>
19783c15da26Smrg    <tbody>
1979555991fdSmrg      <row>
19803c15da26Smrg        <entry>1</entry>
19813c15da26Smrg        <entry>?</entry>
19823c15da26Smrg        <entry>XSMP</entry>
1983555991fdSmrg      </row>
1984555991fdSmrg      <row>
19853c15da26Smrg        <entry>1</entry>
19863c15da26Smrg        <entry>13</entry>
19873c15da26Smrg        <entry>opcode</entry>
1988555991fdSmrg      </row>
1989555991fdSmrg      <row>
19903c15da26Smrg        <entry>2</entry>
19913c15da26Smrg        <entry></entry>
19923c15da26Smrg        <entry>unused</entry>
1993555991fdSmrg      </row>
1994555991fdSmrg      <row>
19953c15da26Smrg        <entry>4</entry>
19963c15da26Smrg        <entry>a/8</entry>
19973c15da26Smrg        <entry>length of remaining data in 8-byte units</entry>
1998555991fdSmrg      </row>
1999555991fdSmrg      <row>
20003c15da26Smrg        <entry>a</entry>
20013c15da26Smrg        <entry>LISTofPROPERTY</entry>
20023c15da26Smrg        <entry>properties</entry>
2003555991fdSmrg      </row>
20043c15da26Smrg    </tbody>
20053c15da26Smrg  </tgroup>
20063c15da26Smrg  <tgroup cols='3' align='left' colsep='0' rowsep='0'>
20073c15da26Smrg    <?dbfo keep-together="always" ?>
20083c15da26Smrg    <colspec colname='c1' colwidth='1.0*'/>
20093c15da26Smrg    <colspec colname='c2' colwidth='5.0*'/>
20103c15da26Smrg    <colspec colname='c3' colwidth='5.0*'/>
20113c15da26Smrg    <thead>
2012555991fdSmrg      <row>
20133c15da26Smrg        <entry namest="c1" nameend="c3"><emphasis role="bold"><function>GetProperties</function></emphasis></entry>
2014555991fdSmrg      </row>
20153c15da26Smrg    </thead>
20163c15da26Smrg    <tbody>
2017555991fdSmrg      <row>
20183c15da26Smrg        <entry>1</entry>
20193c15da26Smrg        <entry>?</entry>
20203c15da26Smrg        <entry>XSMP</entry>
2021555991fdSmrg      </row>
2022555991fdSmrg      <row>
20233c15da26Smrg        <entry>1</entry>
20243c15da26Smrg        <entry>14</entry>
20253c15da26Smrg        <entry>opcode</entry>
2026555991fdSmrg      </row>
2027555991fdSmrg      <row>
20283c15da26Smrg        <entry>2</entry>
20293c15da26Smrg        <entry></entry>
20303c15da26Smrg        <entry>unused</entry>
2031555991fdSmrg      </row>
2032555991fdSmrg      <row>
20333c15da26Smrg        <entry>4</entry>
20343c15da26Smrg        <entry>0</entry>
20353c15da26Smrg        <entry>length of remaining data in 8-byte units</entry>
2036555991fdSmrg      </row>
20373c15da26Smrg    </tbody>
20383c15da26Smrg  </tgroup>
20393c15da26Smrg  <tgroup cols='3' align='left' colsep='0' rowsep='0'>
20403c15da26Smrg    <?dbfo keep-together="always" ?>
20413c15da26Smrg    <colspec colname='c1' colwidth='1.0*'/>
20423c15da26Smrg    <colspec colname='c2' colwidth='5.0*'/>
20433c15da26Smrg    <colspec colname='c3' colwidth='5.0*'/>
20443c15da26Smrg    <thead>
2045555991fdSmrg      <row>
20463c15da26Smrg        <entry namest="c1" nameend="c3"><emphasis role="bold"><function>GetPropertiesReply</function></emphasis></entry>
2047555991fdSmrg      </row>
20483c15da26Smrg    </thead>
20493c15da26Smrg    <tbody>
2050555991fdSmrg      <row>
20513c15da26Smrg        <entry>1</entry>
20523c15da26Smrg        <entry>?</entry>
20533c15da26Smrg        <entry>XSMP</entry>
2054555991fdSmrg      </row>
2055555991fdSmrg      <row>
20563c15da26Smrg        <entry>1</entry>
20573c15da26Smrg        <entry>15</entry>
20583c15da26Smrg        <entry>opcode</entry>
2059555991fdSmrg      </row>
2060555991fdSmrg      <row>
20613c15da26Smrg        <entry>2</entry>
20623c15da26Smrg        <entry></entry>
20633c15da26Smrg        <entry>unused</entry>
2064555991fdSmrg      </row>
2065555991fdSmrg      <row>
20663c15da26Smrg        <entry>4</entry>
20673c15da26Smrg        <entry>a/8</entry>
20683c15da26Smrg        <entry>length of remaining data in 8-byte units</entry>
2069555991fdSmrg      </row>
2070555991fdSmrg      <row>
20713c15da26Smrg        <entry>a</entry>
20723c15da26Smrg        <entry>LISTofPROPERTY</entry>
20733c15da26Smrg        <entry>properties</entry>
2074555991fdSmrg      </row>
20753c15da26Smrg    </tbody>
20763c15da26Smrg  </tgroup>
20773c15da26Smrg  <tgroup cols='3' align='left' colsep='0' rowsep='0'>
20783c15da26Smrg    <?dbfo keep-together="always" ?>
20793c15da26Smrg    <colspec colname='c1' colwidth='1.0*'/>
20803c15da26Smrg    <colspec colname='c2' colwidth='5.0*'/>
20813c15da26Smrg    <colspec colname='c3' colwidth='5.0*'/>
20823c15da26Smrg    <thead>
2083555991fdSmrg      <row>
20843c15da26Smrg        <entry namest="c1" nameend="c3"><emphasis role="bold"><function>SaveYourselfPhase2Request</function></emphasis></entry>
2085555991fdSmrg      </row>
20863c15da26Smrg    </thead>
20873c15da26Smrg    <tbody>
2088555991fdSmrg      <row>
20893c15da26Smrg        <entry>1</entry>
20903c15da26Smrg        <entry>?</entry>
20913c15da26Smrg        <entry>XSMP</entry>
2092555991fdSmrg      </row>
2093555991fdSmrg      <row>
20943c15da26Smrg        <entry>1</entry>
20953c15da26Smrg        <entry>16</entry>
20963c15da26Smrg        <entry>opcode</entry>
2097555991fdSmrg      </row>
2098555991fdSmrg      <row>
20993c15da26Smrg        <entry>2</entry>
21003c15da26Smrg        <entry></entry>
21013c15da26Smrg        <entry>unused</entry>
2102555991fdSmrg      </row>
2103555991fdSmrg      <row>
21043c15da26Smrg        <entry>4</entry>
21053c15da26Smrg        <entry>0</entry>
21063c15da26Smrg        <entry>length of remaining data in 8-byte units</entry>
2107555991fdSmrg      </row>
21083c15da26Smrg    </tbody>
21093c15da26Smrg  </tgroup>
21103c15da26Smrg  <tgroup cols='3' align='left' colsep='0' rowsep='0'>
21113c15da26Smrg    <?dbfo keep-together="always" ?>
21123c15da26Smrg    <colspec colname='c1' colwidth='1.0*'/>
21133c15da26Smrg    <colspec colname='c2' colwidth='5.0*'/>
21143c15da26Smrg    <colspec colname='c3' colwidth='5.0*'/>
21153c15da26Smrg    <thead>
2116555991fdSmrg      <row>
21173c15da26Smrg        <entry namest="c1" nameend="c3"><emphasis role="bold"><function>SaveYourselfPhase2</function></emphasis></entry>
2118555991fdSmrg      </row>
21193c15da26Smrg    </thead>
21203c15da26Smrg    <tbody>
2121555991fdSmrg      <row>
21223c15da26Smrg        <entry>1</entry>
21233c15da26Smrg        <entry>?</entry>
21243c15da26Smrg        <entry>XSMP</entry>
2125555991fdSmrg      </row>
2126555991fdSmrg      <row>
21273c15da26Smrg        <entry>1</entry>
21283c15da26Smrg        <entry>17</entry>
21293c15da26Smrg        <entry>opcode</entry>
2130555991fdSmrg      </row>
2131555991fdSmrg      <row>
21323c15da26Smrg        <entry>2</entry>
21333c15da26Smrg        <entry></entry>
21343c15da26Smrg        <entry>unused</entry>
2135555991fdSmrg      </row>
2136555991fdSmrg      <row>
21373c15da26Smrg        <entry>4</entry>
21383c15da26Smrg        <entry>0</entry>
21393c15da26Smrg        <entry>length of remaining data in 8-byte units</entry>
2140555991fdSmrg      </row>
21413c15da26Smrg    </tbody>
21423c15da26Smrg  </tgroup>
21433c15da26Smrg  <tgroup cols='3' align='left' colsep='0' rowsep='0'>
21443c15da26Smrg    <?dbfo keep-together="always" ?>
21453c15da26Smrg    <colspec colname='c1' colwidth='1.0*'/>
21463c15da26Smrg    <colspec colname='c2' colwidth='5.0*'/>
21473c15da26Smrg    <colspec colname='c3' colwidth='5.0*'/>
21483c15da26Smrg    <thead>
2149555991fdSmrg      <row>
21503c15da26Smrg        <entry namest="c1" nameend="c3"><emphasis role="bold"><function>SaveComplete</function></emphasis></entry>
2151555991fdSmrg      </row>
21523c15da26Smrg    </thead>
21533c15da26Smrg    <tbody>
2154555991fdSmrg      <row>
21553c15da26Smrg        <entry>1</entry>
21563c15da26Smrg        <entry>?</entry>
21573c15da26Smrg        <entry>XSMP</entry>
2158555991fdSmrg      </row>
2159555991fdSmrg      <row>
21603c15da26Smrg        <entry>1</entry>
21613c15da26Smrg        <entry>18</entry>
21623c15da26Smrg        <entry>opcode</entry>
2163555991fdSmrg      </row>
2164555991fdSmrg      <row>
21653c15da26Smrg        <entry>2</entry>
21663c15da26Smrg        <entry></entry>
21673c15da26Smrg        <entry>unused</entry>
2168555991fdSmrg      </row>
2169555991fdSmrg      <row>
21703c15da26Smrg        <entry>4</entry>
21713c15da26Smrg        <entry>0</entry>
21723c15da26Smrg        <entry>length of remaining data in 8-byte units</entry>
2173555991fdSmrg      </row>
21743c15da26Smrg    </tbody>
2175555991fdSmrg  </tgroup>
2176555991fdSmrg</informaltable>
2177555991fdSmrg
2178555991fdSmrg  </sect1>
2179555991fdSmrg</chapter>
2180555991fdSmrg
21813c15da26Smrg<chapter id='Predefined_Properties'>
2182555991fdSmrg  <title>Predefined Properties</title>
2183555991fdSmrg  <para>
2184555991fdSmrgAll property values are stored in a LISTofARRAY8.  If the type of the
2185555991fdSmrgproperty is CARD8, the value is stored as a LISTofARRAY8 with one
2186555991fdSmrgARRAY8 that is one byte long.  That single byte contains the CARD8.
2187555991fdSmrgIf the type of the property is ARRAY8, the value is stored in the
2188555991fdSmrgfirst element of a single element LISTofARRAY8.
2189555991fdSmrg  </para>
2190555991fdSmrg
2191555991fdSmrg  <para>
2192555991fdSmrgThe required properties must be set each time a client connects with
2193555991fdSmrgthe SM.  The properties must be set after the client
2194555991fdSmrgsends <function>RegisterClient</function> and before the client
2195555991fdSmrgsends <function>SaveYourselfDone</function> Otherwise, the behavior of
2196555991fdSmrgthe session manager is not defined.
2197555991fdSmrg  </para>
2198555991fdSmrg
2199555991fdSmrg  <para>
2200555991fdSmrgClients may set, get, and delete nonstandard properties.  The lifetime
2201555991fdSmrgof stored properties does not extend into subsequent sessions.
2202555991fdSmrg  </para>
2203555991fdSmrg
22043c15da26Smrg<informaltable frame='topbot'>
22053c15da26Smrg  <tgroup cols='4' align='left' colsep='0' rowsep='0'>
22063c15da26Smrg    <colspec colname='c1' colwidth='2.0*' />
22073c15da26Smrg    <colspec colname='c2' colwidth='2.0*' />
22083c15da26Smrg    <colspec colname='c3' colwidth='2.0*' />
22093c15da26Smrg    <colspec colname='c4' colwidth='1.0*' />
2210555991fdSmrg    <thead>
22113c15da26Smrg      <row rowsep='1'>
2212555991fdSmrg        <entry>Name</entry>
2213555991fdSmrg        <entry>Type</entry>
2214555991fdSmrg        <entry>Posix Type</entry>
2215555991fdSmrg        <entry>Required?</entry>
2216555991fdSmrg      </row>
2217555991fdSmrg    </thead>
2218555991fdSmrg    <tbody>
2219555991fdSmrg      <row>
2220555991fdSmrg        <entry>CloneCommand</entry>
2221555991fdSmrg        <entry>OS-specific</entry>
2222555991fdSmrg        <entry>LISTofARRAY8</entry>
2223555991fdSmrg        <entry>Yes</entry>
2224555991fdSmrg      </row>
2225555991fdSmrg      <row>
2226555991fdSmrg        <entry>CurrentDirectory</entry>
2227555991fdSmrg        <entry>OS-specific</entry>
2228555991fdSmrg        <entry>ARRAY8</entry>
2229555991fdSmrg        <entry>No</entry>
2230555991fdSmrg      </row>
2231555991fdSmrg      <row>
2232555991fdSmrg        <entry>DiscardCommand</entry>
2233555991fdSmrg        <entry>OS-specific</entry>
2234555991fdSmrg        <entry>LISTofARRAY8</entry>
2235555991fdSmrg        <entry>No*</entry>
2236555991fdSmrg      </row>
2237555991fdSmrg      <row>
2238555991fdSmrg        <entry>Environment</entry>
2239555991fdSmrg        <entry>OS-specific</entry>
2240555991fdSmrg        <entry>LISTofARRAY8</entry>
2241555991fdSmrg        <entry>No</entry>
2242555991fdSmrg      </row>
2243555991fdSmrg      <row>
2244555991fdSmrg        <entry>ProcessID</entry>
2245555991fdSmrg        <entry>OS-specific</entry>
2246555991fdSmrg        <entry>ARRAY8</entry>
2247555991fdSmrg        <entry>No</entry>
2248555991fdSmrg      </row>
2249555991fdSmrg      <row>
2250555991fdSmrg        <entry>Program</entry>
2251555991fdSmrg        <entry>OS-specific</entry>
2252555991fdSmrg        <entry>ARRAY8</entry>
2253555991fdSmrg        <entry>Yes</entry>
2254555991fdSmrg      </row>
2255555991fdSmrg      <row>
2256555991fdSmrg        <entry>RestartCommand</entry>
2257555991fdSmrg        <entry>OS-specific</entry>
2258555991fdSmrg        <entry>LISTofARRAY8</entry>
2259555991fdSmrg        <entry>Yes</entry>
2260555991fdSmrg      </row>
2261555991fdSmrg      <row>
2262555991fdSmrg        <entry>ResignCommand</entry>
2263555991fdSmrg        <entry>OS-specific</entry>
2264555991fdSmrg        <entry>LISTofARRAY8</entry>
2265555991fdSmrg        <entry>No</entry>
2266555991fdSmrg      </row>
2267555991fdSmrg      <row>
2268555991fdSmrg        <entry>RestartStyleHint</entry>
2269555991fdSmrg        <entry>CARD8</entry>
2270555991fdSmrg        <entry>CARD8</entry>
2271555991fdSmrg        <entry>No</entry>
2272555991fdSmrg      </row>
2273555991fdSmrg      <row>
2274555991fdSmrg        <entry>ShutdownCommand</entry>
2275555991fdSmrg        <entry>OS-specific</entry>
2276555991fdSmrg        <entry>LISTofARRAY8</entry>
2277555991fdSmrg        <entry>No</entry>
2278555991fdSmrg      </row>
2279555991fdSmrg      <row>
2280555991fdSmrg        <entry>UserID</entry>
2281555991fdSmrg        <entry>ARRAY8</entry>
2282555991fdSmrg        <entry>ARRAY8</entry>
2283555991fdSmrg        <entry>Yes</entry>
2284555991fdSmrg      </row>
2285555991fdSmrg    </tbody>
2286555991fdSmrg  </tgroup>
2287555991fdSmrg</informaltable>
2288555991fdSmrg
2289555991fdSmrg  <para>
2290555991fdSmrg* Required if any state is stored in an external repository (e.g., state file).
2291555991fdSmrg  </para>
2292555991fdSmrg
2293555991fdSmrg  <variablelist remap='IP'>
2294555991fdSmrg    <varlistentry>
2295555991fdSmrg      <term>CloneCommand</term>
2296555991fdSmrg      <listitem> <para>
2297555991fdSmrgThis is like the <function>RestartCommand</function> except it
2298555991fdSmrgrestarts a copy of the application.  The only difference is that the
2299555991fdSmrgapplication doesn't supply its client id at register time.  On <acronym>POSIX</acronym>
2300555991fdSmrgsystems the type should be a LISTofARRAY8.
2301555991fdSmrg      </para></listitem>
2302555991fdSmrg    </varlistentry>
2303555991fdSmrg    <varlistentry>
2304555991fdSmrg      <term>CurrentDirectory</term>
2305555991fdSmrg      <listitem><para>
2306555991fdSmrgOn <acronym>POSIX</acronym>-based systems specifies the value of the current directory that
2307555991fdSmrgneeds to be set up prior to starting the program and should be of type ARRAY8.
2308555991fdSmrg      </para></listitem>
2309555991fdSmrg    </varlistentry>
2310555991fdSmrg    <varlistentry>
2311555991fdSmrg      <term>DiscardCommand</term>
2312555991fdSmrg      <listitem><para>
2313555991fdSmrgThe discard command contains a command that when delivered to the host
2314555991fdSmrgthat the client is running on (determined from the connection), will
2315555991fdSmrgcause it to discard any information about the current state.  If this
2316555991fdSmrgcommand is not specified, the SM will assume that all of the client's
2317555991fdSmrgstate is encoded in the <function>Restart&shy;Command</function> On
2318555991fdSmrg<acronym>POSIX</acronym> systems the type should be LISTofARRAY8.
2319555991fdSmrg      </para></listitem>
2320555991fdSmrg    </varlistentry>
2321555991fdSmrg    <varlistentry>
2322555991fdSmrg      <term>Environment</term>
2323555991fdSmrg      <listitem><para>
2324555991fdSmrgOn <acronym>POSIX</acronym> based systems, this will be of type LISTofARRAY8 where the
2325555991fdSmrgARRAY8s alternate between environment variable name and environment
2326555991fdSmrgvariable value.
2327555991fdSmrg      </para></listitem>
2328555991fdSmrg    </varlistentry>
2329555991fdSmrg    <varlistentry>
2330555991fdSmrg      <term>ProcessID</term>
2331555991fdSmrg      <listitem><para>
2332555991fdSmrgThis specifies an OS-specific identifier for the process.  On <acronym>POSIX</acronym>
2333555991fdSmrgsystems this should of type ARRAY8 and contain the return value of
2334555991fdSmrggetpid() turned into a Latin-1 (decimal) string.
2335555991fdSmrg      </para></listitem>
2336555991fdSmrg    </varlistentry>
2337555991fdSmrg    <varlistentry>
2338555991fdSmrg      <term>Program</term>
2339555991fdSmrg      <listitem><para>
2340555991fdSmrgThe name of the program that is running.  On <acronym>POSIX</acronym> systems this should
2341555991fdSmrgbe the first parameter passed to execve and should be of type ARRAY8.
2342555991fdSmrg      </para></listitem>
2343555991fdSmrg    </varlistentry>
2344555991fdSmrg    <varlistentry>
2345555991fdSmrg      <term>RestartCommand</term>
2346555991fdSmrg      <listitem><para>
2347555991fdSmrgThe restart command contains a command that when delivered to the host
2348555991fdSmrgthat the client is running on (determined from the connection), will
2349555991fdSmrgcause the client to restart in its current state.  On <acronym>POSIX</acronym>-based
2350555991fdSmrgsystems this is of type LISTofARRAY8 and each of the elements in the
2351555991fdSmrgarray represents an element in the argv array.  This restart command
2352555991fdSmrgshould ensure that the client restarts with the specified
2353555991fdSmrgclient-ID.
2354555991fdSmrg      </para></listitem>
2355555991fdSmrg    </varlistentry>
2356555991fdSmrg    <varlistentry>
2357555991fdSmrg      <term>ResignCommand</term>
2358555991fdSmrg      <listitem>
2359555991fdSmrg	<para>
2360555991fdSmrgA client that sets the <function>RestartStyleHint</function>
2361555991fdSmrgto <function>RestartAnyway</function> uses this property to specify a
2362555991fdSmrgcommand that undoes the effect of the client and removes any saved
2363555991fdSmrgstate.
2364555991fdSmrg	</para>
2365555991fdSmrg	<note><title>Example</title><para>
2366555991fdSmrgA user runs xmodmap.  xmodmap registers with the SM,
2367555991fdSmrgsets <function>Restart&shy;Style&shy;Hint</function>
2368555991fdSmrgto <function>Restart&shy;Anyway</function> and then terminates.  In
2369555991fdSmrgorder to allow the SM (at the user's request) to undo this, xmodmap
2370555991fdSmrgwould register a <function>Resign&shy;Command</function> that undoes
2371555991fdSmrgthe effects of the xmodmap.
2372555991fdSmrg	</para></note>
2373555991fdSmrg      </listitem>
2374555991fdSmrg    </varlistentry>
2375555991fdSmrg    <varlistentry>
2376555991fdSmrg      <term>RestartStyleHint</term>
2377555991fdSmrg      <listitem>
2378555991fdSmrg	<para>
2379555991fdSmrgIf the RestartStyleHint property is present, it will contain the style
2380555991fdSmrgof restarting the client prefers.  If this flag isn't
2381555991fdSmrgspecified, <function>RestartIfRunning</function> is assumed.  The
2382555991fdSmrgpossible values are as follows:
2383555991fdSmrg	</para>
2384555991fdSmrg
23853c15da26Smrg<informaltable frame='topbot'>
23863c15da26Smrg  <?dbfo keep-together="always" ?>
23873c15da26Smrg  <tgroup cols='2' align='left' colsep='0' rowsep='0'>
23883c15da26Smrg    <colspec colname='c1' colwidth='1.0*'/>
23893c15da26Smrg    <colspec colname='c2' colwidth='2.5*'/>
2390555991fdSmrg    <thead>
23913c15da26Smrg      <row rowsep='1'>
23923c15da26Smrg        <entry>Name</entry>
23933c15da26Smrg        <entry>Value</entry>
2394555991fdSmrg      </row>
2395555991fdSmrg    </thead>
2396555991fdSmrg    <tbody>
2397555991fdSmrg      <row>
23983c15da26Smrg        <entry>RestartIfRunning</entry>
23993c15da26Smrg        <entry>0</entry>
2400555991fdSmrg      </row>
2401555991fdSmrg      <row>
24023c15da26Smrg        <entry>RestartAnyway</entry>
24033c15da26Smrg        <entry>1</entry>
2404555991fdSmrg      </row>
2405555991fdSmrg      <row>
24063c15da26Smrg        <entry>RestartImmediately</entry>
24073c15da26Smrg        <entry>2</entry>
2408555991fdSmrg      </row>
2409555991fdSmrg      <row>
24103c15da26Smrg        <entry>RestartNever</entry>
24113c15da26Smrg        <entry>3</entry>
2412555991fdSmrg      </row>
2413555991fdSmrg    </tbody>
2414555991fdSmrg  </tgroup>
2415555991fdSmrg</informaltable>
2416555991fdSmrg
2417555991fdSmrg	<para>
2418555991fdSmrgThe <function>RestartIfRunning</function> style is used in the usual
2419555991fdSmrgcase.  The client should be restarted in the next session if it is
2420555991fdSmrgconnected to the session manager at the end of the current session.
2421555991fdSmrg	</para>
2422555991fdSmrg
2423555991fdSmrg	<para>
2424555991fdSmrgThe <function>RestartAnyway</function> style is used to tell the SM
2425555991fdSmrgthat the application should be restarted in the next session even if
2426555991fdSmrgit exits before the current session is terminated.  It should be noted
2427555991fdSmrgthat this is only a hint and the SM will follow the policies specified
2428555991fdSmrgby its users in determining what applications to restart.
2429555991fdSmrg	</para>
2430555991fdSmrg
2431555991fdSmrg	<note><title>Rationale</title><para>
2432555991fdSmrgThis can be specified by a client which supports (as MS-Windows
2433555991fdSmrgclients do) a means for the user to indicate while exiting that
2434555991fdSmrgrestarting is desired.  It can also be used for clients that spawn
2435555991fdSmrgother clients and then go away, but which want to be restarted.
2436555991fdSmrg	</para></note>
2437555991fdSmrg
2438555991fdSmrg	<para>
2439555991fdSmrgA client that uses <function>RestartAnyway</function> should also set
2440555991fdSmrgthe <function>ResignCommand</function> and <function>ShutdownCommand</function>
2441555991fdSmrgproperties to commands that undo the state of the client after it exits.
2442555991fdSmrg	</para>
2443555991fdSmrg
2444555991fdSmrg	<para>
2445555991fdSmrgThe <function>RestartImmediately</function> style is
2446555991fdSmrglike <function>RestartAnyway</function> but in addition, the client is
2447555991fdSmrgmeant to run continuously.  If the client exits, the SM should try to
2448555991fdSmrgrestart it in the current session.
2449555991fdSmrg	</para>
2450555991fdSmrg
2451555991fdSmrg	<note><title>Advice to Implementors</title><para>
2452555991fdSmrgIt would be wise to sanity-check the frequency which
2453555991fdSmrgwhich <function>RestartImmediately</function> clients are restarted,
2454555991fdSmrgto avoid a sick client being restarted continuously.
2455555991fdSmrg	</para></note>
2456555991fdSmrg
2457555991fdSmrg	<para>
2458555991fdSmrgThe <function>RestartNever</function> style specifies that the client
2459555991fdSmrgdoes not wish to be restarted in the next session.
2460555991fdSmrg	</para>
2461555991fdSmrg
2462555991fdSmrg	<note><title>Advice to Implementors</title> <para>
2463555991fdSmrgThis should be used rarely, if at all.  It will cause the client to be
2464555991fdSmrgsilently left out of sessions when they are restarted and will
2465555991fdSmrgprobably be confusing to users.
2466555991fdSmrg	</para></note> <!-- remap='NE' -->
2467555991fdSmrg	<!-- .RE -->
2468555991fdSmrg      </listitem>
2469555991fdSmrg    </varlistentry>
2470555991fdSmrg    <varlistentry>
2471555991fdSmrg      <term>ShutdownCommand</term>
2472555991fdSmrg      <listitem>
2473555991fdSmrg	<para>
2474555991fdSmrgThis command is executed at shutdown time to clean up after a client
2475555991fdSmrgthat is no longer running but retained its state by
2476555991fdSmrgsetting <function>RestartStyleHint</function>
2477555991fdSmrgto <function>RestartAnyway</function> The command must not remove any
2478555991fdSmrgsaved state as the client is still part of the session.
2479555991fdSmrg	</para>
2480555991fdSmrg	<note><title>Example</title><para>
2481555991fdSmrgA client is run at start up time that turns on a camera.  This client
2482555991fdSmrgthen exits.  At session shutdown, the user wants the camera turned
2483555991fdSmrgoff.  This client would set the <function>Restart&shy;Style&shy;Hint</function>
2484555991fdSmrgto <function>Restart&shy;Anyway</function> and would register a
2485555991fdSmrg<function>Shutdown&shy;Command</function> that would turn off the camera.
2486555991fdSmrg	</para></note>
2487555991fdSmrg      </listitem>
2488555991fdSmrg    </varlistentry>
2489555991fdSmrg    <varlistentry>
2490555991fdSmrg      <term>UserID</term>
2491555991fdSmrg    <listitem><para>
2492555991fdSmrgSpecifies the user's ID.  On <acronym>POSIX</acronym>-based systems
2493555991fdSmrgthis will contain the the user's name (the <structfield>pw_name</structfield>
2494555991fdSmrgfield of <structname>struct passwd</structname>).
2495555991fdSmrg    </para></listitem>
2496555991fdSmrg    </varlistentry>
2497555991fdSmrg  </variablelist>
2498555991fdSmrg</chapter>
2499555991fdSmrg</book>
2500