Move DHCP negotiation timer into the DHCP connection application state structure, so that each connection gets its own timeout counter (only one connection currently used, but this way is more correct). Add const correctness to static data in the TELNETServerApp.c and HTTPServerApp.c files.

This commit is contained in:
Dean Camera 2010-02-12 07:27:26 +00:00
parent 41ef05a6e5
commit 8154331da6
10 changed files with 54 additions and 52 deletions

View file

@ -38,15 +38,15 @@
#include "TELNETServerApp.h"
/** Welcome message to send to a TELNET client when a connection is first made. */
char PROGMEM WelcomeHeader[] = "********************************************\r\n"
"* LUFA uIP Webserver (TELNET) *\r\n"
"********************************************\r\n";
const char PROGMEM WelcomeHeader[] = "********************************************\r\n"
"* LUFA uIP Webserver (TELNET) *\r\n"
"********************************************\r\n";
/** Main TELNET menu, giving the user the list of available commands they may issue */
char PROGMEM TELNETMenu[] = "\r\n"
" Available Commands:\r\n"
" c) List Active TCP Connections\r\n"
"\r\nCommand>";
const char PROGMEM TELNETMenu[] = "\r\n"
" Available Commands:\r\n"
" c) List Active TCP Connections\r\n"
"\r\nCommand>";
/** Initialization function for the simple HTTP webserver. */
void TELNETServerApp_Init(void)