C++ Templates

UCall Templates

FetchContent_Declare(ucall GIT_REPOSITORY https://github.com/unum-cloud/UCall.git GIT_SHALLOW TRUE) 17035008

Ask your coding agent about this page, or add the docs server to it

curl -s 'https://www.unum.cloud/docs/ucall/templates.md' | claude -p "How would this fit my code?"

include/ucall/ holds the header-only templates UCall's servers and clients are built from: HTTP framing and routing, the stub DNS resolver, the Noise tunnel and its kits, the I/O queues of every operating system, and the event loops over them.

They serve advanced users who compose their own queues, kits or networks rather than calling the library. These headers carry no stability promise: their names, layouts and signatures change with the queues that instantiate them, in any release, while the C ABI of c/ucall/*.h and the C++ SDK of cpp/ucall/*.hpp are versioned. Pin a commit, not a version, when building on them. src/ keeps the C entry points and the per-CPU instantiations, and every subfolder ucall/<dir>/ opens unum::ucall::<dir>, its headers spelled "ucall/<dir>/...".

Topics

InstallationCMake names the headers ucall::header, which links ucall::abi and the header targets of ForkUnion, SmashTable and StringZilla.
Servingroute_trie_t matches a path against URI templates, literals before parameters before a trailing wildcard, and answers the endpoint registered for the verb.
Threads and PollingEvery queue answers the same requests, and each spends what its kernel offers.
Designnetwork.hpp is the umbrella, holding network_variant, the alias-only descriptor every network/ template takes, and serial_network.