Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: oldheating gps motorhome heating
base/net/web-net-html.c@153:eaee18d970c4, 2021-01-21 (annotated)
- Committer:
- andrewboyson
- Date:
- Thu Jan 21 13:33:44 2021 +0000
- Revision:
- 153:eaee18d970c4
- Parent:
- 147:ea6f647725a1
- Child:
- 155:4df4ed4b65a2
Added button to test resolution of a name from an address.
Who changed what in which revision?
| User | Revision | Line number | New contents of line |
|---|---|---|---|
| andrewboyson | 110:8ab752842d25 | 1 | #include "http.h" |
| andrewboyson | 110:8ab752842d25 | 2 | #include "web-nav-base.h" |
| andrewboyson | 110:8ab752842d25 | 3 | #include "web-add.h" |
| andrewboyson | 110:8ab752842d25 | 4 | #include "mac.h" |
| andrewboyson | 110:8ab752842d25 | 5 | |
| andrewboyson | 110:8ab752842d25 | 6 | void WebNetHtml() |
| andrewboyson | 110:8ab752842d25 | 7 | { |
| andrewboyson | 110:8ab752842d25 | 8 | HttpOk("text/html; charset=UTF-8", "no-cache", NULL, NULL); |
| andrewboyson | 132:5b2df69a4f17 | 9 | WebAddHeader("Net", "settings.css", "net.js"); |
| andrewboyson | 110:8ab752842d25 | 10 | WebAddNav(NET_PAGE); |
| andrewboyson | 110:8ab752842d25 | 11 | WebAddH1("Net"); |
| andrewboyson | 110:8ab752842d25 | 12 | |
| andrewboyson | 132:5b2df69a4f17 | 13 | WebAddH2("MAC"); |
| andrewboyson | 147:ea6f647725a1 | 14 | HttpAddText("<code id='ajax-mac'></code>\r\n"); |
| andrewboyson | 147:ea6f647725a1 | 15 | |
| andrewboyson | 133:98c6bf14bc37 | 16 | WebAddH2("TCP connections"); |
| andrewboyson | 132:5b2df69a4f17 | 17 | HttpAddText("<code id='ajax-tcp'></code>\r\n"); |
| andrewboyson | 147:ea6f647725a1 | 18 | |
| andrewboyson | 143:cc2e148cb96a | 19 | WebAddH2("Name resolution"); |
| andrewboyson | 147:ea6f647725a1 | 20 | WebAddAjaxInput("Name", 40, "ajax-nr", "name-to-resolve"); |
| andrewboyson | 147:ea6f647725a1 | 21 | WebAddAjaxButton("Request AAAA", "request-AAAA"); |
| andrewboyson | 147:ea6f647725a1 | 22 | WebAddAjaxButton("Request A" , "request-A" ); |
| andrewboyson | 153:eaee18d970c4 | 23 | WebAddAjaxButton("Request PTR" , "request-PTR" ); |
| andrewboyson | 147:ea6f647725a1 | 24 | |
| andrewboyson | 147:ea6f647725a1 | 25 | WebAddH2("Name cache"); |
| andrewboyson | 143:cc2e148cb96a | 26 | HttpAddText("<code id='ajax-dns'></code>\r\n"); |
| andrewboyson | 147:ea6f647725a1 | 27 | HttpAddText("<div class='line'>\r\n"); |
| andrewboyson | 147:ea6f647725a1 | 28 | HttpAddText("<button onclick = 'Net.clearVendorsFromLocalStorage()'>Clear vendors</button>\r\n"); |
| andrewboyson | 147:ea6f647725a1 | 29 | HttpAddText("</div>\r\n"); |
| andrewboyson | 110:8ab752842d25 | 30 | |
| andrewboyson | 110:8ab752842d25 | 31 | WebAddEnd(); |
| andrewboyson | 110:8ab752842d25 | 32 | |
| andrewboyson | 110:8ab752842d25 | 33 | } |