1 Star 0 Fork 12

sailing / evmongoose

forked from 赵建辉 / evmongoose 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
README.md 2.52 KB
一键复制 编辑 原始数据 按行查看 历史
zhaojh329 提交于 2017-05-26 21:09 . Update README.md

Evmongoose(中文)

Evmongoose is an api friendly and scalable HTTP server library based on mongoose and libev. Evmongoose supports highly customized to extend your application. Before I started this project, I had never found a HTTP server library that was satisfied with the event based framework, and those HTTP server libraries could only loop it's own objects and could not add my own objects. For example, I want to monitor a signal or a file through the event.

Features

  • New from evmongoose

    • Using libev programming
    • Highly customized to extend your application based on libev
    • Lua(In development)
  • Inherited from mongoose

    • HTTP client, HTTP server
    • Alternative openssl and mbedtls
    • DNS client, DNS server, async DNS resolver
    • WebSocket client, WebSocket server
    • ...

Example

How To Compile

For Ubuntu

Install dependency Libraries

sudo apt install libev-dev libssl-dev

Install Evmongoose(HTTPS Support Default)

git clone https://github.com/zhaojh329/evmongoose.git
cd evmongoose
mkdir build
cd build
cmake ..
make

Install Evmongoose(Disable HTTPS Support)

git clone https://github.com/zhaojh329/evmongoose.git
cd evmongoose
mkdir build
cd build
cmake .. -DHTTPS_SUPPORT=OFF
make

For OpenWRT/LEDE

git clone https://github.com/zhaojh329/evmongoose.git
cp evmongoose/openwrt/ openwrt_dir/package/evmongoose -r
cd openwrt_dir
make menuconfig
Libraries  --->
    Networking  --->
        <*> evmongoose
            Configuration  --->
                SSl (mbedtls)  --->

make package/evmongoose/compile V=s

API reference manual

Evmongoose dose not change the usage of API in mongoose and libev, so please refer to the API Manual of mongoose and libev. Only one thing to notice is that mg_mgr_poll is no longer invoked when using evmongoose.

How To Contribute

Feel free to create issues or pull-requests if you have any problems.

Please read contributing.md before pushing any changes.

Thanks for the following project

If the project is helpful to you, please do not hesitate to star. Thank you!

C
1
https://gitee.com/sailingchen/evmongoose.git
git@gitee.com:sailingchen/evmongoose.git
sailingchen
evmongoose
evmongoose
master

搜索帮助