Lightweight C++ networking library
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
Seth Stubbs 2238a0b9b8 Move C2S_HANDSHAKE & S2C_HANDSHAKE to FoxPeer. Added handshake checking 3 weeks ago
.github/workflows Added MacOS build to check-build.yaml 2 months ago
examples Move C2S_HANDSHAKE & S2C_HANDSHAKE to FoxPeer. Added handshake checking 3 weeks ago
include Move C2S_HANDSHAKE & S2C_HANDSHAKE to FoxPeer. Added handshake checking 3 weeks ago
src Move C2S_HANDSHAKE & S2C_HANDSHAKE to FoxPeer. Added handshake checking 3 weeks ago
.gitignore Refactored CMakeLists.txt && Added _FOXNET_VER_* definitions 2 months ago
CMakeLists.txt Added FoxPeer::onSend(), FoxPeer::onRecv() events & FoxClient::connect() 2 months ago
LICENSE.md Added MIT LICENSE and updated the README 5 months ago
README.md Updated README.md 2 months ago

README.md

FoxNet

Workflow Discord License

Just another C++ networking library with an emphasis on being lightweight & portable. FoxNet is a blocking (or non-blocking with a settable timeout!) networking library with very little overhead, it's your generic client/server model made simple.

Features

  • Cross-platform polling interface (epoll on Linux, poll on the other platforms)
  • Support for both variable-length packets and static length packets.
  • Easy to use method-based event callbacks. Just define your own FoxPeer/FoxServerPeer class (see examples/)

Compiling

cmake -B build && cmake --build build

After compiling, the example binaries will be in the bin/ directory.

Documentation

Documentation is pending, stay tuned!