1 Star 0 Fork 0

Antmuse / AntEngine

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
README.md 819 Bytes
一键复制 编辑 原始数据 按行查看 历史
Antmuse 提交于 2023-09-26 22:04 . update samples

AntEngine

    1. This is a cross platform, multi process, asynchronous, network services.
    1. support TCP/TLS/HTTP/HTTPS/KCP
    1. support Redis Client, MySQL client
    1. use epoll, io_uring under Linux
    1. use IOCP under Windows

Depends


openssl, zlib, jsoncpp, mysql

Development environment


    1. debian12, 64bit, kernal-v6.1
    1. windows11, 64bit, VS2022
    1. c++11

Usage


//demo 1: TLS-server
int main(int argc, char** argv) {
    Engine& eng = Engine::getInstance();
    eng.init(argv[0]);
    Loop& loop = eng.getLoop();
    net::Acceptor* conn= new net::Acceptor(loop, net::Linker::funcOnLink, true?"TLS":nullptr);
    succ = conn->open("0.0.0.0:443");
    conn->drop();
    while (loop.run()) {    }
    eng.uninit();
    return 0;
}

TODO


    1. FRP Server|Client
C/C++
1
https://gitee.com/antmuse/AntEngine.git
git@gitee.com:antmuse/AntEngine.git
antmuse
AntEngine
AntEngine
main

搜索帮助