Commit Graph

23 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
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
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
d00f72ae92 Fix typo accetpedFd -> acceptedFd 2023-05-25 15:43:31 -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
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
9151f4471c Slight re-org of C API naming convention 2021-05-05 16:19:27 -07:00
Joseph Henry
782d221eb9 Add WIP Java language bindings 2021-04-29 19:51:07 -07:00
Joseph Henry
986828a51f Split Java portion of socket API into its own file 2021-03-14 01:37:24 -08:00