zoukankan      html  css  js  c++  java
  • tinyhttpd源码学习1

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

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

      This software is copyright 1999 by J. David Blackstone.  Permission
    is granted to redistribute and modify this software under the terms of
    the GNU General Public License, available at http://www.gnu.org/ .
    
      If you use this software or examine the code, I would appreciate
    knowing and would be overjoyed to hear about it at
    jdavidb@sourceforge.net .
    
      This software is not production quality.  It comes with no warranty
    of any kind, not even an implied warranty of fitness for a particular
    purpose.  I am not responsible for the damage that will likely result
    if you use this software on your computer system.
    
      I wrote this webserver for an assignment in my networking class in
    1999.  We were told that at a bare minimum the server had to serve
    pages, and told that we would get extra credit for doing "extras."
    Perl had introduced me to a whole lot of UNIX functionality (I learned
    sockets and fork from Perl!), and O'Reilly's lion book on UNIX system
    calls plus O'Reilly's books on CGI and writing web clients in Perl got
    me thinking and I realized I could make my webserver support CGI with
    little trouble.
    
      Now, if you're a member of the Apache core group, you might not be
    impressed.  But my professor was blown over.  Try the color.cgi sample
    script and type in "chartreuse."  Made me seem smarter than I am, at
    any rate. :)
    
      Apache it's not.  But I do hope that this program is a good
    educational tool for those interested in http/socket programming, as
    well 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 of
    mind?!?) use it, I would just be overjoyed to hear about it.  Please
    email me.  I probably won't really be releasing major updates, but if
    I help you learn something, I'd love to know!
    
      Happy hacking!
    
                                       J. David Blackstone
    

    年代比较久远了,远不及apache,但是也能从中找寻乐趣,happy hacking~

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


    每天早上叫醒你的不是闹钟,而是心中的梦~
  • 相关阅读:
    【mac】homebrew国内源安装加速
    【Mac】快速删除指定文件夹下的.DS_Store文件
    【mac】Mac微信小助手安装和卸载
    如何高效的开展app的性能测试
    什么是C#?什么是DOTNET?
    Xamarin Android使用自签名证书
    产品经理的私房菜
    java并发编程2-Synchronized关键字底层实现原理详解
    VS Code 1.60 发布!竟然可以自动检测编程语言了!
    为什么'x1B'.length===1?x与u知识延伸
  • 原文地址:https://www.cnblogs.com/vintion/p/4116813.html
Copyright © 2011-2022 走看看