maxcube-client 0.5.0 → 0.5.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +4 -0
- data/data/save/20180214-2023/recv.data +12 -0
- data/data/save/20180214-2023/recv.yaml +152 -0
- data/data/save/20180214-2023/sent.data +10 -0
- data/data/save/20180214-2023/sent.yaml +26 -0
- data/data/save/20180214-2230/recv.data +2 -0
- data/data/save/20180214-2230/recv.yaml +68 -0
- data/data/save/20180214-2230/sent.data +1 -0
- data/data/save/20180214-2230/sent.yaml +19 -0
- data/data/save/20180215-0057/recv.data +3 -0
- data/data/save/20180215-0057/recv.yaml +69 -0
- data/data/save/20180215-0057/sent.data +2 -0
- data/data/save/20180215-0057/sent.yaml +22 -0
- data/data/save/20180216-1641/recv.data +4 -0
- data/data/save/20180216-1641/recv.yaml +133 -0
- data/data/save/20180216-1641/sent.data +2 -0
- data/data/save/20180216-1641/sent.yaml +3 -0
- data/lib/maxcube/version.rb +1 -1
- data/maxcube-client.gemspec +5 -6
- data/spec/msg_spec.rb +2117 -0
- data/spec/spec_helper.rb +7 -0
- metadata +21 -75
- data/.gitignore +0 -6
- data/.rubocop.yml +0 -29
- data/.yardopts +0 -1
- data/Gemfile +0 -5
- data/bin/console +0 -8
- data/bin/maxcube-client +0 -6
- data/bin/sample_server +0 -13
- data/bin/sample_socket +0 -13
- data/bin/setup +0 -6
- data/doc/MaxCube.html +0 -502
- data/doc/MaxCube/Messages.html +0 -1927
- data/doc/MaxCube/Messages/Handler.html +0 -2912
- data/doc/MaxCube/Messages/InvalidMessage.html +0 -140
- data/doc/MaxCube/Messages/InvalidMessageBody.html +0 -264
- data/doc/MaxCube/Messages/InvalidMessageFormat.html +0 -247
- data/doc/MaxCube/Messages/InvalidMessageLength.html +0 -247
- data/doc/MaxCube/Messages/InvalidMessageType.html +0 -263
- data/doc/MaxCube/Messages/Parser.html +0 -520
- data/doc/MaxCube/Messages/Serializer.html +0 -701
- data/doc/MaxCube/Messages/TCP.html +0 -172
- data/doc/MaxCube/Messages/TCP/Handler.html +0 -1396
- data/doc/MaxCube/Messages/TCP/Parser.html +0 -462
- data/doc/MaxCube/Messages/TCP/Parser/MessageA.html +0 -186
- data/doc/MaxCube/Messages/TCP/Parser/MessageC.html +0 -1077
- data/doc/MaxCube/Messages/TCP/Parser/MessageF.html +0 -206
- data/doc/MaxCube/Messages/TCP/Parser/MessageH.html +0 -338
- data/doc/MaxCube/Messages/TCP/Parser/MessageL.html +0 -535
- data/doc/MaxCube/Messages/TCP/Parser/MessageM.html +0 -510
- data/doc/MaxCube/Messages/TCP/Parser/MessageN.html +0 -226
- data/doc/MaxCube/Messages/TCP/Parser/MessageS.html +0 -225
- data/doc/MaxCube/Messages/TCP/Serializer.html +0 -460
- data/doc/MaxCube/Messages/TCP/Serializer/MessageA.html +0 -186
- data/doc/MaxCube/Messages/TCP/Serializer/MessageC.html +0 -185
- data/doc/MaxCube/Messages/TCP/Serializer/MessageF.html +0 -206
- data/doc/MaxCube/Messages/TCP/Serializer/MessageL.html +0 -185
- data/doc/MaxCube/Messages/TCP/Serializer/MessageM.html +0 -428
- data/doc/MaxCube/Messages/TCP/Serializer/MessageN.html +0 -209
- data/doc/MaxCube/Messages/TCP/Serializer/MessageQ.html +0 -185
- data/doc/MaxCube/Messages/TCP/Serializer/MessageS.html +0 -1168
- data/doc/MaxCube/Messages/TCP/Serializer/MessageT.html +0 -240
- data/doc/MaxCube/Messages/TCP/Serializer/MessageU.html +0 -206
- data/doc/MaxCube/Messages/TCP/Serializer/MessageZ.html +0 -252
- data/doc/MaxCube/Messages/UDP.html +0 -164
- data/doc/MaxCube/Messages/UDP/Handler.html +0 -832
- data/doc/MaxCube/Messages/UDP/Parser.html +0 -609
- data/doc/MaxCube/Messages/UDP/Parser/MessageH.html +0 -218
- data/doc/MaxCube/Messages/UDP/Parser/MessageI.html +0 -215
- data/doc/MaxCube/Messages/UDP/Parser/MessageN.html +0 -226
- data/doc/MaxCube/Messages/UDP/Serializer.html +0 -484
- data/doc/MaxCube/Network.html +0 -167
- data/doc/MaxCube/Network/TCP.html +0 -150
- data/doc/MaxCube/Network/TCP/Client.html +0 -1930
- data/doc/MaxCube/Network/TCP/Client/Commands.html +0 -2457
- data/doc/MaxCube/Network/TCP/SampleServer.html +0 -910
- data/doc/MaxCube/Network/UDP.html +0 -150
- data/doc/MaxCube/Network/UDP/Client.html +0 -518
- data/doc/MaxCube/Network/UDP/SampleSocket.html +0 -628
- data/doc/MaxCube/Runner.html +0 -355
- data/doc/_index.html +0 -518
- data/doc/class_list.html +0 -51
- data/doc/css/common.css +0 -1
- data/doc/css/full_list.css +0 -58
- data/doc/css/style.css +0 -499
- data/doc/file.README.html +0 -140
- data/doc/file_list.html +0 -56
- data/doc/frames.html +0 -17
- data/doc/index.html +0 -140
- data/doc/js/app.js +0 -248
- data/doc/js/full_list.js +0 -216
- data/doc/js/jquery.js +0 -4
- data/doc/method_list.html +0 -1699
- data/doc/top-level-namespace.html +0 -110
@@ -1,218 +0,0 @@
|
|
1
|
-
<!DOCTYPE html>
|
2
|
-
<html>
|
3
|
-
<head>
|
4
|
-
<meta charset="utf-8">
|
5
|
-
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
6
|
-
<title>
|
7
|
-
Module: MaxCube::Messages::UDP::Parser::MessageH
|
8
|
-
|
9
|
-
— Documentation by YARD 0.9.12
|
10
|
-
|
11
|
-
</title>
|
12
|
-
|
13
|
-
<link rel="stylesheet" href="../../../../css/style.css" type="text/css" charset="utf-8" />
|
14
|
-
|
15
|
-
<link rel="stylesheet" href="../../../../css/common.css" type="text/css" charset="utf-8" />
|
16
|
-
|
17
|
-
<script type="text/javascript" charset="utf-8">
|
18
|
-
pathId = "MaxCube::Messages::UDP::Parser::MessageH";
|
19
|
-
relpath = '../../../../';
|
20
|
-
</script>
|
21
|
-
|
22
|
-
|
23
|
-
<script type="text/javascript" charset="utf-8" src="../../../../js/jquery.js"></script>
|
24
|
-
|
25
|
-
<script type="text/javascript" charset="utf-8" src="../../../../js/app.js"></script>
|
26
|
-
|
27
|
-
|
28
|
-
</head>
|
29
|
-
<body>
|
30
|
-
<div class="nav_wrap">
|
31
|
-
<iframe id="nav" src="../../../../class_list.html?1"></iframe>
|
32
|
-
<div id="resizer"></div>
|
33
|
-
</div>
|
34
|
-
|
35
|
-
<div id="main" tabindex="-1">
|
36
|
-
<div id="header">
|
37
|
-
<div id="menu">
|
38
|
-
|
39
|
-
<a href="../../../../_index.html">Index (M)</a> »
|
40
|
-
<span class='title'><span class='object_link'><a href="../../../../MaxCube.html" title="MaxCube (module)">MaxCube</a></span></span> » <span class='title'><span class='object_link'><a href="../../../Messages.html" title="MaxCube::Messages (module)">Messages</a></span></span> » <span class='title'><span class='object_link'><a href="../../UDP.html" title="MaxCube::Messages::UDP (module)">UDP</a></span></span> » <span class='title'><span class='object_link'><a href="../Parser.html" title="MaxCube::Messages::UDP::Parser (class)">Parser</a></span></span>
|
41
|
-
»
|
42
|
-
<span class="title">MessageH</span>
|
43
|
-
|
44
|
-
</div>
|
45
|
-
|
46
|
-
<div id="search">
|
47
|
-
|
48
|
-
<a class="full_list_link" id="class_list_link"
|
49
|
-
href="../../../../class_list.html">
|
50
|
-
|
51
|
-
<svg width="24" height="24">
|
52
|
-
<rect x="0" y="4" width="24" height="4" rx="1" ry="1"></rect>
|
53
|
-
<rect x="0" y="12" width="24" height="4" rx="1" ry="1"></rect>
|
54
|
-
<rect x="0" y="20" width="24" height="4" rx="1" ry="1"></rect>
|
55
|
-
</svg>
|
56
|
-
</a>
|
57
|
-
|
58
|
-
</div>
|
59
|
-
<div class="clear"></div>
|
60
|
-
</div>
|
61
|
-
|
62
|
-
<div id="content"><h1>Module: MaxCube::Messages::UDP::Parser::MessageH
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
</h1>
|
67
|
-
<div class="box_info">
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
<dl>
|
80
|
-
<dt>Defined in:</dt>
|
81
|
-
<dd>lib/maxcube/messages/udp/type/h.rb</dd>
|
82
|
-
</dl>
|
83
|
-
|
84
|
-
</div>
|
85
|
-
|
86
|
-
<h2>Overview</h2><div class="docstring">
|
87
|
-
<div class="discussion">
|
88
|
-
|
89
|
-
<p>Get URL information message.</p>
|
90
|
-
|
91
|
-
|
92
|
-
</div>
|
93
|
-
</div>
|
94
|
-
<div class="tags">
|
95
|
-
|
96
|
-
|
97
|
-
</div>
|
98
|
-
<h2>Constant Summary</h2>
|
99
|
-
<dl class="constants">
|
100
|
-
|
101
|
-
<dt id="KEYS-constant" class="">KEYS =
|
102
|
-
<div class="docstring">
|
103
|
-
<div class="discussion">
|
104
|
-
|
105
|
-
<p>Mandatory keys.</p>
|
106
|
-
|
107
|
-
|
108
|
-
</div>
|
109
|
-
</div>
|
110
|
-
<div class="tags">
|
111
|
-
|
112
|
-
|
113
|
-
</div>
|
114
|
-
</dt>
|
115
|
-
<dd><pre class="code"><span class='lparen'>(</span><span class='const'><span class='object_link'><a href="../../Parser.html" title="MaxCube::Messages::Parser (module)">Parser</a></span></span><span class='op'>::</span><span class='const'>KEYS</span> <span class='op'>+</span> <span class='qsymbols_beg'>%i[</span><span class='tstring_content'>port</span><span class='words_sep'> </span><span class='tstring_content'>url</span><span class='words_sep'> </span><span class='tstring_content'>path</span><span class='tstring_end'>]</span></span><span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_freeze'>freeze</span></pre></dd>
|
116
|
-
|
117
|
-
</dl>
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
<h2>
|
127
|
-
Instance Method Summary
|
128
|
-
<small><a href="#" class="summary_toggle">collapse</a></small>
|
129
|
-
</h2>
|
130
|
-
|
131
|
-
<ul class="summary">
|
132
|
-
|
133
|
-
<li class="private ">
|
134
|
-
<span class="summary_signature">
|
135
|
-
|
136
|
-
<a href="#parse_udp_h-instance_method" title="#parse_udp_h (instance method)">#<strong>parse_udp_h</strong>(_body) ⇒ Object </a>
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
</span>
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
<span class="note title private">private</span>
|
145
|
-
|
146
|
-
|
147
|
-
|
148
|
-
|
149
|
-
|
150
|
-
<span class="summary_desc"><div class='inline'></div></span>
|
151
|
-
|
152
|
-
</li>
|
153
|
-
|
154
|
-
|
155
|
-
</ul>
|
156
|
-
|
157
|
-
|
158
|
-
|
159
|
-
|
160
|
-
<div id="instance_method_details" class="method_details_list">
|
161
|
-
<h2>Instance Method Details</h2>
|
162
|
-
|
163
|
-
|
164
|
-
<div class="method_details first">
|
165
|
-
<h3 class="signature first" id="parse_udp_h-instance_method">
|
166
|
-
|
167
|
-
#<strong>parse_udp_h</strong>(_body) ⇒ <tt>Object</tt> <span class="extras">(private)</span>
|
168
|
-
|
169
|
-
|
170
|
-
|
171
|
-
|
172
|
-
|
173
|
-
</h3><table class="source_code">
|
174
|
-
<tr>
|
175
|
-
<td>
|
176
|
-
<pre class="lines">
|
177
|
-
|
178
|
-
|
179
|
-
13
|
180
|
-
14
|
181
|
-
15
|
182
|
-
16
|
183
|
-
17
|
184
|
-
18
|
185
|
-
19
|
186
|
-
20
|
187
|
-
21</pre>
|
188
|
-
</td>
|
189
|
-
<td>
|
190
|
-
<pre class="code"><span class="info file"># File 'lib/maxcube/messages/udp/type/h.rb', line 13</span>
|
191
|
-
|
192
|
-
<span class='kw'>def</span> <span class='id identifier rubyid_parse_udp_h'>parse_udp_h</span><span class='lparen'>(</span><span class='id identifier rubyid__body'>_body</span><span class='rparen'>)</span>
|
193
|
-
<span class='id identifier rubyid_port'>port</span> <span class='op'>=</span> <span class='id identifier rubyid_read'>read</span><span class='lparen'>(</span><span class='int'>2</span><span class='comma'>,</span> <span class='kw'>true</span><span class='rparen'>)</span>
|
194
|
-
<span class='id identifier rubyid_url'>url</span><span class='comma'>,</span> <span class='id identifier rubyid_path'>path</span> <span class='op'>=</span> <span class='id identifier rubyid_read'>read</span><span class='period'>.</span><span class='id identifier rubyid_split'>split</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>,</span><span class='tstring_end'>'</span></span><span class='rparen'>)</span>
|
195
|
-
<span class='lbrace'>{</span>
|
196
|
-
<span class='label'>port:</span> <span class='id identifier rubyid_port'>port</span><span class='comma'>,</span>
|
197
|
-
<span class='label'>url:</span> <span class='id identifier rubyid_url'>url</span><span class='comma'>,</span>
|
198
|
-
<span class='label'>path:</span> <span class='id identifier rubyid_path'>path</span><span class='comma'>,</span>
|
199
|
-
<span class='rbrace'>}</span>
|
200
|
-
<span class='kw'>end</span></pre>
|
201
|
-
</td>
|
202
|
-
</tr>
|
203
|
-
</table>
|
204
|
-
</div>
|
205
|
-
|
206
|
-
</div>
|
207
|
-
|
208
|
-
</div>
|
209
|
-
|
210
|
-
<div id="footer">
|
211
|
-
Generated on Fri Feb 16 13:44:01 2018 by
|
212
|
-
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
213
|
-
0.9.12 (ruby-2.5.0).
|
214
|
-
</div>
|
215
|
-
|
216
|
-
</div>
|
217
|
-
</body>
|
218
|
-
</html>
|
@@ -1,215 +0,0 @@
|
|
1
|
-
<!DOCTYPE html>
|
2
|
-
<html>
|
3
|
-
<head>
|
4
|
-
<meta charset="utf-8">
|
5
|
-
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
6
|
-
<title>
|
7
|
-
Module: MaxCube::Messages::UDP::Parser::MessageI
|
8
|
-
|
9
|
-
— Documentation by YARD 0.9.12
|
10
|
-
|
11
|
-
</title>
|
12
|
-
|
13
|
-
<link rel="stylesheet" href="../../../../css/style.css" type="text/css" charset="utf-8" />
|
14
|
-
|
15
|
-
<link rel="stylesheet" href="../../../../css/common.css" type="text/css" charset="utf-8" />
|
16
|
-
|
17
|
-
<script type="text/javascript" charset="utf-8">
|
18
|
-
pathId = "MaxCube::Messages::UDP::Parser::MessageI";
|
19
|
-
relpath = '../../../../';
|
20
|
-
</script>
|
21
|
-
|
22
|
-
|
23
|
-
<script type="text/javascript" charset="utf-8" src="../../../../js/jquery.js"></script>
|
24
|
-
|
25
|
-
<script type="text/javascript" charset="utf-8" src="../../../../js/app.js"></script>
|
26
|
-
|
27
|
-
|
28
|
-
</head>
|
29
|
-
<body>
|
30
|
-
<div class="nav_wrap">
|
31
|
-
<iframe id="nav" src="../../../../class_list.html?1"></iframe>
|
32
|
-
<div id="resizer"></div>
|
33
|
-
</div>
|
34
|
-
|
35
|
-
<div id="main" tabindex="-1">
|
36
|
-
<div id="header">
|
37
|
-
<div id="menu">
|
38
|
-
|
39
|
-
<a href="../../../../_index.html">Index (M)</a> »
|
40
|
-
<span class='title'><span class='object_link'><a href="../../../../MaxCube.html" title="MaxCube (module)">MaxCube</a></span></span> » <span class='title'><span class='object_link'><a href="../../../Messages.html" title="MaxCube::Messages (module)">Messages</a></span></span> » <span class='title'><span class='object_link'><a href="../../UDP.html" title="MaxCube::Messages::UDP (module)">UDP</a></span></span> » <span class='title'><span class='object_link'><a href="../Parser.html" title="MaxCube::Messages::UDP::Parser (class)">Parser</a></span></span>
|
41
|
-
»
|
42
|
-
<span class="title">MessageI</span>
|
43
|
-
|
44
|
-
</div>
|
45
|
-
|
46
|
-
<div id="search">
|
47
|
-
|
48
|
-
<a class="full_list_link" id="class_list_link"
|
49
|
-
href="../../../../class_list.html">
|
50
|
-
|
51
|
-
<svg width="24" height="24">
|
52
|
-
<rect x="0" y="4" width="24" height="4" rx="1" ry="1"></rect>
|
53
|
-
<rect x="0" y="12" width="24" height="4" rx="1" ry="1"></rect>
|
54
|
-
<rect x="0" y="20" width="24" height="4" rx="1" ry="1"></rect>
|
55
|
-
</svg>
|
56
|
-
</a>
|
57
|
-
|
58
|
-
</div>
|
59
|
-
<div class="clear"></div>
|
60
|
-
</div>
|
61
|
-
|
62
|
-
<div id="content"><h1>Module: MaxCube::Messages::UDP::Parser::MessageI
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
</h1>
|
67
|
-
<div class="box_info">
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
<dl>
|
80
|
-
<dt>Defined in:</dt>
|
81
|
-
<dd>lib/maxcube/messages/udp/type/i.rb</dd>
|
82
|
-
</dl>
|
83
|
-
|
84
|
-
</div>
|
85
|
-
|
86
|
-
<h2>Overview</h2><div class="docstring">
|
87
|
-
<div class="discussion">
|
88
|
-
|
89
|
-
<p>Identify message. It can be used in broadcast.</p>
|
90
|
-
|
91
|
-
|
92
|
-
</div>
|
93
|
-
</div>
|
94
|
-
<div class="tags">
|
95
|
-
|
96
|
-
|
97
|
-
</div>
|
98
|
-
<h2>Constant Summary</h2>
|
99
|
-
<dl class="constants">
|
100
|
-
|
101
|
-
<dt id="KEYS-constant" class="">KEYS =
|
102
|
-
<div class="docstring">
|
103
|
-
<div class="discussion">
|
104
|
-
|
105
|
-
<p>Mandatory keys.</p>
|
106
|
-
|
107
|
-
|
108
|
-
</div>
|
109
|
-
</div>
|
110
|
-
<div class="tags">
|
111
|
-
|
112
|
-
|
113
|
-
</div>
|
114
|
-
</dt>
|
115
|
-
<dd><pre class="code"><span class='lparen'>(</span><span class='const'><span class='object_link'><a href="../../Parser.html" title="MaxCube::Messages::Parser (module)">Parser</a></span></span><span class='op'>::</span><span class='const'>KEYS</span> <span class='op'>+</span> <span class='qsymbols_beg'>%i[</span><span class='tstring_content'>unknown</span><span class='words_sep'>
|
116
|
-
</span><span class='tstring_content'>rf_address</span><span class='words_sep'> </span><span class='tstring_content'>firmware_version</span><span class='tstring_end'>]</span></span><span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_freeze'>freeze</span></pre></dd>
|
117
|
-
|
118
|
-
</dl>
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
<h2>
|
128
|
-
Instance Method Summary
|
129
|
-
<small><a href="#" class="summary_toggle">collapse</a></small>
|
130
|
-
</h2>
|
131
|
-
|
132
|
-
<ul class="summary">
|
133
|
-
|
134
|
-
<li class="private ">
|
135
|
-
<span class="summary_signature">
|
136
|
-
|
137
|
-
<a href="#parse_udp_i-instance_method" title="#parse_udp_i (instance method)">#<strong>parse_udp_i</strong>(_body) ⇒ Object </a>
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
</span>
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
<span class="note title private">private</span>
|
146
|
-
|
147
|
-
|
148
|
-
|
149
|
-
|
150
|
-
|
151
|
-
<span class="summary_desc"><div class='inline'></div></span>
|
152
|
-
|
153
|
-
</li>
|
154
|
-
|
155
|
-
|
156
|
-
</ul>
|
157
|
-
|
158
|
-
|
159
|
-
|
160
|
-
|
161
|
-
<div id="instance_method_details" class="method_details_list">
|
162
|
-
<h2>Instance Method Details</h2>
|
163
|
-
|
164
|
-
|
165
|
-
<div class="method_details first">
|
166
|
-
<h3 class="signature first" id="parse_udp_i-instance_method">
|
167
|
-
|
168
|
-
#<strong>parse_udp_i</strong>(_body) ⇒ <tt>Object</tt> <span class="extras">(private)</span>
|
169
|
-
|
170
|
-
|
171
|
-
|
172
|
-
|
173
|
-
|
174
|
-
</h3><table class="source_code">
|
175
|
-
<tr>
|
176
|
-
<td>
|
177
|
-
<pre class="lines">
|
178
|
-
|
179
|
-
|
180
|
-
15
|
181
|
-
16
|
182
|
-
17
|
183
|
-
18
|
184
|
-
19
|
185
|
-
20
|
186
|
-
21</pre>
|
187
|
-
</td>
|
188
|
-
<td>
|
189
|
-
<pre class="code"><span class="info file"># File 'lib/maxcube/messages/udp/type/i.rb', line 15</span>
|
190
|
-
|
191
|
-
<span class='kw'>def</span> <span class='id identifier rubyid_parse_udp_i'>parse_udp_i</span><span class='lparen'>(</span><span class='id identifier rubyid__body'>_body</span><span class='rparen'>)</span>
|
192
|
-
<span class='lbrace'>{</span>
|
193
|
-
<span class='label'>unknown:</span> <span class='id identifier rubyid_read'>read</span><span class='lparen'>(</span><span class='int'>1</span><span class='rparen'>)</span><span class='comma'>,</span>
|
194
|
-
<span class='label'>rf_address:</span> <span class='id identifier rubyid_read'>read</span><span class='lparen'>(</span><span class='int'>3</span><span class='comma'>,</span> <span class='kw'>true</span><span class='rparen'>)</span><span class='comma'>,</span>
|
195
|
-
<span class='label'>firmware_version:</span> <span class='id identifier rubyid_read'>read</span><span class='lparen'>(</span><span class='int'>2</span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>H*</span><span class='tstring_end'>'</span></span><span class='rparen'>)</span><span class='comma'>,</span>
|
196
|
-
<span class='rbrace'>}</span>
|
197
|
-
<span class='kw'>end</span></pre>
|
198
|
-
</td>
|
199
|
-
</tr>
|
200
|
-
</table>
|
201
|
-
</div>
|
202
|
-
|
203
|
-
</div>
|
204
|
-
|
205
|
-
</div>
|
206
|
-
|
207
|
-
<div id="footer">
|
208
|
-
Generated on Fri Feb 16 13:44:01 2018 by
|
209
|
-
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
210
|
-
0.9.12 (ruby-2.5.0).
|
211
|
-
</div>
|
212
|
-
|
213
|
-
</div>
|
214
|
-
</body>
|
215
|
-
</html>
|
@@ -1,226 +0,0 @@
|
|
1
|
-
<!DOCTYPE html>
|
2
|
-
<html>
|
3
|
-
<head>
|
4
|
-
<meta charset="utf-8">
|
5
|
-
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
6
|
-
<title>
|
7
|
-
Module: MaxCube::Messages::UDP::Parser::MessageN
|
8
|
-
|
9
|
-
— Documentation by YARD 0.9.12
|
10
|
-
|
11
|
-
</title>
|
12
|
-
|
13
|
-
<link rel="stylesheet" href="../../../../css/style.css" type="text/css" charset="utf-8" />
|
14
|
-
|
15
|
-
<link rel="stylesheet" href="../../../../css/common.css" type="text/css" charset="utf-8" />
|
16
|
-
|
17
|
-
<script type="text/javascript" charset="utf-8">
|
18
|
-
pathId = "MaxCube::Messages::UDP::Parser::MessageN";
|
19
|
-
relpath = '../../../../';
|
20
|
-
</script>
|
21
|
-
|
22
|
-
|
23
|
-
<script type="text/javascript" charset="utf-8" src="../../../../js/jquery.js"></script>
|
24
|
-
|
25
|
-
<script type="text/javascript" charset="utf-8" src="../../../../js/app.js"></script>
|
26
|
-
|
27
|
-
|
28
|
-
</head>
|
29
|
-
<body>
|
30
|
-
<div class="nav_wrap">
|
31
|
-
<iframe id="nav" src="../../../../class_list.html?1"></iframe>
|
32
|
-
<div id="resizer"></div>
|
33
|
-
</div>
|
34
|
-
|
35
|
-
<div id="main" tabindex="-1">
|
36
|
-
<div id="header">
|
37
|
-
<div id="menu">
|
38
|
-
|
39
|
-
<a href="../../../../_index.html">Index (M)</a> »
|
40
|
-
<span class='title'><span class='object_link'><a href="../../../../MaxCube.html" title="MaxCube (module)">MaxCube</a></span></span> » <span class='title'><span class='object_link'><a href="../../../Messages.html" title="MaxCube::Messages (module)">Messages</a></span></span> » <span class='title'><span class='object_link'><a href="../../UDP.html" title="MaxCube::Messages::UDP (module)">UDP</a></span></span> » <span class='title'><span class='object_link'><a href="../Parser.html" title="MaxCube::Messages::UDP::Parser (class)">Parser</a></span></span>
|
41
|
-
»
|
42
|
-
<span class="title">MessageN</span>
|
43
|
-
|
44
|
-
</div>
|
45
|
-
|
46
|
-
<div id="search">
|
47
|
-
|
48
|
-
<a class="full_list_link" id="class_list_link"
|
49
|
-
href="../../../../class_list.html">
|
50
|
-
|
51
|
-
<svg width="24" height="24">
|
52
|
-
<rect x="0" y="4" width="24" height="4" rx="1" ry="1"></rect>
|
53
|
-
<rect x="0" y="12" width="24" height="4" rx="1" ry="1"></rect>
|
54
|
-
<rect x="0" y="20" width="24" height="4" rx="1" ry="1"></rect>
|
55
|
-
</svg>
|
56
|
-
</a>
|
57
|
-
|
58
|
-
</div>
|
59
|
-
<div class="clear"></div>
|
60
|
-
</div>
|
61
|
-
|
62
|
-
<div id="content"><h1>Module: MaxCube::Messages::UDP::Parser::MessageN
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
</h1>
|
67
|
-
<div class="box_info">
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
<dl>
|
80
|
-
<dt>Defined in:</dt>
|
81
|
-
<dd>lib/maxcube/messages/udp/type/n.rb</dd>
|
82
|
-
</dl>
|
83
|
-
|
84
|
-
</div>
|
85
|
-
|
86
|
-
<h2>Overview</h2><div class="docstring">
|
87
|
-
<div class="discussion">
|
88
|
-
|
89
|
-
<p>Get network address message.</p>
|
90
|
-
|
91
|
-
|
92
|
-
</div>
|
93
|
-
</div>
|
94
|
-
<div class="tags">
|
95
|
-
|
96
|
-
|
97
|
-
</div>
|
98
|
-
<h2>Constant Summary</h2>
|
99
|
-
<dl class="constants">
|
100
|
-
|
101
|
-
<dt id="N_KEYS-constant" class="">N_KEYS =
|
102
|
-
<div class="docstring">
|
103
|
-
<div class="discussion">
|
104
|
-
|
105
|
-
<p>Local keys without the common ones.</p>
|
106
|
-
|
107
|
-
|
108
|
-
</div>
|
109
|
-
</div>
|
110
|
-
<div class="tags">
|
111
|
-
|
112
|
-
|
113
|
-
</div>
|
114
|
-
</dt>
|
115
|
-
<dd><pre class="code"><span class='qsymbols_beg'>%i[</span><span class='tstring_content'>ip_address</span><span class='words_sep'> </span><span class='tstring_content'>gateway</span><span class='words_sep'> </span><span class='tstring_content'>subnet_mask</span><span class='words_sep'> </span><span class='tstring_content'>dns1</span><span class='words_sep'> </span><span class='tstring_content'>dns2</span><span class='tstring_end'>]</span></span><span class='period'>.</span><span class='id identifier rubyid_freeze'>freeze</span></pre></dd>
|
116
|
-
|
117
|
-
<dt id="KEYS-constant" class="">KEYS =
|
118
|
-
<div class="docstring">
|
119
|
-
<div class="discussion">
|
120
|
-
|
121
|
-
<p>Mandatory keys.</p>
|
122
|
-
|
123
|
-
|
124
|
-
</div>
|
125
|
-
</div>
|
126
|
-
<div class="tags">
|
127
|
-
|
128
|
-
|
129
|
-
</div>
|
130
|
-
</dt>
|
131
|
-
<dd><pre class="code"><span class='lparen'>(</span><span class='const'><span class='object_link'><a href="../../Parser.html" title="MaxCube::Messages::Parser (module)">Parser</a></span></span><span class='op'>::</span><span class='const'>KEYS</span> <span class='op'>+</span> <span class='const'><span class='object_link'><a href="#N_KEYS-constant" title="MaxCube::Messages::UDP::Parser::MessageN::N_KEYS (constant)">N_KEYS</a></span></span><span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_freeze'>freeze</span></pre></dd>
|
132
|
-
|
133
|
-
</dl>
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
<h2>
|
143
|
-
Instance Method Summary
|
144
|
-
<small><a href="#" class="summary_toggle">collapse</a></small>
|
145
|
-
</h2>
|
146
|
-
|
147
|
-
<ul class="summary">
|
148
|
-
|
149
|
-
<li class="private ">
|
150
|
-
<span class="summary_signature">
|
151
|
-
|
152
|
-
<a href="#parse_udp_n-instance_method" title="#parse_udp_n (instance method)">#<strong>parse_udp_n</strong>(_body) ⇒ Object </a>
|
153
|
-
|
154
|
-
|
155
|
-
|
156
|
-
</span>
|
157
|
-
|
158
|
-
|
159
|
-
|
160
|
-
<span class="note title private">private</span>
|
161
|
-
|
162
|
-
|
163
|
-
|
164
|
-
|
165
|
-
|
166
|
-
<span class="summary_desc"><div class='inline'></div></span>
|
167
|
-
|
168
|
-
</li>
|
169
|
-
|
170
|
-
|
171
|
-
</ul>
|
172
|
-
|
173
|
-
|
174
|
-
|
175
|
-
|
176
|
-
<div id="instance_method_details" class="method_details_list">
|
177
|
-
<h2>Instance Method Details</h2>
|
178
|
-
|
179
|
-
|
180
|
-
<div class="method_details first">
|
181
|
-
<h3 class="signature first" id="parse_udp_n-instance_method">
|
182
|
-
|
183
|
-
#<strong>parse_udp_n</strong>(_body) ⇒ <tt>Object</tt> <span class="extras">(private)</span>
|
184
|
-
|
185
|
-
|
186
|
-
|
187
|
-
|
188
|
-
|
189
|
-
</h3><table class="source_code">
|
190
|
-
<tr>
|
191
|
-
<td>
|
192
|
-
<pre class="lines">
|
193
|
-
|
194
|
-
|
195
|
-
15
|
196
|
-
16
|
197
|
-
17
|
198
|
-
18
|
199
|
-
19</pre>
|
200
|
-
</td>
|
201
|
-
<td>
|
202
|
-
<pre class="code"><span class="info file"># File 'lib/maxcube/messages/udp/type/n.rb', line 15</span>
|
203
|
-
|
204
|
-
<span class='kw'>def</span> <span class='id identifier rubyid_parse_udp_n'>parse_udp_n</span><span class='lparen'>(</span><span class='id identifier rubyid__body'>_body</span><span class='rparen'>)</span>
|
205
|
-
<span class='const'><span class='object_link'><a href="#N_KEYS-constant" title="MaxCube::Messages::UDP::Parser::MessageN::N_KEYS (constant)">N_KEYS</a></span></span><span class='period'>.</span><span class='id identifier rubyid_map'>map</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_k'>k</span><span class='op'>|</span>
|
206
|
-
<span class='lbracket'>[</span><span class='id identifier rubyid_k'>k</span><span class='comma'>,</span> <span class='const'>IPAddr</span><span class='period'>.</span><span class='id identifier rubyid_ntop'>ntop</span><span class='lparen'>(</span><span class='id identifier rubyid_read'>read</span><span class='lparen'>(</span><span class='int'>4</span><span class='rparen'>)</span><span class='rparen'>)</span><span class='rbracket'>]</span>
|
207
|
-
<span class='kw'>end</span><span class='period'>.</span><span class='id identifier rubyid_to_h'>to_h</span>
|
208
|
-
<span class='kw'>end</span></pre>
|
209
|
-
</td>
|
210
|
-
</tr>
|
211
|
-
</table>
|
212
|
-
</div>
|
213
|
-
|
214
|
-
</div>
|
215
|
-
|
216
|
-
</div>
|
217
|
-
|
218
|
-
<div id="footer">
|
219
|
-
Generated on Fri Feb 16 13:44:01 2018 by
|
220
|
-
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
221
|
-
0.9.12 (ruby-2.5.0).
|
222
|
-
</div>
|
223
|
-
|
224
|
-
</div>
|
225
|
-
</body>
|
226
|
-
</html>
|