# lx_async_server
一个基于epoll的linux c web服务器
lx_async_server使用epoll实现异步web服务,同时可以指定线程的数量,每一个线程独立工作以充分利用硬件的cpu及内存等资源。默认情况下,服务器会根据cpu的个数起相应的线程数。定时器使用红黑树实现。整个架构参考nginx。
服务器经valgrind 内存测试及压力测试.
要被访问的网页放到 home/webhome 目录下
编译:
项目会用到其他模块
lx_http https://github.com/jindc/lx_rbtree.git
lx_http https://github.com/jindc/lx_http.git
lxlib https://github.com/jindc/lxlib.git
lxlog https://github.com/jindc/lxlog.git
./build.sh
./lxasync -h
usage:lxmt [-h] [--port] [--home] [--thread_num] [--daemon]
--thread_num 启动的独立线程数,默认与cpu数相同
作者:德才
email: [email protected]
没有合适的资源?快使用搜索试试~ 我知道了~
资源推荐
资源详情
资源评论
收起资源包目录
一个基于epoll的多线程 linux c http web服务器.zip (16个子文件)
SJT-code
lx_async_server.c 5KB
lx_async_handler.c 15KB
.gitattributes 378B
lx_conn_ctx.h 2KB
lx_epoll.h 298B
lx_async_server.h 1KB
home
webhome
404.html 103B
index.html 119B
test.html 144B
.gitignore 574B
lxasync 158KB
lx_epoll.c 1KB
main.c 2KB
lx_async_handler.h 256B
README.md 856B
build.sh 166B
共 16 条
- 1
资源评论
JJJ69
- 粉丝: 6222
- 资源: 5780
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功