riolet/WAFer
소개
WAFer는 확장 가능한 서버 측 애플리케이션과 네트워킹 애플리케이션을 위한 C 언어 기반 소프트웨어 플랫폼입니다. C 프로그래머를 위한 node.js라고 생각하면 됩니다.
시스템 및 인프라측정된 스타 증가
- in 24h
- 0
- in 7 days
- 0
- in 15 days
- 0
- in 1 month
- 기록 수집 중
서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.
README.md
OriginalWAFer
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.
관련 프로젝트 살펴보기
불러오는 중…