libzt
libzt copied to clipboard
Encrypted P2P sockets over ZeroTier
Implement recv_into() method in Python socket API Useful for integrating libzt sockets anywhere that Python sockets are currently used. **Signature**: `def recv_into(self, buffer: bytes, n_bytes: int = 0, flags: int...
Python
There is a folder with a readme in /examples/python, yet there is no code example given.
## Reproduce 1. Run server `cargo run --example libzt-test-app -- server server 0.0.0.0 9999` 2. Run client: `cargo run --example libzt-test-app -- client client 9999` 3. Run client again, following...
Any idea? I will add document if the PR is acceptable.
Is there a suggested way in which one can hook libzt directly to ZeroMQ? I've been working on doing something like this in Python (using libzt Python bindings and the...
I'm experimenting with the ZeroTier SDK and I've created a server that uses `select()` style I/O. When a client connects and sends some data the socket is flagged in the...
The variable zts_errno doesn't have LIBZT_API and isn't exported properly from a libzt .dll, and so can't be used in that context.
Can't manage to build any c++ project by including links in the output binary. I do manage to build libzt.lib on Windows x64 and get that file in the /dist...
# My environments + cmake version 3.20.21032501-MSVC_2 + rustc 1.54.0-nightly (ff2c947c0 2021-05-25) x86_64-pc-windows-msvc LLVM 12.0.1 + clang version 12.0.0 (provides libclang.dll) + VisualStudio 2019 (with latest Windows SDKs) # Problems...
Here (https://github.com/zerotier/libzt/blob/master/include/ZeroTierSockets.h#L1005), we have the following code: #if defined(_WIN32) #ifdef ADD_EXPORTS #define ZTS_API __declspec(dllexport) #else #define ZTS_API __declspec(dllimport) #endif #define ZTCALL __cdecl #else #define ZTS_API #define ZTCALL #endif Which works...