botsense  3.2.0
RoadNarrows Client-Server Proxied Services Framework
bsNullMsgs.py
Go to the documentation of this file.
1 ##############################################################################
2 #
3 # File: bsNullMsgs.py
4 #
5 
6 """
7 bsNullMsgs.py
8 """
9 
10 ## \file
11 ##
12 ## \brief BotSense bsProxy server - client /dev/null NetMsgs XML Definition
13 ##
14 ## \warning This file was auto-generated on 2018.08.10 13:54:23 from the NetMsgs
15 ## XML specification bsNullMsgs.xml.
16 ##
17 ## \par Copyright:
18 ## (C) 2018. RoadNarrows LLC
19 ## (http://www.roadnarrows.com)
20 ## All Rights Reserved
21 ##
22 ##############################################################################
23 
24 
25 import NetMsgs.NetMsgsBase as nmBase
26 from NetMsgs.NetMsgsLibITV import NetMsgsITV
27 
28 
29 # -----------------------------------------------------------------------------
30 # BsNull Message Id Enumeration
31 # -----------------------------------------------------------------------------
32 
34  """ BsNull Message Id Enumeration class. """
35  NoId = 0 # no message id
36  ReqWrite = 1 # ReqWrite
37  RspWrite = 2 # RspWrite
38  NumOf = 3 # number of message ids
39 ##
40 
41 
42 # -----------------------------------------------------------------------------
43 # Message Definition Set
44 # -----------------------------------------------------------------------------
45 
46 ## ReqWrite Message Definition
47 BsNullMsgDefReqWrite = {
48  'fielddef': [
49  {
50  'fid': 1,
51  'ftype': '[',
52  'max_count': nmBase.NMVectorMaxCount,
53  'name': 'writebuf',
54  'vdef': {
55  'fid': nmBase.NMFIdNone,
56  'ftype': 'B',
57  'max_count': 1,
58  'name': 'writebuf_item',
59  },
60  },
61  ],
62  'ftype': '{',
63  'max_count': 1,
64  'msgid': BsNullMsgId.ReqWrite,
65  'name': 'ReqWrite',
66 }
67 ##
68 
69 ## RspWrite Message Definition
70 BsNullMsgDefRspWrite = {
71  'fielddef': [
72  {'fid':1, 'ftype':'B', 'max_count':1, 'name':'byteswritten', },
73  ],
74  'ftype': '{',
75  'max_count': 1,
76  'msgid': BsNullMsgId.RspWrite,
77  'name': 'RspWrite',
78 }
79 ##
80 
81 ## BsNull Message Definition Set Dictionary
82 BsNullSetMsgDef = {
83  BsNullMsgId.ReqWrite: BsNullMsgDefReqWrite,
84  BsNullMsgId.RspWrite: BsNullMsgDefRspWrite,
85 }
86 ##
87 
88 
89 # -----------------------------------------------------------------------------
90 # CLASS: BsNullNetMsgs
91 # -----------------------------------------------------------------------------
92 
93 class BsNullNetMsgs(NetMsgsITV):
94  """ BsNull NetMsgs Class. """
95 
96  #--
97  def __init__(self, **kwargs):
98  """ BsNull NetMsgs initialization. """
99  kwargs['msgsetname'] = 'BsNullMsgSet'
100  NetMsgsITV.__init__(self, BsNullSetMsgDef, **kwargs)
101  ##
102 ##