Sun, 25 May 2014 16:39:54 +0200
Log allways
42
01b96a24ae7c
Corrected missing and obsolete files
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
1 | /***************************************************************************** |
01b96a24ae7c
Corrected missing and obsolete files
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
2 | * Copyright (C) 2008-2014 |
01b96a24ae7c
Corrected missing and obsolete files
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
3 | * |
01b96a24ae7c
Corrected missing and obsolete files
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
4 | * Michiel Broek <mbroek at mbse dot eu> |
01b96a24ae7c
Corrected missing and obsolete files
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
5 | * |
01b96a24ae7c
Corrected missing and obsolete files
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
6 | * This file is part of the mbsePi-apps |
01b96a24ae7c
Corrected missing and obsolete files
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
7 | * |
01b96a24ae7c
Corrected missing and obsolete files
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
8 | * This is free software; you can redistribute it and/or modify it |
01b96a24ae7c
Corrected missing and obsolete files
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
9 | * under the terms of the GNU General Public License as published by the |
01b96a24ae7c
Corrected missing and obsolete files
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
10 | * Free Software Foundation; either version 2, or (at your option) any |
01b96a24ae7c
Corrected missing and obsolete files
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
11 | * later version. |
01b96a24ae7c
Corrected missing and obsolete files
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
12 | * |
01b96a24ae7c
Corrected missing and obsolete files
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
13 | * mbsePi-apps is distributed in the hope that it will be useful, but |
01b96a24ae7c
Corrected missing and obsolete files
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
14 | * WITHOUT ANY WARRANTY; without even the implied warranty of |
01b96a24ae7c
Corrected missing and obsolete files
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
15 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
01b96a24ae7c
Corrected missing and obsolete files
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
16 | * General Public License for more details. |
01b96a24ae7c
Corrected missing and obsolete files
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
17 | * |
01b96a24ae7c
Corrected missing and obsolete files
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
18 | * You should have received a copy of the GNU General Public License |
01b96a24ae7c
Corrected missing and obsolete files
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
19 | * along with EC-65K; see the file COPYING. If not, write to the Free |
01b96a24ae7c
Corrected missing and obsolete files
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
20 | * Software Foundation, 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. |
01b96a24ae7c
Corrected missing and obsolete files
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
21 | *****************************************************************************/ |
01b96a24ae7c
Corrected missing and obsolete files
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
22 | |
01b96a24ae7c
Corrected missing and obsolete files
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
23 | |
01b96a24ae7c
Corrected missing and obsolete files
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
24 | #include "../lib/mbselib.h" |
01b96a24ae7c
Corrected missing and obsolete files
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
25 | #include "server.h" |
46
000399c64d3f
More client/server communications
Michiel Broek <mbroek@mbse.eu>
parents:
45
diff
changeset
|
26 | #include "thermferm.h" |
42
01b96a24ae7c
Corrected missing and obsolete files
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
27 | |
01b96a24ae7c
Corrected missing and obsolete files
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
28 | extern bool my_shutdown; |
01b96a24ae7c
Corrected missing and obsolete files
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
29 | extern bool debug; |
01b96a24ae7c
Corrected missing and obsolete files
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
30 | extern int lcdHandle; |
01b96a24ae7c
Corrected missing and obsolete files
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
31 | extern unsigned char lcdbuf[MAX_LCDS][20][4]; |
43 | 32 | extern sys_config Config; |
42
01b96a24ae7c
Corrected missing and obsolete files
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
33 | |
43 | 34 | int s; /* connected socket */ |
35 | int ls; /* listen socket */ | |
42
01b96a24ae7c
Corrected missing and obsolete files
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
36 | |
43 | 37 | struct sockaddr_in myaddr_in; /* for local socket address */ |
38 | struct sockaddr_in peeraddr_in; /* for peer socket address */ | |
39 | ||
40 | struct hostent *hp; | |
41 | ||
42 | #define SS_BUFSIZE 1024 | |
43 | #define SS_TIMEOUT 300 | |
42
01b96a24ae7c
Corrected missing and obsolete files
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
44 | |
48 | 45 | unsigned char cs_mode = 'o'; /* o = Off, f = fridge, b = beer, p = profile-run */ |
46 | float cs_beerSet = 20.0; | |
47 | float cs_fridgeSet = 20.0; | |
48 | float cs_heatEstimator = 0.2; | |
49 | float cs_coolEstimator = 5; | |
50 | ||
51 | unsigned char cc_tempFormat = 'C'; | |
52 | float cc_tempSetMin = 1.0; | |
53 | float cc_tempSetMax = 30.0; | |
54 | float cc_idleRangeH = 1.000; | |
55 | float cc_idleRangeL = -1.000; | |
56 | ||
57 | float cv_beerDiff = 0.0; | |
58 | ||
42
01b96a24ae7c
Corrected missing and obsolete files
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
59 | |
46
000399c64d3f
More client/server communications
Michiel Broek <mbroek@mbse.eu>
parents:
45
diff
changeset
|
60 | |
49
92a9ca143677
Fixed temperature logging, added some commands
Michiel Broek <mbroek@mbse.eu>
parents:
48
diff
changeset
|
61 | void defaultControlSettings(void) |
46
000399c64d3f
More client/server communications
Michiel Broek <mbroek@mbse.eu>
parents:
45
diff
changeset
|
62 | { |
48 | 63 | cs_mode = 'o'; /* o = Off, f = fridge, b = beer, p = profile-run */ |
64 | cs_beerSet = 20.0; | |
65 | cs_fridgeSet = 20.0; | |
66 | cs_heatEstimator = 0.2; | |
67 | cs_coolEstimator = 5; | |
46
000399c64d3f
More client/server communications
Michiel Broek <mbroek@mbse.eu>
parents:
45
diff
changeset
|
68 | } |
000399c64d3f
More client/server communications
Michiel Broek <mbroek@mbse.eu>
parents:
45
diff
changeset
|
69 | |
000399c64d3f
More client/server communications
Michiel Broek <mbroek@mbse.eu>
parents:
45
diff
changeset
|
70 | |
000399c64d3f
More client/server communications
Michiel Broek <mbroek@mbse.eu>
parents:
45
diff
changeset
|
71 | |
000399c64d3f
More client/server communications
Michiel Broek <mbroek@mbse.eu>
parents:
45
diff
changeset
|
72 | void defaultControlConstants(void) |
000399c64d3f
More client/server communications
Michiel Broek <mbroek@mbse.eu>
parents:
45
diff
changeset
|
73 | { |
48 | 74 | cc_tempFormat = 'C'; |
75 | cc_tempSetMin = 1.0; | |
76 | cc_tempSetMax = 30.0; | |
77 | cc_idleRangeH = 1.000; | |
78 | cc_idleRangeL = -1.000; | |
46
000399c64d3f
More client/server communications
Michiel Broek <mbroek@mbse.eu>
parents:
45
diff
changeset
|
79 | } |
000399c64d3f
More client/server communications
Michiel Broek <mbroek@mbse.eu>
parents:
45
diff
changeset
|
80 | |
000399c64d3f
More client/server communications
Michiel Broek <mbroek@mbse.eu>
parents:
45
diff
changeset
|
81 | |
000399c64d3f
More client/server communications
Michiel Broek <mbroek@mbse.eu>
parents:
45
diff
changeset
|
82 | |
43 | 83 | /* |
84 | * Send message to client | |
85 | */ | |
86 | int srv_send(const char *format, ...) | |
87 | { | |
88 | char out[SS_BUFSIZE]; | |
89 | va_list va_ptr; | |
90 | ||
91 | if (s == -1) | |
92 | return -1; | |
42
01b96a24ae7c
Corrected missing and obsolete files
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
93 | |
43 | 94 | va_start(va_ptr, format); |
95 | vsnprintf(out, SS_BUFSIZE-1, format, va_ptr); | |
96 | va_end(va_ptr); | |
97 | ||
48 | 98 | if (debug) { |
99 | syslog(LOG_NOTICE, "send: \"%s\"", out); | |
45
053c4657105f
Mirror LCD display on the webpage works
Michiel Broek <mbroek@mbse.eu>
parents:
44
diff
changeset
|
100 | fprintf(stdout, "send: \"%s\"\n", out); |
48 | 101 | } |
44 | 102 | |
43 | 103 | if (send(s, out, strlen(out), 0) != strlen(out)) { |
104 | syslog(LOG_NOTICE, "srv_send failed"); | |
105 | return -1; | |
106 | } | |
107 | ||
108 | if (send(s, (char *)"\r\n", 2, 0) != 2) { | |
109 | syslog(LOG_NOTICE, "srv_send failed"); | |
110 | return -1; | |
111 | } | |
112 | ||
113 | return 0; | |
114 | } | |
115 | ||
116 | ||
42
01b96a24ae7c
Corrected missing and obsolete files
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
117 | |
43 | 118 | void cmd_die(int onsig) |
119 | { | |
120 | syslog(LOG_NOTICE, "Server process die on signal %d", onsig); | |
121 | close(s); | |
122 | exit(0); | |
123 | } | |
124 | ||
125 | ||
126 | ||
127 | void cmd_server(void) | |
128 | { | |
46
000399c64d3f
More client/server communications
Michiel Broek <mbroek@mbse.eu>
parents:
45
diff
changeset
|
129 | char *inp, *hostname, buf[SS_BUFSIZE], obuf[SS_BUFSIZE]; |
48 | 130 | int i, rc, rlen; |
43 | 131 | socklen_t fromlen; |
46
000399c64d3f
More client/server communications
Michiel Broek <mbroek@mbse.eu>
parents:
45
diff
changeset
|
132 | float newtemp; |
42
01b96a24ae7c
Corrected missing and obsolete files
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
133 | |
43 | 134 | hp = gethostbyaddr ((char *) &peeraddr_in.sin_addr, sizeof(struct in_addr), peeraddr_in.sin_family); |
135 | if (hp == NULL) { | |
136 | hostname = inet_ntoa(peeraddr_in.sin_addr); | |
137 | } else { | |
138 | hostname = hp->h_name; | |
139 | } | |
140 | ||
48 | 141 | if (debug) { |
142 | syslog(LOG_NOTICE, "Start new client connection from %s port %u", hostname, ntohs(peeraddr_in.sin_port)); | |
143 | fprintf(stdout, "Start new client connection from %s port %u\n", hostname, ntohs(peeraddr_in.sin_port)); | |
144 | } | |
43 | 145 | |
48 | 146 | memset((char *)&buf, 0, SS_BUFSIZE); |
147 | fromlen = sizeof(peeraddr_in); | |
148 | rlen = recvfrom(s, buf, sizeof(buf) -1, 0, (struct sockaddr *)&peeraddr_in, &fromlen); | |
149 | if (rlen == -1) { | |
150 | syslog(LOG_NOTICE, "recvfrom(): %s", strerror(errno)); | |
151 | } else { | |
152 | for (i = 0; i < strlen(buf); i++) { | |
153 | if (buf[i] == '\n') | |
154 | buf[i] = '\0'; | |
155 | if (buf[i] == '\r') | |
156 | buf[i] = '\0'; | |
157 | } | |
158 | if (strlen(buf)) { | |
159 | if (debug) { | |
160 | syslog(LOG_NOTICE, "recv: \"%s\"", buf); | |
161 | fprintf(stdout, "recv: \"%s\"\n", buf); | |
43 | 162 | } |
163 | ||
164 | /* | |
48 | 165 | * Process commands from the client |
43 | 166 | */ |
48 | 167 | if (strncmp(buf, "ack", 3) == 0) { |
168 | srv_send((char *)"ack"); | |
169 | } else if (strncmp(buf, "lcd", 3) == 0) { | |
170 | sprintf(obuf, "[\" \", \" \", \" \", \" \"]"); | |
171 | for (i = 0; i < 20; i++) { | |
172 | obuf[i+2] = lcdbuf[lcdHandle][i][0]; | |
173 | obuf[i+26] = lcdbuf[lcdHandle][i][1]; | |
174 | obuf[i+50] = lcdbuf[lcdHandle][i][2]; | |
175 | obuf[i+74] = lcdbuf[lcdHandle][i][3]; | |
176 | } | |
177 | srv_send(obuf); | |
178 | } else if (strncmp(buf, "getMode", 7) == 0) { | |
179 | srv_send("%c", cs_mode); | |
180 | } else if (strncmp(buf, "getFridge", 9) == 0) { | |
181 | srv_send("%.1f", cs_fridgeSet); | |
182 | } else if (strncmp(buf, "getBeer", 7) == 0) { | |
183 | srv_send("%.1f", cs_beerSet); | |
184 | } else if (strncmp(buf, "getControlConstants", 19) == 0) { | |
185 | srv_send("{ \"tempFormat\":\"%c\", \"tempSetMin\":%.1f, \"tempSetMax\":%.1f, \"idleRangeH\":%.3f, \"idleRangeL\":%.3f }", | |
186 | cc_tempFormat, cc_tempSetMin, cc_tempSetMax, cc_idleRangeH, cc_idleRangeL ); | |
187 | } else if (strncmp(buf, "getControlSettings", 18) == 0) { | |
188 | srv_send("{ \"mode\":\"%c\", \"beerSet\":%.1f, \"fridgeSet\":%.1f, \"heatEstimator\":%.1f, \"coolEstimator\":%.1f }", | |
189 | cs_mode, cs_beerSet, cs_fridgeSet, cs_heatEstimator, cs_coolEstimator); | |
190 | } else if (strncmp(buf, "getControlVariables", 19) == 0) { | |
191 | srv_send("{ \"beerDiff\":%.2f }", cv_beerDiff); | |
49
92a9ca143677
Fixed temperature logging, added some commands
Michiel Broek <mbroek@mbse.eu>
parents:
48
diff
changeset
|
192 | } else if (strncmp(buf, "loadDefaultControlSettings", 26) == 0) { |
92a9ca143677
Fixed temperature logging, added some commands
Michiel Broek <mbroek@mbse.eu>
parents:
48
diff
changeset
|
193 | defaultControlSettings(); |
92a9ca143677
Fixed temperature logging, added some commands
Michiel Broek <mbroek@mbse.eu>
parents:
48
diff
changeset
|
194 | srv_send("ack"); |
92a9ca143677
Fixed temperature logging, added some commands
Michiel Broek <mbroek@mbse.eu>
parents:
48
diff
changeset
|
195 | } else if (strncmp(buf, "loadDefaultControlConstants", 27) == 0) { |
92a9ca143677
Fixed temperature logging, added some commands
Michiel Broek <mbroek@mbse.eu>
parents:
48
diff
changeset
|
196 | defaultControlConstants(); |
92a9ca143677
Fixed temperature logging, added some commands
Michiel Broek <mbroek@mbse.eu>
parents:
48
diff
changeset
|
197 | srv_send("ack"); |
48 | 198 | } else if (strncmp(buf, "setBeer=", 8) == 0) { |
199 | inp = xstrcpy(buf+8); | |
200 | rc = sscanf(inp, "%f", &newtemp); | |
201 | if (debug) | |
202 | fprintf(stdout, "new temp from %s, %.1f, rc=%d\n", inp, newtemp, rc); | |
203 | if (rc == 1) { | |
204 | srv_send("ack"); | |
205 | cs_mode = 'b'; | |
206 | cs_beerSet = newtemp; | |
207 | } else { | |
208 | srv_send("err"); | |
209 | } | |
210 | free(inp); | |
211 | } else if (strncmp(buf, "setFridge=", 10) == 0) { | |
212 | inp = xstrcpy(buf+10); | |
213 | rc = sscanf(inp, "%f", &newtemp); | |
214 | if (debug) | |
215 | fprintf(stdout, "new temp from %s, %.1f, rc=%d\n", inp, newtemp, rc); | |
216 | if (rc == 1) { | |
217 | srv_send("ack"); | |
218 | cs_mode = 'f'; | |
219 | cs_fridgeSet = newtemp; | |
220 | } else { | |
221 | srv_send("err"); | |
222 | } | |
223 | free(inp); | |
49
92a9ca143677
Fixed temperature logging, added some commands
Michiel Broek <mbroek@mbse.eu>
parents:
48
diff
changeset
|
224 | } else if (strncmp(buf, "setOff", 6) == 0) { |
92a9ca143677
Fixed temperature logging, added some commands
Michiel Broek <mbroek@mbse.eu>
parents:
48
diff
changeset
|
225 | if (debug) |
92a9ca143677
Fixed temperature logging, added some commands
Michiel Broek <mbroek@mbse.eu>
parents:
48
diff
changeset
|
226 | fprintf(stdout, "temperature control disabled\n"); |
92a9ca143677
Fixed temperature logging, added some commands
Michiel Broek <mbroek@mbse.eu>
parents:
48
diff
changeset
|
227 | cs_mode = 'o'; |
92a9ca143677
Fixed temperature logging, added some commands
Michiel Broek <mbroek@mbse.eu>
parents:
48
diff
changeset
|
228 | srv_send("ack"); |
43 | 229 | } else { |
48 | 230 | if (debug) |
231 | fprintf(stdout, "unknown command \"%s\"\n", buf); | |
232 | srv_send((char *)"ERR"); | |
43 | 233 | } |
234 | } | |
42
01b96a24ae7c
Corrected missing and obsolete files
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
235 | } |
44 | 236 | |
48 | 237 | if (debug) { |
238 | syslog(LOG_NOTICE, "End connection from %s port %u", hostname, ntohs(peeraddr_in.sin_port)); | |
44 | 239 | fprintf(stdout, "End connection from %s port %u\n", hostname, ntohs(peeraddr_in.sin_port)); |
48 | 240 | } |
241 | ||
44 | 242 | close(s); |
42
01b96a24ae7c
Corrected missing and obsolete files
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
243 | } |
01b96a24ae7c
Corrected missing and obsolete files
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
244 | |
01b96a24ae7c
Corrected missing and obsolete files
Michiel Broek <mbroek@mbse.eu>
parents:
diff
changeset
|
245 | |
43 | 246 | |
247 | PI_THREAD (my_server_loop) | |
248 | { | |
249 | socklen_t addrlen; | |
44 | 250 | int optval = 1; |
43 | 251 | |
252 | syslog(LOG_NOTICE, "Thread my_server_loop started"); | |
253 | if (debug) | |
254 | fprintf(stdout, "Thread my_server_loop started\n"); | |
255 | ||
44 | 256 | memset((char *)&myaddr_in, 0, sizeof(struct sockaddr_in)); |
257 | memset((char *)&peeraddr_in, 0, sizeof(struct sockaddr_in)); | |
258 | myaddr_in.sin_family = AF_INET; | |
259 | myaddr_in.sin_addr.s_addr = INADDR_ANY; | |
260 | myaddr_in.sin_port = htons(Config.my_port); | |
261 | ||
262 | ls = socket(AF_INET, SOCK_STREAM, 0); | |
263 | if (ls == -1) { | |
264 | syslog(LOG_NOTICE, "Can't create listen socket: %s", strerror(errno)); | |
265 | fprintf(stderr, "Can't create listen socket: %s\n", strerror(errno)); | |
266 | return 0; | |
267 | } | |
268 | ||
269 | if (setsockopt(ls, SOL_SOCKET, SO_KEEPALIVE, &optval, sizeof(optval)) == -1) { | |
270 | syslog(LOG_NOTICE, "Can't setsockopt SO_KEEPALIVE socket: %s", strerror(errno)); | |
271 | close(ls); | |
272 | return 0; | |
273 | } | |
274 | ||
275 | if (setsockopt(ls, SOL_SOCKET, SO_REUSEADDR, &optval, sizeof(optval)) == -1) { | |
276 | syslog(LOG_NOTICE, "Can't setsockopt SO_REUSEADDR socket: %s", strerror(errno)); | |
277 | close(ls); | |
278 | return NULL; | |
279 | } | |
280 | ||
281 | if (bind(ls, (struct sockaddr *)&myaddr_in, sizeof(struct sockaddr_in)) == -1) { | |
282 | syslog(LOG_NOTICE, "Can't bind to listen socket: %s", strerror(errno)); | |
283 | close(ls); | |
284 | return NULL; | |
285 | } | |
286 | ||
287 | if (listen(ls, 5) == -1) { | |
288 | syslog(LOG_NOTICE, "Can't listen on listen socket: %s", strerror(errno)); | |
289 | close(ls); | |
290 | return NULL; | |
291 | } | |
292 | ||
293 | syslog(LOG_NOTICE, "listen socket created %d", ls); | |
294 | if (debug) | |
295 | fprintf(stdout, "listen socket created %d\n", ls); | |
296 | ||
297 | ||
43 | 298 | /* |
299 | * Loop forever until the external shutdown variable is set. | |
300 | */ | |
301 | for (;;) { | |
302 | ||
303 | addrlen = sizeof(struct sockaddr_in); | |
304 | /* | |
305 | * This call will block until a new connection | |
306 | * arrives. Then it will return the address of | |
307 | * the connecting peer, and a new socket | |
308 | * descriptor, s, for that connection. | |
309 | */ | |
310 | s = accept(ls, (struct sockaddr *)&peeraddr_in, &addrlen); | |
311 | if (s == -1) { | |
312 | syslog(LOG_NOTICE, "my_server_loop accept failed %s", strerror(errno)); | |
313 | if (debug) | |
314 | fprintf(stdout, "my_server_loop accept failed %s\n", strerror(errno)); | |
44 | 315 | return 0; |
43 | 316 | } |
317 | ||
48 | 318 | cmd_server(); |
43 | 319 | |
320 | if (my_shutdown) { | |
321 | syslog(LOG_NOTICE, "Thread my_server_loop stopped"); | |
322 | if (debug) | |
323 | fprintf(stdout, "Thread my_server_loop stopped\n"); | |
324 | return 0; | |
325 | } | |
326 | ||
327 | } | |
328 | } | |
329 | ||
330 | ||
331 |