Layout and tests
Layout
include/ngnet/ ngnet.h (server API, configuration) enet.h (shim) lua.h conn.h host.h (log/event hooks)
transport.h (client) masterlist.h p2p.h (join codes)
src/ the library; internal.h is private
web/ngnet_web.js the browser transport (Emscripten --js-library)
tests/ ctest suite (docs in tests/CMakeLists.txt)Tests
ctest runs: test_core (configuration and environment, JSON, the signed envelope verified with OpenSSL, the classic announce parser, the list reader), test_shim (the shim, compiled with -include ngnet/enet.h, with a native ENet client and simulated browsers), test_hello (HELLOINFO intercept and the zero-config sniffer), test_lua, and, when the master server is available (NGNET_MASTER_BIN, a built binary, or NGNET_MASTER_DIR, its checkout and Go), test_e2e and test_e2e_shim: a real master, real signed announces, and a real WebRTC client in the same process joining through the master’s signalling, by server id and by join code. They bind ICE to 127.0.0.1 (bind), so they work without a LAN.