Coder Social home page Coder Social logo

multithreadhttpd's Introduction

Multi-thread Httpd by C++11

  • ./build.sh 可以直接编译运行本程序,缺少相应目录时报错
  • ConfigLoad: 加载配置文件
  • MLog: 日志类
  • TWork: 工作线程
  • Server: 服务器总开关
  • Socket: 封装套接字API
  • Buffer: 封装读写缓冲
  • Request: 解析和处理请求
  • Daemonize:使程序以守护进程方式运行,其实现参见此链接
  • 注:
    • (1)htdocs目录中的内容参考Tinyhttpd
    • (2)代码中所有printf和cout皆为方便观察程序运行过程,均可注释掉
    • (3)为便于在终端观察输出,Daemonize未加入
    • (4)httpd.conf为配置文件,httpd.log为日志文件,htddos目录存放所有CGI脚本和HTML页面

multithreadhttpd's People

Contributors

idiotxue avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.