Skip to content

Releases: DeguiLiu/ewss

v0.2.0 - Single-Header Refactor

19 Feb 04:58

Choose a tag to compare

EWSS v0.2.0

Single-header refactor release. All code merged into a single include/ewss.hpp file (inspired by cpp-httplib).

Key Changes

  • Single-header library: merged 7 hpp + 2 cpp files into one ewss.hpp (~1720 lines)
  • No virtual dispatch: replaced virtual ProtocolHandler with StateOps function pointer table (zero overhead)
  • No friend declarations: Connection internals exposed via accessor methods
  • All comments in English
  • CMake INTERFACE library: header-only, no compilation needed
  • sockpp v2.0 API migration: updated to latest sockpp API

Testing

  • 7 test suites, all passing
  • Normal mode + -fno-exceptions mode verified
  • CI: Linux-only (GCC + Clang, Debug + Release)

Dependencies

  • sockpp (TCP socket wrapper, via FetchContent)
  • Catch2 v3.5.2 (test only)