/FoxNet

lightweight C++ networking library

Primary LanguageC++MIT LicenseMIT

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!