Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: EthernetInterface mbed-rtos mbed
TelnetServer.h
00001 #include "mbed.h" 00002 #include "rtos.h" 00003 00004 #include "EthernetInterface.h" 00005 00006 typedef int(*cmd_function)(TCPSocketConnection *conn,char**,int); 00007 00008 struct telnet_cmd_handler { 00009 char* command_name; 00010 cmd_function pfn; 00011 }; 00012 00013 00014 class TelnetServer 00015 { 00016 static const struct telnet_cmd_handler cmds[]; 00017 00018 public: 00019 static void TelnetServer_Thread(void const* arg); 00020 static void TelnetSession(TCPSocketConnection *conn); 00021 static void option_negotiator(TCPSocketConnection *conn,unsigned char opt_cmd,unsigned char opt_param); 00022 static int HelpCommand(TCPSocketConnection *conn,char** argv,int argc); 00023 static int ListParamCommand(TCPSocketConnection *conn,char** argv,int argc); 00024 static int GetParamCommand(TCPSocketConnection *conn,char** argv,int argc); 00025 static int SetParamCommand(TCPSocketConnection *conn,char** argv,int argc); 00026 static int ResetCommand(TCPSocketConnection *conn,char** argv,int argc); 00027 static int RemoveCommand(TCPSocketConnection *conn,char** argv,int argc); 00028 static int VersionCommand(TCPSocketConnection *conn,char** argv,int argc); 00029 static int UpdateCommand(TCPSocketConnection *conn,char** argv,int argc); 00030 00031 };
Generated on Fri Jul 22 2022 19:25:55 by
