From cd6c5655e4b5434f599db4472f62d22e252c50ab Mon Sep 17 00:00:00 2001 From: Gregory Nutt Date: Thu, 3 Jul 2014 17:31:17 -0600 Subject: Rename apps/examples/uip to apps/examples/webserver --- apps/examples/webserver/httpd-fs/.gitignore | 12 ++++ apps/examples/webserver/httpd-fs/404.html | 8 +++ apps/examples/webserver/httpd-fs/fade.png | Bin 0 -> 196 bytes apps/examples/webserver/httpd-fs/files.shtml | 31 +++++++++ apps/examples/webserver/httpd-fs/footer.html | 3 + apps/examples/webserver/httpd-fs/header.html | 16 +++++ apps/examples/webserver/httpd-fs/index.shtml | 10 +++ apps/examples/webserver/httpd-fs/stats.shtml | 31 +++++++++ apps/examples/webserver/httpd-fs/style.css | 92 +++++++++++++++++++++++++++ apps/examples/webserver/httpd-fs/tcp.shtml | 5 ++ 10 files changed, 208 insertions(+) create mode 100644 apps/examples/webserver/httpd-fs/.gitignore create mode 100644 apps/examples/webserver/httpd-fs/404.html create mode 100644 apps/examples/webserver/httpd-fs/fade.png create mode 100644 apps/examples/webserver/httpd-fs/files.shtml create mode 100644 apps/examples/webserver/httpd-fs/footer.html create mode 100644 apps/examples/webserver/httpd-fs/header.html create mode 100644 apps/examples/webserver/httpd-fs/index.shtml create mode 100644 apps/examples/webserver/httpd-fs/stats.shtml create mode 100644 apps/examples/webserver/httpd-fs/style.css create mode 100644 apps/examples/webserver/httpd-fs/tcp.shtml (limited to 'apps/examples/webserver/httpd-fs') diff --git a/apps/examples/webserver/httpd-fs/.gitignore b/apps/examples/webserver/httpd-fs/.gitignore new file mode 100644 index 000000000..e75e705d4 --- /dev/null +++ b/apps/examples/webserver/httpd-fs/.gitignore @@ -0,0 +1,12 @@ +/Make.dep +/.context +/.depend +/.built +/*.asm +/*.obj +/*.rel +/*.lst +/*.sym +/*.adb +/*.lib +/*.src diff --git a/apps/examples/webserver/httpd-fs/404.html b/apps/examples/webserver/httpd-fs/404.html new file mode 100644 index 000000000..a17711d02 --- /dev/null +++ b/apps/examples/webserver/httpd-fs/404.html @@ -0,0 +1,8 @@ + + +
+

404 - file not found

+

Go here instead.

+
+ + \ No newline at end of file diff --git a/apps/examples/webserver/httpd-fs/fade.png b/apps/examples/webserver/httpd-fs/fade.png new file mode 100644 index 000000000..a9e69f75d Binary files /dev/null and b/apps/examples/webserver/httpd-fs/fade.png differ diff --git a/apps/examples/webserver/httpd-fs/files.shtml b/apps/examples/webserver/httpd-fs/files.shtml new file mode 100644 index 000000000..8a90dbd6d --- /dev/null +++ b/apps/examples/webserver/httpd-fs/files.shtml @@ -0,0 +1,31 @@ +%!: /header.html +

File statistics

+
+ + + + + + + + + + + + + +
/index.shtml%! file-stats /index.shtml +
/files.shtml%! file-stats /files.shtml +
/stats.shtml%! file-stats /stats.shtml +
/style.css%! file-stats /style.css +
/404.html%! file-stats /404.html +
/fade.png%! file-stats /fade.png +
+
+%!: /footer.html diff --git a/apps/examples/webserver/httpd-fs/footer.html b/apps/examples/webserver/httpd-fs/footer.html new file mode 100644 index 000000000..5b6e2d653 --- /dev/null +++ b/apps/examples/webserver/httpd-fs/footer.html @@ -0,0 +1,3 @@ + + + diff --git a/apps/examples/webserver/httpd-fs/header.html b/apps/examples/webserver/httpd-fs/header.html new file mode 100644 index 000000000..ce2659cd4 --- /dev/null +++ b/apps/examples/webserver/httpd-fs/header.html @@ -0,0 +1,16 @@ + + + + Welcome to the uIP web server! + + + + + + +
diff --git a/apps/examples/webserver/httpd-fs/index.shtml b/apps/examples/webserver/httpd-fs/index.shtml new file mode 100644 index 000000000..7f19358ce --- /dev/null +++ b/apps/examples/webserver/httpd-fs/index.shtml @@ -0,0 +1,10 @@ +%!: /header.html +

+ These web pages are served by a small web server running on top of + the uIP embedded TCP/IP + stack. +

+

+ Click on the links above for web server statistics. +

+%!: /footer.html diff --git a/apps/examples/webserver/httpd-fs/stats.shtml b/apps/examples/webserver/httpd-fs/stats.shtml new file mode 100644 index 000000000..c63ed4afd --- /dev/null +++ b/apps/examples/webserver/httpd-fs/stats.shtml @@ -0,0 +1,31 @@ +%!: /header.html +

Network statistics

+
+ +
+IP           Packets received
+             Packets sent
+	     Packets dropped
+IP errors    IP version/header length
+             IP length, high byte
+             IP length, low byte
+             IP fragments
+             Header checksum
+             Wrong protocol
+ICMP	     Packets received
+             Packets sent
+             Packets dropped
+             Type errors
+TCP          Packets received
+             Packets sent
+             Packets dropped
+             Checksum errors
+             Data packets without ACKs
+             Resets
+             Retransmissions
+	     No connection avaliable
+	     Connection attempts to closed ports
+
%! net-stats
+
+
+%!: /footer.html diff --git a/apps/examples/webserver/httpd-fs/style.css b/apps/examples/webserver/httpd-fs/style.css new file mode 100644 index 000000000..b35cd7efc --- /dev/null +++ b/apps/examples/webserver/httpd-fs/style.css @@ -0,0 +1,92 @@ +h1 +{ + text-align: center; + font-size:14pt; + font-family:arial,helvetica; + font-weight:bold; + padding:10px; +} + +body +{ + + background-color: #fffeec; + color:black; + + font-size:8pt; + font-family:arial,helvetica; +} + +.menu +{ + margin: 4px; + width:60%; + + padding:2px; + + border: solid 1px; + background-color: #fffcd2; + text-align:left; + + font-size:9pt; + font-family:arial,helvetica; +} + +div.menubox +{ + width: 25%; + border: 0; + float: left; +text-align: center; +} + +.contentblock +{ + margin: 4px; + width:60%; + + padding:2px; + + border: 1px dotted; + background-color: white; + + font-size:8pt; + font-family:arial,helvetica; + +} + +p.intro +{ + margin-left:20px; + margin-right:20px; + + font-size:10pt; +/* font-weight:bold; */ + font-family:arial,helvetica; +} + +p.clink +{ + font-size:12pt; + font-family:courier,monospace; + text-align:center; +} + +p.clink9 +{ + font-size:9pt; + font-family:courier,monospace; + text-align:center; +} + + +p +{ + padding-left:10px; +} + +p.right +{ + text-align:right; +} + diff --git a/apps/examples/webserver/httpd-fs/tcp.shtml b/apps/examples/webserver/httpd-fs/tcp.shtml new file mode 100644 index 000000000..4c4bffe97 --- /dev/null +++ b/apps/examples/webserver/httpd-fs/tcp.shtml @@ -0,0 +1,5 @@ +%!: /header.html +

Current connections


+ +%! tcp-connections +%!: /footer.html \ No newline at end of file -- cgit v1.2.3
LocalRemoteStateRetransmissionsTimerFlags