botsense  3.2.0
RoadNarrows Client-Server Proxied Services Framework
bsProxyMsgs.xml
1 <!--
2  - Package: BotSense
3  -
4  - Library: libbsclient
5  -
6  - File: bsProxyMsg.xml
7  -
8 - See http://docs.python.org/library/struct.html
9 /*!
10  $LastChangedDate$
11  $Rev$
12 
13  \brief BotSense bsProxy server - client NetMsgs XML definitions.
14 
15  \author Robin Knight (robin.knight@roadnarrows.com)
16 
17  - \copyright
18  - \h_copy 2009-2017. RoadNarrows LLC.\n
19  - http://www.roadnarrows.com\n
20  - All Rights Reserved
21 */
22  - Permission is hereby granted, without written agreement and without
23  - license or royalty fees, to use, copy, modify, and distribute this
24  - software and its documentation for any purpose, provided that
25  - (1) The above copyright notice and the following two paragraphs
26  - appear in all copies of the source code and (2) redistributions
27  - including binaries reproduces these notices in the supporting
28  - documentation. Substantial modifications to this software may be
29  - copyrighted by their authors and need not follow the licensing terms
30  - described here, provided that the new terms are clearly indicated in
31  - all files where they apply.
32  -
33  - IN NO EVENT SHALL THE AUTHOR, ROADNARROWS LLC, OR ANY MEMBERS/EMPLOYEES
34  - OF ROADNARROW LLC OR DISTRIBUTORS OF THIS SOFTWARE BE LIABLE TO ANY
35  - PARTY FOR DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL
36  - DAMAGES ARISING OUT OF THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION,
37  - EVEN IF THE AUTHORS OR ANY OF THE ABOVE PARTIES HAVE BEEN ADVISED OF
38  - THE POSSIBILITY OF SUCH DAMAGE.
39  -
40  - THE AUTHOR AND ROADNARROWS LLC SPECIFICALLY DISCLAIM ANY WARRANTIES,
41  - INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
42  - FITNESS FOR A PARTICULAR PURPOSE. THE SOFTWARE PROVIDED HEREUNDER IS ON AN
43  - "AS IS" BASIS, AND THE AUTHORS AND DISTRIBUTORS HAVE NO OBLIGATION TO
44  - PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
45  -
46 -->
47 <netmsgs encoding="itv" endian="big">
48 
49  <!-- ........................................................................
50  - Meta Data to Tweak Source Generation
51  ....................................................................... -->
52  <meta>
53  <brief>
54 BotSense client application - bsProxy server-terminated core messages.
55  </brief>
56  <ns>BsProxy</ns>
57  <prologue lang="h">
58 #include "botsense/BotSense.h"
59  </prologue>
60  <epilogue lang="h" />
61  <prologue lang="c" />
62  <epilogue lang="c" />
63  <prologue lang="python">
64 from BotSense.BotSenseCore import BSPROXY_VCONN_CLIENT_MAX
65  </prologue>
66  <epilogue lang="python" />
67  </meta>
68 
69  <!-- ........................................................................
70  - Extended Field Types (Optional)
71  ....................................................................... -->
72  <field_types>
73  </field_types>
74 
75  <!-- ........................................................................
76  - Message Definitions
77  ....................................................................... -->
78  <msg_types>
79 
80  <!-- Common Ok Response (available for server and all modules) -->
81  <msgdef msgid="RspOk" />
82 
83  <!-- Common Error Response (available for server and all modules) -->
84  <msgdef msgid="RspErr">
85  <fielddef fname="ecode" ftype="u8" />
86  <fielddef fname="emsg" ftype="string" />
87  </msgdef>
88 
89  <!-- Loopback Request (server) -->
90  <msgdef msgid="ReqLoopback">
91  <fielddef fname="cdata" ftype="string" />
92  </msgdef>
93 
94  <!-- Loopback Response -->
95  <msgdef msgid="RspLoopback">
96  <fielddef fname="cdata" ftype="string" />
97  </msgdef>
98 
99  <!-- Set Logging Level Request (server) -->
100  <msgdef msgid="ReqSetLogging">
101  <fielddef fname="level" ftype="s32" />
102  </msgdef>
103 
104  <!-- Get Server Version Request (server) -->
105  <msgdef msgid="ReqGetVersion" />
106 
107  <!-- Get Server Version Response -->
108  <msgdef msgid="RspGetVersion">
109  <fielddef fname="version" ftype="string" />
110  </msgdef>
111 
112  <!-- Enable/Disable Message Tracing Request (server and module) -->
113  <msgdef msgid="ReqMsgTrace">
114  <fielddef fname="vconn" ftype="u8" />
115  <fielddef fname="trace" ftype="bool" />
116  </msgdef>
117 
118  <!-- Open Proxied Device (server and module) -->
119  <msgdef msgid="ReqDevOpen">
120  <fielddef fname="trace" ftype="bool" />
121  <fielddef fname="devname" ftype="string" />
122  <fielddef fname="modname" ftype="string" />
123  <fielddef fname="argbuf" ftype="u8[]" />
124  </msgdef>
125 
126  <!-- Open Proxied Device Response -->
127  <msgdef msgid="RspDevOpen">
128  <fielddef fname="vconn" ftype="u8" />
129  </msgdef>
130 
131  <!-- Close Proxied Device (server and module) -->
132  <msgdef msgid="ReqDevClose">
133  <fielddef fname="vconn" ftype="u8" />
134  </msgdef>
135 
136  <!-- Get Client's List of Virtual Connection Handles Request (server) -->
137  <msgdef msgid="ReqGetVConnList" />
138 
139  <!-- Get Client's List of Virtual Connection Handles Response -->
140  <msgdef msgid="RspGetVConnList">
141  <fielddef fname="vconn" ftype="u8[]" size="BSPROXY_VCONN_CLIENT_MAX" />
142  </msgdef>
143 
144  <!-- Get Client's Virtual Connection Info Request (server and module) -->
145  <msgdef msgid="ReqGetVConnInfo">
146  <fielddef fname="vconn" ftype="u8" />
147  </msgdef>
148 
149  <!-- Get Client's Proxied Device-Module Info Response -->
150  <msgdef msgid="RspGetVConnInfo">
151  <fielddef fname="vconn" ftype="u8" />
152  <fielddef fname="rd" ftype="s32" />
153  <fielddef fname="client" ftype="string" />
154  <fielddef fname="devuri" ftype="string" />
155  <fielddef fname="moduri" ftype="string" />
156  <fielddef fname="modver" ftype="string" />
157  <fielddef fname="moddate" ftype="string" />
158  </msgdef>
159 
160  </msg_types>
161 
162 </netmsgs>