Skip to content
/ myhttp Public

This is a simple HTTP server project developed to help familiarize myself with network programming and multi-threaded programming in C

Notifications You must be signed in to change notification settings

chunxy/myhttp

Repository files navigation

execution

  1. currently run compile.sh
  2. run build/server port_number
  3. ping the server at **localhost:**port_number

test

1000 fetches, 8 max parallel, 2.993e+06 bytes, in 0.452735 seconds
2993 mean bytes/connection
2208.8 fetches/sec, 6.61093e+06 bytes/sec
msecs/connect: 0.104882 mean, 0.533 max, 0.018 min
msecs/first-response: 3.39544 mean, 28.149 max, 2.103 min
HTTP response codes:
  code 200 -- 1000

零碎的知识点

todo

  • timer
  • error handling
  • http method handling
  • “析构函数”
  • 自定义宏处理
  • multi-line function formatting
  • 使用sendfile传输文件
  • filename至少长255
  • 无用头文件
  • makefile

About

This is a simple HTTP server project developed to help familiarize myself with network programming and multi-threaded programming in C

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages