0x27, 0x25, 0x33, 0x45, 0x25, 0x33, 0x43, 0x2F, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x25, 0x33,
0x45, 0x22, 0x29, 0x29, 0x3B, 0x0D, 0x0A, 0x3C, 0x2F, 0x53, 0x43, 0x52, 0x49, 0x50, 0x54, 0x3E,
0x0D, 0x0A, 0x3C, 0x2F, 0x44, 0x49, 0x56, 0x3E, 0x3C, 0x2F, 0x42, 0x4F, 0x44, 0x59, 0x3E, 0x3C
char http_html_hdr[] =
"HTTP/1.0 200 OK\r\n\
Content-type: text/html\r\n\r\n";
IP4_ADDR(&ipaddr, 192,168,1,60);
IP4_ADDR(&netmask, 255,255,255,0);
__pstConn = netconn_new(NETCONN_TCP);///建立tcp的連接
///將建立的連接進行端口綁定
netconn_bind(__pstConn, NULL, HTTP_PORT); //HTTP_PORT,80端口
//開始監聽
netconn_listen(__pstConn);
{
//接收外部來的連接
__pstNewConn = netconn_accept(__pstConn);
//
process_connection(__pstNewConn);
if (__pstNewConn == NULL)
continue;
netconn_delete(__pstNewConn);
/// OSTimeDly(500);
}