博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
tinyhttpd源码学习1
阅读量:2194 次
发布时间: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/640428

你可能感兴趣的文章
搞懂分布式技术13:缓存的那些事
查看>>
搞懂分布式技术14:Spring Boot使用注解集成Redis缓存
查看>>
搞懂分布式技术15:缓存更新的套路
查看>>
搞懂分布式技术16:浅谈分布式锁的几种方案
查看>>
搞懂分布式技术17:浅析分布式事务
查看>>
搞懂分布式技术18:分布式事务常用解决方案
查看>>
搞懂分布式技术19:使用RocketMQ事务消息解决分布式事务
查看>>
搞懂分布式技术20:消息队列因何而生
查看>>
搞懂分布式技术21:浅谈分布式消息技术 Kafka
查看>>
后端技术杂谈1:搜索引擎基础倒排索引
查看>>
后端技术杂谈2:搜索引擎工作原理
查看>>
后端技术杂谈3:Lucene基础原理与实践
查看>>
后端技术杂谈4:Elasticsearch与solr入门实践
查看>>
后端技术杂谈5:云计算的前世今生
查看>>
后端技术杂谈6:白话虚拟化技术
查看>>
后端技术杂谈7:OpenStack的基石KVM
查看>>
后端技术杂谈8:OpenStack架构设计
查看>>
后端技术杂谈9:先搞懂Docker核心概念吧
查看>>
后端技术杂谈10:Docker 核心技术与实现原理
查看>>
夯实Java基础系列2:Java自动拆装箱里隐藏的秘密
查看>>