WAFer

WAFer is a C language-based software platform for scalable server-side and networking applications. Think node.js for C programmers.

  • 所有者: riolet/WAFer
  • 平台:
  • 許可證: GNU General Public License v2.0
  • 分類:
  • 主題:
  • 喜歡:
    0
      比較:

Github星跟蹤圖

Build Status

WAFer

WAFer is a C language-based ultra-light scalable server-side web applications framework. Think node.js for C programmers. Because it's written in C for the C eco system, WAFer is wafer-thins with a memory footprint that is only a fraction of that of node.js and other bulky frameworks.

Just copy server.c (say, as myserver.c), put your code inside the function void server(Request request) in myserver.c and, make with make SERVER=myserver, and you are good to go.

WAFer can operate in many different configurations, all selected at compile time. They include:

  1. Single-threaded (Default) or multi-threaded (make with THREADS=n where n>0)

  2. Select(Default) or epoll (make with LOOP=epoll) based event loop

  3. C10K mode (make with LOOP=epoll MAX_CON_CONS=n where n>10,000)

Default port is 4242. Set environment variable 'PORT' to change it.

That's really it. The source comes with a simple example example.c to get you started.

Note to Contributors

Thank you for making this a wonderful project!

Here's our preferred formatting style:

find . \( -name '*.c' -o -name '*.h' \) -exec indent --no-tabs  --linux-style --line-length 90 --indent-level 4 -bli0 \{\} \;

Acknowledgements

  1. J. David Blackstone and Feng Shen, whose web servers have been repurposed to build this platform.

  2. Mark Karpeles for the incredible number of bug fixes!

  3. Fine folks at /r/programming for the honest and constructive feedback.

主要指標

概覽
名稱與所有者riolet/WAFer
主編程語言C
編程語言Shell (語言數: 4)
平台
許可證GNU General Public License v2.0
所有者活动
創建於2014-07-09 04:02:34
推送於2017-12-07 22:32:39
最后一次提交2017-12-07 14:32:38
發布數1
最新版本名稱v0.0.4-alpha (發布於 )
第一版名稱v0.0.4-alpha (發布於 )
用户参与
星數693
關注者數49
派生數68
提交數149
已啟用問題?
問題數30
打開的問題數19
拉請求數26
打開的拉請求數0
關閉的拉請求數4
项目设置
已啟用Wiki?
已存檔?
是復刻?
已鎖定?
是鏡像?
是私有?