Commit Graph

544 Commits

Author SHA1 Message Date
Brenton Bostick
b4c7fd1a0f Fix: Cannot resolve symbol 'localPort'
Remove second bind() with unused backlog arg and identical impl as first
bind()
2023-08-02 12:55:22 -04:00
Joseph Henry
f5eee8d25a Merge pull request #237 from zerotier/brenton/fix-switch
Fix: warning: enumeration value 'TCP_HTTP_OUTGOING' not handled in sw…
2023-08-02 09:20:55 -07:00
Brenton Bostick
aede837fea Fix: warning: enumeration value 'TCP_HTTP_OUTGOING' not handled in switch [-Wswitch] 2023-08-02 12:11:47 -04:00
Brenton Bostick
6fe2d49ef1 Fix: field '_lastRestart' will be initialized after field '_tcpFallbackTunnel' [-Wreorder-ctor] 2023-08-02 12:08:07 -04:00
Brenton Bostick
b85a6a4597 Fix typos and bump ZTO submodule commit to include Fix typos (https://github.com/zerotier/ZeroTierOne/pull/2075) 2023-08-02 11:29:22 -04:00
Joseph Henry
2d83bc25f3 Fix tcp relay api logic error 2023-07-26 12:42:43 -07:00
Joseph Henry
10548d9b05 Fix mismatched types in tcp relay api 2023-07-26 12:41:18 -07:00
Joseph Henry
5874e442eb Port over TCP relay functionality from ZeroTier One 2023-07-24 18:56:40 -07:00
Joseph Henry
e0200fbde0 Merge pull request #231 from zerotier/brenton/fix-return-type-warnings
fix return type warnings
2023-07-20 10:30:01 -07:00
Joseph Henry
a3b3d8217d Merge pull request #232 from zerotier/brenton/fix-missing-jni-function
fix: Cannot resolve corresponding JNI function Java_com_zerotier_sock…
2023-07-20 10:29:50 -07:00
Brenton Bostick
a0ffaec02c fix return type warnings
Not any of these functions are used in ZeroTierNative.java

libzt/src/bindings/java/JavaSockets.cxx:600:1: warning: non-void function does not return a value [-Wreturn-type]
libzt/src/bindings/java/JavaSockets.cxx:620:1: warning: non-void function does not return a value [-Wreturn-type]
libzt/src/bindings/java/JavaSockets.cxx:629:1: warning: non-void function does not return a value [-Wreturn-type]
libzt/src/bindings/java/JavaSockets.cxx:638:1: warning: non-void function does not return a value [-Wreturn-type]
2023-07-19 15:50:14 -04:00
Brenton Bostick
88681c02c4 fix: Cannot resolve corresponding JNI function Java_com_zerotier_sockets_ZeroTierNative_zts_1net_1get_1mac. 2023-07-19 15:47:12 -04:00
Brenton Bostick
6ce18af3e6 fix unused warnings
libzt/src/bindings/java/JavaSockets.cxx:40:10: warning: unused variable 'rs' [-Wunused-variable]
libzt/src/Events.cpp:185:14: warning: unused variable 'rs' [-Wunused-variable]
libzt/src/Events.cpp:189:18: warning: unused variable 'arg' [-Wunused-variable]
libzt/src/NodeService.cpp:1064:17: warning: variable 'err' set but not used [-Wunused-but-set-variable]
2023-07-19 15:19:40 -04:00
Brenton Bostick
8066b0e81f fix typos 2023-07-19 10:39:11 -04:00
Joseph Henry
9f363342d9 Fix typo in return type 2023-07-18 13:06:19 -07:00
Joseph Henry
27805f8ff2 Add low-bandwidth mode 2023-07-18 13:04:40 -07:00
Brenton Bostick
8a90a7baca Fix warning about function never used
The practice of appending "__" with type signature allows for references
overloaded methods.
But there is only a single zts_bsd_write method, so just remove.
2023-05-26 13:13:03 -04:00
Joseph Henry
7d82d0ed77 Merge pull request #218 from zerotier/brenton/fix-typos
Brenton/fix typos
2023-05-26 10:12:24 -07:00
Joseph Henry
57fd2e2128 Merge pull request #217 from zerotier/brenton/fix-bad-param
fix bad parameter
2023-05-26 09:57:50 -07:00
Joseph Henry
38334d843e Merge pull request #216 from zerotier/brenton/fix-stray-getfieldid
fix stray GetFieldID
2023-05-26 09:57:40 -07:00
Brenton Bostick
e47e37d12e fix stray GetFieldID 2023-05-25 15:54:19 -04:00
Brenton Bostick
472b4d37f7 fix bad parameter 2023-05-25 15:53:50 -04:00
Brenton Bostick
18c009d55d fix: Incorrect type for parameter 'thisObj', which should have type 'jclass'. 2023-05-25 15:49:10 -04:00
Brenton Bostick
8bd9a18a38 remove stray U+200b characters 2023-05-25 15:43:38 -04:00
Brenton Bostick
51af6aacd9 Fix typo TCP_SLOW_INTERVALs -> TCP_SLOW_INTERVAL 2023-05-25 15:43:34 -04:00
Brenton Bostick
d00f72ae92 Fix typo accetpedFd -> acceptedFd 2023-05-25 15:43:31 -04:00
Brenton Bostick
8952a6bf95 Fix typos ZTS_CENRTAL_MAX_URL_LEN -> ZTS_CENTRAL_MAX_URL_LEN 2023-05-25 15:43:28 -04:00
Brenton Bostick
48adf41cc1 Move java files to com/zerotier/sockets subfolder
This adheres to standard Java style and fixes:
Package name 'com.zerotier.sockets' does not correspond to the file path ''

in Android Studio
2023-05-22 15:36:21 -04:00
janvanbouwel
9d66844523 Fix ZTS_MAX_PEER_NETWORK_PATHS to equal ZTO submodule 2023-02-21 18:16:11 +01:00
fecaridade
5b15206545 fix typo in examples link 2022-08-16 14:16:32 -03:00
fecaridade
ca3aaa597a fix typo in ZeroTierSockets.h link 2022-08-16 14:14:15 -03:00
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
0d511f9dbe Merge branch 'android-endian' of https://github.com/StephenCWills/libzt into StephenCWills-android-endian 2022-01-11 17:03:10 -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
f32c56a982 Merge branch 'lowercase-windows-headers' of https://github.com/StephenCWills/libzt into StephenCWills-lowercase-windows-headers 2022-01-11 09:51:25 -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
staphen
6e9764b4b5 Include sys/endian.h in Sockets.cpp for Android 2022-01-03 17:43:16 -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
staphen
e80bc35a26 Use lowercase when including Windows headers 2021-12-29 16:23:32 -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