实例介绍
基于uip的web server演示,有详细的移植说明。 这个web server并非uip官方例程里那个。uip官方例程里的web server添加动态网页很麻烦,而且还不能处理提交动作。这个web server从一个交换机管理项目移植过来,添加网页功能很方便,稳定性和兼容性都比uip例程里那个好用很多。在我之前,网上应该没人做过这个的移植。
【实例截图】
【核心代码】
cosmosV1E_with_webserver
├── cosmos webserver.pdf
├── prj
│ ├── JLinkLog.txt
│ ├── JLink Regs CM3.txt
│ ├── JLinkSettings.ini
│ ├── stm-tcp_stm-tcp.dep
│ ├── stm-tcp.uvgui.Zhouke
│ ├── stm-tcp.uvgui_Zhouke.bak
│ ├── stm-tcp.uvopt
│ ├── stm-tcp_uvopt.bak
│ ├── stm-tcp.uvproj
│ ├── stm-tcp_uvproj.bak
│ └── vssver2.scc
└── src
├── delay.c
├── delay.h
├── enc28j60
│ ├── enc28j60.c
│ ├── enc28j60.h
│ ├── spi_enc28j60.c
│ └── spi_enc28j60.h
├── exti.c
├── exti.h
├── global.c
├── global.h
├── gpio.c
├── gpio.h
├── main.c
├── main.c.orig
├── main.h
├── platform_init.c
├── platform_init.h
├── stdlib
│ ├── core_cm3.c
│ ├── core_cm3.h
│ ├── misc.c
│ ├── misc.h
│ ├── StartUp
│ │ ├── startup_stm32f10x_hd.s
│ │ ├── startup_stm32f10x_ld.s
│ │ ├── startup_stm32f10x_md.s
│ │ └── vssver2.scc
│ ├── stm32f10x_adc.c
│ ├── stm32f10x_adc.h
│ ├── stm32f10x_bkp.c
│ ├── stm32f10x_bkp.h
│ ├── stm32f10x_can.c
│ ├── stm32f10x_can.h
│ ├── stm32f10x_conf.h
│ ├── stm32f10x_crc.c
│ ├── stm32f10x_crc.h
│ ├── stm32f10x_dac.c
│ ├── stm32f10x_dac.h
│ ├── stm32f10x_dbgmcu.c
│ ├── stm32f10x_dbgmcu.h
│ ├── stm32f10x_dma.c
│ ├── stm32f10x_dma.h
│ ├── stm32f10x_exti.c
│ ├── stm32f10x_exti.h
│ ├── stm32f10x_flash.c
│ ├── stm32f10x_flash.h
│ ├── stm32f10x_fsmc.c
│ ├── stm32f10x_fsmc.h
│ ├── stm32f10x_gpio.c
│ ├── stm32f10x_gpio.h
│ ├── stm32f10x.h
│ ├── stm32f10x_i2c.c
│ ├── stm32f10x_i2c.h
│ ├── stm32f10x_iwdg.c
│ ├── stm32f10x_iwdg.h
│ ├── stm32f10x_pwr.c
│ ├── stm32f10x_pwr.h
│ ├── stm32f10x_rcc.c
│ ├── stm32f10x_rcc.h
│ ├── stm32f10x_rtc.c
│ ├── stm32f10x_rtc.h
│ ├── stm32f10x_sdio.c
│ ├── stm32f10x_sdio.h
│ ├── stm32f10x_spi.c
│ ├── stm32f10x_spi.h
│ ├── stm32f10x_tim.c
│ ├── stm32f10x_tim.h
│ ├── stm32f10x_usart.c
│ ├── stm32f10x_usart.h
│ ├── stm32f10x_wwdg.c
│ ├── stm32f10x_wwdg.h
│ ├── system_stm32f10x.c
│ ├── system_stm32f10x.h
│ └── vssver2.scc
├── stm32f10x_conf.h
├── stm32f10x_it.c
├── stm32f10x_it.h
├── tcpip
│ ├── ARP.C
│ ├── ARP.H
│ ├── CKSUM.C
│ ├── CKSUM.H
│ ├── ICMP.C
│ ├── ICMP.H
│ ├── IP.C
│ ├── IP.H
│ ├── TCP.C
│ ├── TCP.H
│ ├── UDP.C
│ └── UDP.H
├── tempad.c
├── tempad.h
├── timer.c
├── timer.h
├── tools.c
├── tools.h
├── uip1.0
│ ├── apps
│ │ ├── dhcpc
│ │ │ ├── dhcpc.c
│ │ │ ├── dhcpc.h
│ │ │ └── Makefile.dhcpc
│ │ ├── hello-world
│ │ │ ├── hello-world.c
│ │ │ ├── hello-world.h
│ │ │ └── Makefile.hello-world
│ │ ├── httpd
│ │ │ ├── httpd.c
│ │ │ └── httpd.h
│ │ ├── README
│ │ ├── resolv
│ │ │ ├── Makefile.resolv
│ │ │ ├── resolv.c
│ │ │ └── resolv.h
│ │ ├── smtp
│ │ │ ├── Makefile.smtp
│ │ │ ├── makestrings
│ │ │ ├── smtp.c
│ │ │ ├── smtp.h
│ │ │ ├── smtp-strings
│ │ │ ├── smtp-strings.c
│ │ │ └── smtp-strings.h
│ │ ├── telnetd
│ │ │ ├── Makefile.telnetd
│ │ │ ├── shell.c
│ │ │ ├── shell.h
│ │ │ ├── telnetd.c
│ │ │ └── telnetd.h
│ │ ├── webclient
│ │ │ ├── Makefile.webclient
│ │ │ ├── makestrings
│ │ │ ├── webclient.c
│ │ │ ├── webclient.h
│ │ │ ├── webclient-strings
│ │ │ ├── webclient-strings.c
│ │ │ └── webclient-strings.h
│ │ └── webserver
│ │ ├── httpd.c
│ │ ├── httpd-cgi.c
│ │ ├── httpd-cgi.h
│ │ ├── httpd-fs
│ │ │ ├── 404.html
│ │ │ ├── fade.png
│ │ │ ├── files.shtml
│ │ │ ├── footer.html
│ │ │ ├── header.html
│ │ │ ├── index.html
│ │ │ ├── processes.shtml
│ │ │ ├── stats.shtml
│ │ │ ├── style.css
│ │ │ └── tcp.shtml
│ │ ├── httpd-fs.c
│ │ ├── httpd-fsdata.c
│ │ ├── httpd-fsdata.h
│ │ ├── httpd-fs.h
│ │ ├── httpd.h
│ │ ├── http-strings
│ │ ├── http-strings.c
│ │ ├── http-strings.h
│ │ ├── Makefile.webserver
│ │ ├── makefsdata
│ │ ├── makestrings
│ │ └── webserver.h
│ ├── doc
│ │ ├── Doxyfile
│ │ ├── doxygen.sty
│ │ ├── example-mainloop-with-arp.c
│ │ ├── example-mainloop-without-arp.c
│ │ ├── examples.txt
│ │ ├── header.tex
│ │ ├── html
│ │ │ ├── a00036.html
│ │ │ ├── a00037.html
│ │ │ ├── a00038.html
│ │ │ ├── a00039.html
│ │ │ ├── a00040.html
│ │ │ ├── a00041.html
│ │ │ ├── a00042.html
│ │ │ ├── a00043.html
│ │ │ ├── a00044.html
│ │ │ ├── a00045.html
│ │ │ ├── a00046.html
│ │ │ ├── a00047.html
│ │ │ ├── a00048.html
│ │ │ ├── a00049.html
│ │ │ ├── a00050.html
│ │ │ ├── a00051.html
│ │ │ ├── a00077.html
│ │ │ ├── a00078.html
│ │ │ ├── a00079.html
│ │ │ ├── a00080.html
│ │ │ ├── a00081.html
│ │ │ ├── a00082.html
│ │ │ ├── a00083.html
│ │ │ ├── a00084.html
│ │ │ ├── a00085.html
│ │ │ ├── a00086.html
│ │ │ ├── a00087.html
│ │ │ ├── a00088.html
│ │ │ ├── a00089.html
│ │ │ ├── a00090.html
│ │ │ ├── a00091.html
│ │ │ ├── a00092.html
│ │ │ ├── a00093.html
│ │ │ ├── a00094.html
│ │ │ ├── a00095.html
│ │ │ ├── a00096.html
│ │ │ ├── a00097.html
│ │ │ ├── a00100.html
│ │ │ ├── a00101.html
│ │ │ ├── a00102.html
│ │ │ ├── a00103.html
│ │ │ ├── a00104.html
│ │ │ ├── a00105.html
│ │ │ ├── a00107.html
│ │ │ ├── a00110.html
│ │ │ ├── a00111.html
│ │ │ ├── a00112.html
│ │ │ ├── a00113.html
│ │ │ ├── a00114.html
│ │ │ ├── a00120.html
│ │ │ ├── a00121.html
│ │ │ ├── a00123.html
│ │ │ ├── a00124.html
│ │ │ ├── a00125.html
│ │ │ ├── a00127.html
│ │ │ ├── a00128.html
│ │ │ ├── a00129.html
│ │ │ ├── a00130.html
│ │ │ ├── a00131.html
│ │ │ ├── a00132.html
│ │ │ ├── a00134.html
│ │ │ ├── a00135.html
│ │ │ ├── a00136.html
│ │ │ ├── a00137.html
│ │ │ ├── a00138.html
│ │ │ ├── a00139.html
│ │ │ ├── a00140.html
│ │ │ ├── a00141.html
│ │ │ ├── a00142.html
│ │ │ ├── a00143.html
│ │ │ ├── a00144.html
│ │ │ ├── a00145.html
│ │ │ ├── a00146.html
│ │ │ ├── a00147.html
│ │ │ ├── a00148.html
│ │ │ ├── a00149.html
│ │ │ ├── a00150.html
│ │ │ ├── a00151.html
│ │ │ ├── a00152.html
│ │ │ ├── a00153.html
│ │ │ ├── a00154.html
│ │ │ ├── a00155.html
│ │ │ ├── a00156.html
│ │ │ ├── a00157.html
│ │ │ ├── a00158.html
│ │ │ ├── a00159.html
│ │ │ ├── a00160.html
│ │ │ ├── a00161.html
│ │ │ ├── a00162.html
│ │ │ ├── a00163.html
│ │ │ ├── a00164.html
│ │ │ ├── a00168.html
│ │ │ ├── a00169.html
│ │ │ ├── a00170.html
│ │ │ ├── a00171.html
│ │ │ ├── a00172.html
│ │ │ ├── a00173.html
│ │ │ ├── a00174.html
│ │ │ ├── a00175.html
│ │ │ ├── a00176.html
│ │ │ ├── a00177.html
│ │ │ ├── a00178.html
│ │ │ ├── a00179.html
│ │ │ ├── a00180.html
│ │ │ ├── a00181.html
│ │ │ ├── a00182.html
│ │ │ ├── a00183.html
│ │ │ ├── a00184.html
│ │ │ ├── a00185.html
│ │ │ ├── a00186.html
│ │ │ ├── a00187.html
│ │ │ ├── a00188.html
│ │ │ ├── a00189.html
│ │ │ ├── a00190.html
│ │ │ ├── a00191.html
│ │ │ ├── a00192.html
│ │ │ ├── a00193.html
│ │ │ ├── a00194.html
│ │ │ ├── a00195.html
│ │ │ ├── a00196.html
│ │ │ ├── a00197.html
│ │ │ ├── a00198.html
│ │ │ ├── a00199.html
│ │ │ ├── a00200.html
│ │ │ ├── a00201.html
│ │ │ ├── a00202.html
│ │ │ ├── a00203.html
│ │ │ ├── a00204.html
│ │ │ ├── a00205.html
│ │ │ ├── a00206.html
│ │ │ ├── a00207.html
│ │ │ ├── annotated.html
│ │ │ ├── classes.html
│ │ │ ├── doxygen.css
│ │ │ ├── doxygen.png
│ │ │ ├── examples.html
│ │ │ ├── files.html
│ │ │ ├── ftv2blank.png
│ │ │ ├── ftv2doc.png
│ │ │ ├── ftv2folderclosed.png
│ │ │ ├── ftv2folderopen.png
│ │ │ ├── ftv2lastnode.png
│ │ │ ├── ftv2link.png
│ │ │ ├── ftv2mlastnode.png
│ │ │ ├── ftv2mnode.png
│ │ │ ├── ftv2node.png
│ │ │ ├── ftv2plastnode.png
│ │ │ ├── ftv2pnode.png
│ │ │ ├── ftv2vertline.png
│ │ │ ├── functions.html
│ │ │ ├── functions_vars.html
│ │ │ ├── globals_0x61.html
│ │ │ ├── globals_0x62.html
│ │ │ ├── globals_0x64.html
│ │ │ ├── globals_0x65.html
│ │ │ ├── globals_0x66.html
│ │ │ ├── globals_0x68.html
│ │ │ ├── globals_0x69.html
│ │ │ ├── globals_0x6c.html
│ │ │ ├── globals_0x6d.html
│ │ │ ├── globals_0x6e.html
│ │ │ ├── globals_0x70.html
│ │ │ ├── globals_0x72.html
│ │ │ ├── globals_0x73.html
│ │ │ ├── globals_0x74.html
│ │ │ ├── globals_0x75.html
│ │ │ ├── globals_0x77.html
│ │ │ ├── globals_defs_0x61.html
│ │ │ ├── globals_defs_0x62.html
│ │ │ ├── globals_defs_0x64.html
│ │ │ ├── globals_defs_0x65.html
│ │ │ ├── globals_defs_0x66.html
│ │ │ ├── globals_defs_0x68.html
│ │ │ ├── globals_defs_0x69.html
│ │ │ ├── globals_defs_0x6c.html
│ │ │ ├── globals_defs_0x6d.html
│ │ │ ├── globals_defs_0x6e.html
│ │ │ ├── globals_defs_0x70.html
│ │ │ ├── globals_defs_0x72.html
│ │ │ ├── globals_defs_0x73.html
│ │ │ ├── globals_defs_0x74.html
│ │ │ ├── globals_defs_0x75.html
│ │ │ ├── globals_defs_0x77.html
│ │ │ ├── globals_defs.html
│ │ │ ├── globals_func.html
│ │ │ ├── globals.html
│ │ │ ├── globals_type.html
│ │ │ ├── globals_vars.html
│ │ │ ├── hierarchy.html
│ │ │ ├── index.hhc
│ │ │ ├── index.hhk
│ │ │ ├── index.hhp
│ │ │ ├── index.html
│ │ │ ├── main.html
│ │ │ ├── modules.html
│ │ │ ├── tab_b.gif
│ │ │ ├── tab_l.gif
│ │ │ ├── tab_r.gif
│ │ │ ├── tabs.css
│ │ │ └── tree.html
│ │ ├── Makefile
│ │ ├── mobisys2003.pdf
│ │ ├── pt-doc.txt
│ │ ├── README
│ │ ├── sicslogo.pdf
│ │ ├── uip-code-style.c
│ │ ├── uip-code-style.txt
│ │ ├── uip-doc.txt
│ │ └── uip-refman.pdf
│ ├── lib
│ │ ├── memb.c
│ │ └── memb.h
│ ├── README
│ ├── uip
│ │ ├── clock.h
│ │ ├── lc-addrlabels.h
│ │ ├── lc.h
│ │ ├── lc-switch.h
│ │ ├── Makefile.include
│ │ ├── psock.c
│ │ ├── psock.h
│ │ ├── pt.h
│ │ ├── uip_arch.h
│ │ ├── uip_arp.c
│ │ ├── uip_arp.h
│ │ ├── uip.c
│ │ ├── uip-fw.c
│ │ ├── uip-fw.h
│ │ ├── uip.h
│ │ ├── uiplib.c
│ │ ├── uiplib.h
│ │ ├── uip-neighbor.c
│ │ ├── uip-neighbor.h
│ │ ├── uipopt.h
│ │ ├── uip-split.c
│ │ ├── uip-split.h
│ │ ├── uip_timer.c
│ │ └── uip_timer.h
│ ├── uip-1.0-changelog.txt
│ └── unix
│ ├── clock-arch.c
│ ├── clock-arch.h
│ ├── Makefile
│ ├── tapdev.c
│ ├── tapdev.h
│ └── uip-conf.h
├── usart_app.c
├── usart_app.h
├── usart.c
├── usart.h
├── vssver2.scc
├── webpages
│ ├── bg.c
│ ├── bg.gif
│ ├── bg.h
│ ├── bg.png
│ ├── duplicate.c
│ ├── duplicate.h
│ ├── duplicate.htm
│ ├── filedir.c
│ ├── funcdir.c
│ ├── get.c
│ ├── get.h
│ ├── get.htm
│ ├── httpstat.c
│ ├── httpstat.h
│ ├── index.c
│ ├── index.h
│ ├── index.htm
│ ├── left.c
│ ├── left.h
│ ├── left.htm
│ ├── makecommon.bat
│ ├── password.c
│ ├── passwordConfirmation.c
│ ├── passwordConfirmation.h
│ ├── passwordConfirmation.htm
│ ├── password.h
│ ├── password.htm
│ ├── postdemo.c
│ ├── postdemo.h
│ ├── postdemo.htm
│ ├── sys.c
│ ├── sys.h
│ ├── sys.htm
│ ├── tools
│ │ ├── html2c.pl
│ │ └── txt2c.pl
│ ├── top.c
│ ├── top.h
│ ├── top.htm
│ ├── upload.c
│ ├── uploaddone.c
│ ├── uploaddone.h
│ ├── uploaddone.htm
│ ├── upload.h
│ └── upload.htm
└── webserver
├── common.h
├── fs.c
├── fs.h
├── httpd.c
├── httpd.h
├── miscfun.c
├── miscfun.h
├── webhnd.c
├── webhnd.h
├── webpost.c
├── webpost.h
├── webvar.c
└── webvar.h
25 directories, 472 files
标签:
小贴士
感谢您为本站写下的评论,您的评论对其它用户来说具有重要的参考价值,所以请认真填写。
- 类似“顶”、“沙发”之类没有营养的文字,对勤劳贡献的楼主来说是令人沮丧的反馈信息。
- 相信您也不想看到一排文字/表情墙,所以请不要反馈意义不大的重复字符,也请尽量不要纯表情的回复。
- 提问之前请再仔细看一遍楼主的说明,或许是您遗漏了。
- 请勿到处挖坑绊人、招贴广告。既占空间让人厌烦,又没人会搭理,于人于己都无利。
关于好例子网
本站旨在为广大IT学习爱好者提供一个非营利性互相学习交流分享平台。本站所有资源都可以被免费获取学习研究。本站资源来自网友分享,对搜索内容的合法性不具有预见性、识别性、控制性,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,平台无法对用户传输的作品、信息、内容的权属或合法性、安全性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论平台是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二与二十三条之规定,若资源存在侵权或相关问题请联系本站客服人员,点此联系我们。关于更多版权及免责申明参见 版权及免责申明
网友评论
我要评论