📄 webdoc1.lst
字号:
C51 COMPILER V7.09 WEBDOC1 07/07/2004 14:57:24 PAGE 1
C51 COMPILER V7.09, COMPILATION OF MODULE WEBDOC1
OBJECT MODULE PLACED IN WEBDOC1.OBJ
COMPILER INVOKED BY: C:\Keil\C51\BIN\C51.EXE WEBDOC1.C OPTIMIZE(9,SPEED) BROWSE DEBUG OBJECTEXTEND
line level source
1 //-----------------------------------------------------------------------------
2 // Net WEBDOC.C
3 //
4 // This module contains web pages and headers
5 //-----------------------------------------------------------------------------
6 #include "net.h"
7
8
9 // This is the header for web text pages. LENGTH is the body
10 // length, needed because in HTTP 1.1 we leave connection open
11 // Includes control statements to prevent browser from caching page
12 char code html_header[] = {
13 "HTTP/1.1 200 OK\n"
14 "Cache-control: no-cache\n"
15 "Connection: Keep-Alive\n"
16 "Content-Length: TAG:LEN1\n"
17 "Content-Type: text/html\r\n\r\n" };
18
19
20
21 // This page displays a table with weather data and a switch
22 // to turn a port pin on and off.
23 char code web_page[] = {
24 "<HTML><HEAD><TITLE>C8051F020 Web Server</TITLE>\n"
25 "<META http-equiv=Content-Type content=\"text/html; charset=gb2312\">\n"
26 /*"<META http-equiv=\"refresh\" content=\"5\">"*/
27 "<META content=\"Microsoft FrontPage 5.0\" name=GENERATOR></HEAD>\n"
28 "<BODY>\n"
29 "<FORM action=/index.html method=post>\n"
30 "<TABLE border=0 width=\"786\">\n"
31 "<TBODY>\n"
32 "<TR>\n"
33 "<TD width=\"739\">\n"
34 "<H1> \n"
35 "<IMG src=\"photo1.jpg\" width=\"305\" height=\"74\"></H1>\n"
36 "<H1><font size=\"4\">Cygnal</font><font size=\"4\"> C8051F020/021 Web Server \n"
37 "演示程序</font></H1>\n"
38 "<TABLE border=2 width=\"419\">\n"
39 "<TBODY>\n"
40 "<TR>\n"
41 "<TD width=235 height=25>\n"
42 "<p align=\"center\"><font face=\"宋体\">CPU 温度</font></TD>\n"
43 "<TD width=166 height=25 align=\"center\">TAG:TMP1℃</TD></TR>\n"
44 "<TR>\n"
45 "<TD width=235 height=25>\n"
46 "<p align=\"center\">CPU电源电压</TD>\n"
47 "<TD width=166 height=25 align=\"center\">TAG:TMP2V</TD></TR>\n"
48 "<TR>\n"
49 "<TD width=235 height=25>\n"
50 "<p align=\"center\">外接电源电压</TD>\n"
51 "<TD width=166 height=25 align=\"center\">TAG:VOL1V </TD></TR></TBODY></TABLE><BR><BR> &
-nbsp; LED指示灯: \n"
52 " <INPUT type=radio CHECKED value=1 name=switch>灭 <INPUT type=radio \n"
53 "value=0 name=switch TAG:CHK2>亮 <INPUT type=submit value=发送> </TD>\n"
54 "<TD width=\"37\"><BR> \n"
C51 COMPILER V7.09 WEBDOC1 07/07/2004 14:57:24 PAGE 2
55 "</TD></TR>\n"
56 "<TR>\n"
57 "<TD width=\"739\">\n"
58 "</TD>\n"
59 "<TD width=\"37\"> </TD></TR></TBODY></TABLE></FORM></BODY></HTML>\n"
60 };
61
62
63
64 // This is the header for jpeg graphic pages. TAG2 is the body
65 // length, needed because in HTTP 1.1 we leave connection open
66 // Includes control statements to prevent browser from caching page
67 char code jpeg_header[] = {
68 "HTTP/1.1 200 OK\n"
69 "Cache-control: no-cache\n"
70 "Connection: Keep-Alive\n"
71 "Content-Length: TAG:LEN2\n"
72 "Content-Type: image/jpeg\r\n\r\n"};
73
74
75
76 // This is jpeg image of the board which gets displayed on the web
77 // page - to exercise capabilities of this server to send files
78 // which span multple TCP segments. This image is 6194 bytes.
79 UCHAR code photo1_jpeg[] = {
80 0x47,0x49,0x46,0x38,0x39,0x61,0x31,0x01,0x4A,0x00,0xF7,0x00,0x00,0xDE,0x2C,0x55,
81 0x91,0x91,0x91,0xE7,0x4D,0x6E,0x67,0x67,0x67,0xF0,0x67,0x85,0xF6,0x93,0xAB,0xFC,
82 0xC7,0xD1,0xA6,0xA6,0xA6,0xFF,0xE5,0xE8,0xC9,0xC9,0xC9,0xE6,0xE6,0xE6,0xFD,0xFA,
83 0xFA,0xC9,0x00,0x29,0x49,0x49,0x49,0xF7,0xB8,0xC8,0xB6,0xB6,0xB6,0xFA,0xA9,0xB9,
84 0xD8,0xD8,0xD8,0x2A,0x2A,0x2A,0x11,0x11,0x11,0xF0,0x82,0x98,0xFE,0xD7,0xE0,0xFF,
85 0xED,0xEF,0xCA,0x00,0x2F,0xF2,0xF2,0xF2,0xFE,0xF4,0xF5,0xD6,0x11,0x41,0xD2,0x02,
86 0x2E,0x81,0x81,0x81,0xCC,0x00,0x33,0x00,0x00,0x00,0xFF,0xFF,0xFF,0x00,0x00,0x00,
87 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
88 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
89 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
90 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
91 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
92 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
93 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
94 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
95 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
96 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
97 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
98 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
99 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
100 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
101 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
102 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
103 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
104 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
105 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
106 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
107 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
108 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
109 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
110 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
111 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
112 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
113 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
114 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
115 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
116 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
C51 COMPILER V7.09 WEBDOC1 07/07/2004 14:57:24 PAGE 3
117 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
118 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
119 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
120 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
121 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
122 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
123 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
124 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
125 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
126 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
127 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
128 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x2C,0x00,0x00,
129 0x00,0x00,0x31,0x01,0x4A,0x00,0x00,0x08,0xFF,0x00,0x3F,0x08,0x1C,0x48,0xB0,0xA0,
130 0xC1,0x83,0x08,0x13,0x2A,0x5C,0xC8,0xB0,0xA1,0x43,0x84,0x0B,0x1E,0x4A,0x9C,0x48,
131 0xB1,0xA2,0xC5,0x8B,0x18,0x33,0x5E,0x4C,0xC0,0xA1,0xA3,0xC7,0x8F,0x20,0x43,0x8A,
132 0x1C,0x49,0xB2,0xE4,0x03,0x8D,0x28,0x53,0xAA,0x5C,0xC9,0xB2,0xA5,0xCB,0x95,0x1C,
133 0x3C,0xC8,0x9C,0x49,0xB3,0xA6,0xCD,0x9B,0x38,0x73,0xEA,0x1C,0xF0,0xB2,0xA7,0xCF,
134 0x9F,0x40,0x83,0x0A,0x1D,0x18,0x53,0xA7,0xD1,0xA3,0x48,0x71,0xF2,0x1C,0xCA,0xF4,
135 0xE7,0x82,0x00,0x12,0x1A,0x48,0xE5,0xD0,0xB4,0xAA,0xD5,0xA2,0x34,0x27,0x48,0xD8,
136 0x3A,0xA1,0x6B,0x56,0xAF,0x32,0xB7,0x6E,0x9D,0x09,0x56,0x66,0x59,0x0F,0x5D,0x27,
137 0x7C,0xA5,0xB9,0xD4,0xAA,0xDB,0x94,0x18,0x06,0x68,0xDD,0xDA,0xF6,0xAD,0xDD,0x97,
138 0x58,0xD1,0x72,0x88,0x80,0x41,0xC1,0xD3,0x00,0x0A,0x06,0xC8,0x6C,0xA0,0xE0,0x40,
139 0xD7,0xBD,0x7D,0x31,0x2C,0x10,0x3C,0x40,0x41,0x84,0x06,0x66,0x1F,0x24,0x50,0x8B,
140 0xF6,0x80,0x82,0xC9,0x61,0x23,0x3C,0xA0,0xEC,0xA1,0xEE,0xDD,0xCF,0x12,0x23,0x48,
141 0xA0,0x19,0x00,0xB4,0x69,0x95,0x58,0x25,0x24,0xF8,0xC0,0x71,0x40,0x80,0x06,0x54,
142 0x1F,0x78,0x90,0xA0,0x00,0x43,0x83,0x09,0x27,0x23,0x04,0x18,0xC0,0xE1,0x00,0xE4,
143 0xD2,0x1F,0x0E,0x84,0xC5,0x90,0x60,0x26,0x55,0x0C,0x1F,0x20,0x77,0xFE,0x20,0x7B,
144 0xA6,0xE7,0xD3,0xD0,0x0F,0x16,0xA7,0x79,0x32,0xBA,0x75,0x8A,0x58,0x0F,0x04,0xE7,
145 0x3C,0xBB,0x6F,0x83,0x07,0x0B,0x20,0x6B,0xFF,0x37,0x5C,0x73,0x42,0x02,0x0C,0xE8,
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -