Store a reference to the unmanaged delegate so that the c# garbage collector doesn't wipe it out which causes a hard crash since the unmanaged dll is still referencing it.
C++ Source
- C API is exposed via include/ZeroTierSockets.h
- bindings/ Contains the source for wrappers in various languages. See examples/ for their usage.