SkyNetlib is a C++ network library that I developed, encompassing a well-established framework and a demonstrated application. The library's core mechanism adheres to the reactor pattern, utilizing epolls to monitor file descriptors and assigning appropriate callback functions for event handling (read/write). To optimize computer resource utilization, each epoll's execution is assigned to a dedicated thread.
.src/ <== source code of library
.include/ <== header files
.application/ <== test files that could be executed to verify the functionality
.static_files/ <== store static files, an important part is my elaboration of algorithms & data structures
Ubuntu 20.04.5
Clang >= 6.0 or GCC >= 5.0
CMake >= 3.8
git clone https://github.com/skystriker1997/skynetlib.git /your/directory
cd /your/directory; mkdir build; cd build
cmake /your/directory
cmake --build .
The design of event-driven mode is inspired by muduo developed by Shuo Chen.