Skip to content

udx is reliable, multiplexed, and congestion-controlled streams over udp

License

Notifications You must be signed in to change notification settings

ThomasFarstrike/libudx

 
 

Repository files navigation

libudx

udx is reliable, multiplexed, and congestion-controlled streams over udp.

Building

CMake is used for building static and dynamic libraries for use outside of Node.js.

cmake -S . -B build
cmake --build build

Do note that the submodules need to be installed before building:

git submodule update --init --recursive

Debugging

When debugging native code, make sure to configure a debug build:

cmake -S . -B build -D CMAKE_BUILD_TYPE=Debug

Memory errors

To diagnose and debug memory errors, such as leaks and use-after-free, the collection of sanitizers provided by LLVM are recommended. The sanitizers can be enabled by passing additional CFLAGS and/or LDFLAGS to the build:

CFLAGS=<...> LDFLAGS=<...> cmake -S . -B build

To read more about the various sanitizers and how to use them, see:

⚠️ LeakSanitizer is still experimental and currently requires a newer version of LLVM on macOS. If using Homebrew, brew install llvm and CC=/usr/local/opt/llvm/bin/clang should be sufficient.

License

MIT

About

udx is reliable, multiplexed, and congestion-controlled streams over udp

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C 98.1%
  • CMake 1.9%