Joseph Henry
f601602cdb
Resolved conflict for PR #167
2022-01-11 17:43:27 -08:00
Joseph Henry
f47d848fa4
Resolved conflict for PR #161
2022-01-11 17:39:24 -08:00
Joseph Henry
0c63732285
Merge branch 'feature_socket_err_msgs' of https://github.com/bostonrwalker/libzt into bostonrwalker-feature_socket_err_msgs
2022-01-11 12:51:22 -08:00
Joseph Henry
1d67973edb
Merge branch 'feature_sendall' of https://github.com/bostonrwalker/libzt into bostonrwalker-feature_sendall
2022-01-11 09:48:20 -08:00
bostonrwalker
601032c42b
Rename zt_wrap.cxx to zt_wrap.cpp
...
Reason: Python distutils invocation of SWIG will output "zt_wrap.cpp" instead of "zt_wrap.cxx", and if both files are present the compiler will get confused.
2022-01-11 12:17:22 -05:00
Boston Walker
c8c8a3bac2
Revert deletion of swig generated files
2021-12-31 10:34:09 -05:00
Boston Walker
894e52ab6c
Migrated Python pkg mgmt to Poetry
2021-12-31 10:31:35 -05:00
Boston Walker
84b7e44873
Revert changes to libzt.py
2021-12-29 16:39:21 -05:00
Boston Walker
213f72edb9
#150 - Clean up socket error handling
2021-12-29 16:36:44 -05:00
Boston Walker
b2d53a4f5d
#150 - cleaned up socket error messages
2021-12-29 16:36:44 -05:00
Boston Walker
3bb2dd4a52
Revert " #150 - cleaned up socket error messages"
...
This reverts commit 293f92355a .
2021-12-29 16:23:54 -05:00
Boston Walker
a4d2a83e7e
Revert " #150 - Clean up socket error handling"
...
This reverts commit c84b3f2376 .
2021-12-29 16:19:54 -05:00
Boston Walker
8bd4c3d061
Proper handling of PyBuf object
2021-12-29 11:33:46 -05:00
bostonrwalker
771a5ad905
Merge branch 'dev' into feature_timeout_methods
2021-12-28 13:39:30 -05:00
Boston Walker
ec55000ff6
Add zts_py_sendall() method
2021-12-28 13:33:58 -05:00
Boston Walker
7e690785a4
Add zts_py_settimeout() and zts_py_gettimeout() methods; Update Python c extension bindings using swig -c++ -python zt.i
2021-12-27 23:58:24 -05:00
Boston Walker
c84b3f2376
#150 - Clean up socket error handling
2021-12-27 16:34:10 -05:00
Boston Walker
99c16c4a9e
Generated from swig -c++ -python zt.i
2021-12-27 16:18:45 -05:00
Boston Walker
293f92355a
#150 - cleaned up socket error messages
2021-12-27 14:18:29 -05:00
Joseph Henry
d49667a55f
Check Python version to determine proper timeout rounding mode
2021-05-30 21:49:16 -07:00
github-actions
54bb892aaa
Code style enforcement
2021-05-31 04:21:46 +00:00
Joseph Henry
ef352cc8f3
Build fix for Python wrapper
2021-05-30 21:13:52 -07:00
Joseph Henry
7ae18961a7
Build fix for Python wrapper
2021-05-30 20:52:02 -07:00
github-actions
0a678a8c8a
Code style enforcement
2021-05-31 02:52:00 +00:00
Joseph Henry
3ea146fa5b
Possible fix for Python multithread bug #126
2021-05-30 19:36:19 -07:00
Joseph Henry
cd3265f8ae
Add select, getsockopt, setsockopt, ioctl and fcntl to Python wrapper
2021-05-28 16:15:38 -07:00
Joseph Henry
9ee053ac36
Only invoke Python user callback if set by user
2021-05-26 18:17:37 -07:00
Joseph Henry
31e94d4bbb
Remove debug traces from C# wrapper
2021-05-26 11:16:18 -07:00
Joseph Henry
b821aee0a5
Save reference to managed callback in C# wrapper. Fixes event bug.
2021-05-25 18:35:58 -07:00
Joseph Henry
49047e2391
Make Node singleton members static. Fixes UB in C# event logic
2021-05-24 14:52:07 -07:00
Joseph Henry
e7eaeadaee
Remove unnecessary return statements in Python sockets error handler
2021-05-20 09:24:40 -07:00
Joseph Henry
81d03c3692
Make socket exceptions more specific to match Python semantics
2021-05-19 22:14:15 -07:00
Joseph Henry
4e0813d167
Add address getter method to Python wrapper
2021-05-19 21:33:08 -07:00
Joseph Henry
111dc7f5d9
Format Python code with (black)
2021-05-19 18:15:11 -07:00
Joseph Henry
bbf800c014
Bind to IPv6 unspecified address in ZeroTierSocket constructor
2021-05-19 00:54:19 -07:00
Joseph Henry
0e2f5b6f1e
Add ZeroTierDatagramSocket and ZeroTierServerSocket to Java wrapper
2021-05-18 22:39:48 -07:00
Joseph Henry
eac36f781d
Add NetworkStream to C# wrapper. Fix errno bug in C# wrapper
2021-05-17 21:28:15 -07:00
Joseph Henry
5d404034c3
Add better port binding controls
2021-05-13 14:17:08 -07:00
Joseph Henry
64fe1d015d
Fix compile-time errors for C# binding on Windows
2021-05-11 14:34:22 -07:00
github-actions
c4b9518361
Code style fixes
2021-05-06 07:06:35 +00:00
Joseph Henry
fa34fb62e6
Minor Windows build fixes
2021-05-05 19:55:47 -07:00
Joseph Henry
9151f4471c
Slight re-org of C API naming convention
2021-05-05 16:19:27 -07:00
github-actions
2d2afce4f7
Code style fixes
2021-05-03 04:30:55 +00:00
Joseph Henry
6a77f0092f
Update Python bindings to 1.4.0 API (WIP)
2021-05-02 21:30:21 -07:00
Joseph Henry
6f42338f6e
Update C# bindings to 1.4.0 API
2021-04-30 21:54:34 -07:00
Joseph Henry
782d221eb9
Add WIP Java language bindings
2021-04-29 19:51:07 -07:00
Joseph Henry
46eb8be174
Merge branch 'py_send_binary3' of https://github.com/linsomniac/libzt into linsomniac-py_send_binary3
2021-03-26 20:08:13 -07:00
Joseph Henry
66d791f920
Merge branch 'linsomniac_review' of https://github.com/linsomniac/libzt into linsomniac-linsomniac_review
2021-03-26 19:57:09 -07:00
Joseph Henry
6638f20003
Add IPv6 to C# ZeroTier.Sockets, Add C# selftest, Misc C API improvements
2021-03-26 16:33:22 -07:00
Sean Reifschneider
5f6faaa5e8
Python send() with binary data
...
zts_py_send() was using strlen() to determine the length of the
send(). This works fine with strings, but fails with binary
data.
To fix this, I have removed the string encoding code, and
converted to using the Buffer protocol as is done in the
Python socketmodule send() implementation. This does mean
that this send() implementation only takes byte-like objects.
The workaround for this could be at the python level rather
than the C++ level.
NOTE: This implementation has a bug in the exception handling
if a non-bytes-like object is passed. You get an exception,
but the exception is not accurate, it reports the TypeError,
but the actual raised exception is due to there being a return
value when the error indicator is set. I spent a few hours
trying to fix this but was unable to. I'm afraid I just couldn't
figure it out.
My SSH proxy was misbehaving because the second block
of data going from the client to the server had a NUL byte as
the first byte to send, so the send was returning 0 bytes
sent, but that was due to send() being told to send 0 bytes.
With this, my SSH proxy is now working, including able to run
an rsync of my boot initrd over SSH over ZeroTier entirely in
userspace.
2021-03-20 13:01:50 -06:00