6 #ifndef NET_SERVER_TELNET_HPP_
7 #define NET_SERVER_TELNET_HPP_
9 #include "RtosInclude.hpp"
10 #include "NetInclude.hpp"
14 typedef void (NetServerTelnet::*CMD_HANDLER)(
int argc,
char *argv[]);
19 const char* descritpion;
22 const ENTRY* mEntries;
25 NetServerTelnet(
int priority,
size_t stackSize);
29 const static int MAX_LINE_LEN = 256;
38 int getLine(
char** line);
39 void freeLine(
char* line);
41 int getArgc(
char* line);
42 void getArgV(
char* line,
char* argv[]);
44 virtual void onConnection();
45 virtual void onDisconnection();
48 void ansiCursorUp(
int value);
49 void ansiCursorDown(
int value);
50 void ansiCursorForward(
int value);
51 void ansiCursorBack(
int value);
52 void ansiCursorPosition(
int x,
int y);
53 void ansiEraseData(
int value);
54 void ansiEraseInLine(
int value);
55 void ansiSaveCursorPosition();
56 void ansiRestoreCursorPosition();
57 void ansiHideCursor();
58 void ansiShowCursor();
60 const static int RESULT_ERR_LINE_TOO_LONG = -1;
61 const static int RESULT_ERR_MEMORY = -2;
62 const static int RESULT_ERR_IO = -3;
63 const static int RESULT_EMPTY_LINE = -4;
88 SUPPRESS_GO_AHEAD = 3,
95 REMOTE_FLOW_CONTROL = 33,
97 ENVIRONMENT_VARIABLES = 36