]> rtime.felk.cvut.cz Git - rpp-test-sw.git/blob - rpp-test-sw/commands/cmd_nc.h
Merge branches 'master' and 'rm48/master'
[rpp-test-sw.git] / rpp-test-sw / commands / cmd_nc.h
1 /*
2  * cmd_lwip.h
3  *
4  *  Created on: 9.8.2013
5  *      Author: Jan Doležal
6  */
7
8 #ifndef CMD_LWIP_H_
9 #define CMD_LWIP_H_
10
11 /* nc config values */
12 /* 1 minute = (1000ms*60/1000ms)/60s */
13 #define CONNECTING_TIMEO 1000 /* timeout in ms; to preserve responsibility of the system (command processor) this value shouldn't be too high */
14 #define CONNECTING_TRIES 60   /* nc will try to connect or listen for connection for CONNECTING_TRIES*CONNECTING_TIMEO/1000 seconds */
15
16 #define ncTaskStackSize 400
17 #define ncTaskPriority  0
18
19 /* nc return values */
20 #define BAD_IP_ADDR     -21
21 #define BAD_PORT_NO     -22
22 #define BAD_OPTION      -23
23 #define ERR_NETCONN_NEW -30
24 #define ERR_BINDING     -31
25 #define ERR_CONN_ACCEPT -32
26 #define ERR_CONNECTING  -33
27 #define ERR_SENDING     -34
28 #define ERR_RECEIVING   -35
29
30 #include "cmdproc.h"
31
32 extern cmd_des_t const *cmd_list_nc[];
33
34
35 #endif /* CMD_LWIP_H_ */