X-Git-Url: http://rtime.felk.cvut.cz/gitweb/pes-rpp/rpp-test-sw.git/blobdiff_plain/db13ceeb88e638f550b472d594dc518cb52a976e..b3cc40c637c2df366e95a8a8d78cb3127825b142:/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 index 0000000..a04ad3b --- /dev/null +++ b/rpp-test-sw/commands/cmd_nc.h @@ -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_ */