riolet/WAFer
关于
WAFer 是一个基于 C 语言、面向可扩展服务器端和网络应用的软件平台。可以把它看作面向 C 程序员的 node.js。
系统与基础设施实测星标增长
- 24小时
- 0
- 7天
- 0
- 15天
- 0
- 1个月
- 正在收集历史
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
README.md
原文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:
Single-threaded (Default) or multi-threaded (make with
THREADS=nwhere n>0)Select(Default) or epoll (make with
LOOP=epoll) based event loopC10K mode (make with
LOOP=epoll MAX_CON_CONS=nwhere 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
J. David Blackstone and Feng Shen, whose web servers have been repurposed to build this platform.
Mark Karpeles for the incredible number of bug fixes!
Fine folks at /r/programming for the honest and constructive feedback.
探索相关项目
加载中…