-
- This is a cross platform, multi process, asynchronous, network services.
-
- support TCP/TLS/HTTP/HTTPS/KCP
-
- support Redis Client, MySQL client
-
- use epoll, io_uring under Linux
-
- use IOCP under Windows
openssl, zlib, jsoncpp, mysql
-
- debian12, 64bit, kernal-v6.1
-
- windows11, 64bit, VS2022
-
- c++11
//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;
}
-
- FRP Server|Client