]> rtime.felk.cvut.cz Git - pes-rpp/rpp-test-sw.git/blobdiff - rpp-test-sw/commands/cmd_nc.h
Merge branches 'master' and 'rm48/master'
[pes-rpp/rpp-test-sw.git] / rpp-test-sw / commands / cmd_nc.h
diff --git a/rpp-test-sw/commands/cmd_nc.h b/rpp-test-sw/commands/cmd_nc.h
new file mode 100644 (file)
index 0000000..a04ad3b
--- /dev/null
@@ -0,0 +1,35 @@
+/*
+ * cmd_lwip.h
+ *
+ *  Created on: 9.8.2013
+ *      Author: Jan Doležal
+ */
+
+#ifndef CMD_LWIP_H_
+#define CMD_LWIP_H_
+
+/* nc config values */
+/* 1 minute = (1000ms*60/1000ms)/60s */
+#define CONNECTING_TIMEO 1000 /* timeout in ms; to preserve responsibility of the system (command processor) this value shouldn't be too high */
+#define CONNECTING_TRIES 60   /* nc will try to connect or listen for connection for CONNECTING_TRIES*CONNECTING_TIMEO/1000 seconds */
+
+#define ncTaskStackSize 400
+#define ncTaskPriority  0
+
+/* nc return values */
+#define BAD_IP_ADDR     -21
+#define BAD_PORT_NO     -22
+#define BAD_OPTION      -23
+#define ERR_NETCONN_NEW -30
+#define ERR_BINDING     -31
+#define ERR_CONN_ACCEPT -32
+#define ERR_CONNECTING  -33
+#define ERR_SENDING     -34
+#define ERR_RECEIVING   -35
+
+#include "cmdproc.h"
+
+extern cmd_des_t const *cmd_list_nc[];
+
+
+#endif /* CMD_LWIP_H_ */