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