项目作者: QinlinChen

项目描述 :
HTTP server
高级语言: C
项目地址: git://github.com/QinlinChen/httpd.git
创建时间: 2018-06-12T08:10:48Z
项目社区:https://github.com/QinlinChen/httpd

开源协议:

下载


httpd

This is a httpd server with multithread and epoll support.

Structure

Here are some modules used in httpd:

  • http-utils:
    There are two functions used to open listen socket for server
    and connection for client.
  • error:
    Error handle functions. xxx_errq is used to print error and quit.
    xxx_err prints error but not quits.
  • queue:
    A thread-safe queue.
  • rio:
    Robust IO that can handle signal interruption and half read/write.
  • httpd:
    Core module.

Build

Just use make.

Usage

  1. ./httpd [-p PORT, --port PORT] [-h, --help] DIR

Here is an exemple

  1. ./httpd -p 8080 ./site

./site is an example site in root directory.