博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
tinyhttpd源码学习1
阅读量:2195 次
发布时间:2019-05-02

本文共 2042 字,大约阅读时间需要 6 分钟。

这个项目代码量很小,绝对的学习教材

作者在README中也说了这个项目的初衷,确实挺引人深思的

This software is copyright 1999 by J. David Blackstone.  Permissionis granted to redistribute and modify this software under the terms ofthe GNU General Public License, available at http://www.gnu.org/ .  If you use this software or examine the code, I would appreciateknowing and would be overjoyed to hear about it atjdavidb@sourceforge.net .  This software is not production quality.  It comes with no warrantyof any kind, not even an implied warranty of fitness for a particularpurpose.  I am not responsible for the damage that will likely resultif you use this software on your computer system.  I wrote this webserver for an assignment in my networking class in1999.  We were told that at a bare minimum the server had to servepages, and told that we would get extra credit for doing "extras."Perl had introduced me to a whole lot of UNIX functionality (I learnedsockets and fork from Perl!), and O'Reilly's lion book on UNIX systemcalls plus O'Reilly's books on CGI and writing web clients in Perl gotme thinking and I realized I could make my webserver support CGI withlittle trouble.  Now, if you're a member of the Apache core group, you might not beimpressed.  But my professor was blown over.  Try the color.cgi samplescript and type in "chartreuse."  Made me seem smarter than I am, atany rate. :)  Apache it's not.  But I do hope that this program is a goodeducational tool for those interested in http/socket programming, aswell as UNIX system calls.  (There's some textbook uses of pipes,environment variables, forks, and so on.)  One last thing: if you look at my webserver or (are you out ofmind?!?) use it, I would just be overjoyed to hear about it.  Pleaseemail me.  I probably won't really be releasing major updates, but ifI help you learn something, I'd love to know!  Happy hacking!                                   J. David Blackstone
年代比较久远了,远不及apache,但是也能从中找寻乐趣,happy hacking~

这个是作者的一篇作业上的扩展,看来,做事很认真,想想自己上课,远没有这么大的想法

转载于:https://my.oschina.net/vintnee/blog/640518

你可能感兴趣的文章
深入理解JVM虚拟机11:Java内存异常原理与实践
查看>>
深入理解JVM虚拟机12:JVM性能管理神器VisualVM介绍与实战
查看>>
深入理解JVM虚拟机13:再谈四种引用及GC实践
查看>>
Spring源码剖析1:Spring概述
查看>>
Spring源码剖析2:初探Spring IOC核心流程
查看>>
Spring源码剖析3:Spring IOC容器的加载过程
查看>>
Spring源码剖析4:懒加载的单例Bean获取过程分析
查看>>
Spring源码剖析5:JDK和cglib动态代理原理详解
查看>>
Spring源码剖析6:Spring AOP概述
查看>>
Spring源码剖析7:AOP实现原理详解
查看>>
Spring源码剖析8:Spring事务概述
查看>>
Spring源码剖析9:Spring事务源码剖析
查看>>
重新学习Mysql数据库1:无废话MySQL入门
查看>>
探索Redis设计与实现2:Redis内部数据结构详解——dict
查看>>
探索Redis设计与实现3:Redis内部数据结构详解——sds
查看>>
探索Redis设计与实现4:Redis内部数据结构详解——ziplist
查看>>
探索Redis设计与实现6:Redis内部数据结构详解——skiplist
查看>>
探索Redis设计与实现5:Redis内部数据结构详解——quicklist
查看>>
探索Redis设计与实现8:连接底层与表面的数据结构robj
查看>>
探索Redis设计与实现7:Redis内部数据结构详解——intset
查看>>