本人这几天也是被LWIP折磨得不象样,昨天发现UIP栈,我觉得比LWIP简单,本来从网上找到的哈,下进开发板不期望好用,但早晨确好用了
我发现它的网页特好改
static const char page_not_found[] =
"HTTP/1.0 404 OK\r\n"
"Server: TCP/IP (http://www.NUAA.COM/TCP/IP/)\r\n"
"Content-type: text/html\r\n\r\n"
"<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.NUAA.COM\">"
"<html>"
"<head>"
"<title>;Page Not Found!</title>"
"</head>"
"<body>"
"Page Not Found!"
"</body>"
"</html>";
//*****************************************************************************
//
// Default Web Page - allocated in three segments to allow easy update of a
// counter that is incremented each time the page is sent.
//
//*****************************************************************************
static const char default_page_buf1of3[] =
"HTTP/1.0 200 OK\r\n"
"Server: TCP/IP (http://www.NUAA.COM/TCP/IP/)\r\n"
"Content-type: text/html\r\n\r\n"
"<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.NUAA.COM\">"
"<html>"
"<head>"
"<title>Welcome to NUAA server!</title>"
"</head>"
"<body>"
"<center>"
"<h1>HELLO GAO YOU MEI</h1>"
"<p>This web page is welcome for gao you mei and her son zhang ren wei "
" <a href=\"http://www.NUAA.COM/\">HELLO MISS GAO "
"</a>."
"<hr width=\"75%\">"
"<p>The Page is running on a "
"<a href=\"http://www.NUAA.com\">zhang dao</a> "
"and gao you mei!"
"<hr width=\"75%\">"
"<p>This page has been sent ";
static char default_page_buf2of3[] =
"00001";
static const char default_page_buf3of3[] =
" times since reset!"
"</center>"
"</body>"
"</html>";
这个是例程里的,我们只要用DREAMWARE什么的做一个考到这里就行:D
我先把协议中文板上传一下,一来跟大家分享,两来做个标号
下面是效果图