Commit graph

6030 commits

Author SHA1 Message Date
Brenton Bostick
64521b3da6 NodeException can be made a checked Exception 2023-03-02 13:03:17 +01:00
Brenton Bostick
02b810fb7c Modifier 'public' is redundant for interface members 2023-03-02 13:03:17 +01:00
Brenton Bostick
ddb87ad498 comments and logging 2023-03-02 13:03:17 +01:00
Brenton Bostick
02894184ba switch statement work 2023-03-02 13:03:17 +01:00
Brenton Bostick
f98bb073b8 use PRId64 macros 2023-03-02 13:03:17 +01:00
Brenton Bostick
3a92756818 JniRef work
JniRef does not use callbacks struct, so remove
fix NewGlobalRef / DeleteGlobalRef mismatch
2023-03-02 13:03:17 +01:00
Brenton Bostick
da93e3f487 use GETENV macro 2023-03-02 13:03:17 +01:00
Brenton Bostick
4b48a09a95 fix ANDROID-38: stack corruption in onSendPacketRequested 2023-03-02 13:03:17 +01:00
Brenton Bostick
e5ea2099cb newInetAddress and newInetSocketAddress work
allow newInetSocketAddress to return NULL if given empty address
2023-03-02 13:03:17 +01:00
Brenton Bostick
e5658bbd3b invert logic in a couple of places and return early 2023-03-02 13:03:17 +01:00
Brenton Bostick
c50a823de4 add fromSocketAddressObject 2023-03-02 13:03:17 +01:00
Brenton Bostick
e01bd03eb9 add addressPort 2023-03-02 13:03:17 +01:00
Brenton Bostick
6ea4e1f1f0 add isSocketAddressEmpty 2023-03-02 13:03:17 +01:00
Brenton Bostick
6537ee2fe4 make VirtualNetworkRoute a plain data class 2023-03-02 13:03:17 +01:00
Brenton Bostick
33490ffba4 add VirtualNetworkRoute.hashCode 2023-03-02 13:03:17 +01:00
Brenton Bostick
b62dce9f2f reimplement VirtualNetworkRoute.toString 2023-03-02 13:03:17 +01:00
Brenton Bostick
3bbf56d20d reimplement VirtualNetworkRoute.compareTo 2023-03-02 13:03:17 +01:00
Brenton Bostick
27d44f8edb reimplement VirtualNetworkRoute.equals 2023-03-02 13:03:17 +01:00
Brenton Bostick
4ca8d9861d make VirtualNetworkDNS a plain data class 2023-03-02 13:03:17 +01:00
Brenton Bostick
cc6a3c9de0 add VirtualNetworkDNS.hashCode 2023-03-02 13:03:17 +01:00
Brenton Bostick
176d8e6adc reimplement VirtualNetworkDNS.equals 2023-03-02 13:03:17 +01:00
Brenton Bostick
f25168374f remove unused VirtualNetworkConfig.enabled 2023-03-02 13:03:17 +01:00
Brenton Bostick
a0edf30b46 make VirtualNetworkConfig a plain data class 2023-03-02 13:03:17 +01:00
Brenton Bostick
b8dc27b2ed add VirtualNetworkConfig.hashCode 2023-03-02 13:03:17 +01:00
Brenton Bostick
0d4838bd66 reimplement VirtualNetworkConfig.compareTo 2023-03-02 13:03:17 +01:00
Brenton Bostick
7372faf75e reimplement VirtualNetworkConfig.equals 2023-03-02 13:03:17 +01:00
Brenton Bostick
a3c6d3e27f fix ANDROID-49: VirtualNetworkConfig.equals is wrong 2023-03-02 13:03:17 +01:00
Brenton Bostick
61361f9a52 fix ANDROID-42: copy/paste error 2023-03-02 13:03:17 +01:00
Brenton Bostick
b5b6ce357f make Version a plain data class 2023-03-02 13:03:17 +01:00
Brenton Bostick
a75c75c2cb make Peer a plain data class 2023-03-02 13:03:17 +01:00
Brenton Bostick
a0a0d0dffe add array functions 2023-03-02 13:03:17 +01:00
Brenton Bostick
35ae63cf10 remove unused PeerPhysicalPath.fixed 2023-03-02 13:03:17 +01:00
Brenton Bostick
0f687c8223 make PeerPhysicalPath a plain data class 2023-03-02 13:03:17 +01:00
Brenton Bostick
d1c2d4b996 add Node.toString 2023-03-02 13:03:17 +01:00
Brenton Bostick
eab289aed9 Node init work: separate Node construction and init 2023-03-02 13:03:17 +01:00
Brenton Bostick
1aa2139652 fix ANDROID-52: synchronization bug with nodeMap 2023-03-02 13:03:17 +01:00
Brenton Bostick
d810510c7f make NodeStatus a plain data class 2023-03-02 13:03:17 +01:00
Brenton Bostick
1eb5d6674b add VirtualNetworkType.fromInt 2023-03-02 13:03:17 +01:00
Brenton Bostick
373e1865a1 fix ANDROID-37: VirtualNetworkStatus out-of-sync with ZT_VirtualNetworkStatus enum 2023-03-02 13:03:17 +01:00
Brenton Bostick
af5b99a061 add VirtualNetworkStatus.fromInt 2023-03-02 13:03:17 +01:00
Brenton Bostick
1de1c50660 fix ANDROID-40: VirtualNetworkConfigOperation out-of-sync with ZT_VirtualNetworkConfigOperation enum 2023-03-02 13:03:17 +01:00
Brenton Bostick
e2d33ab3ff add VirtualNetworkConfigOperation.fromInt 2023-03-02 13:03:17 +01:00
Brenton Bostick
210180ef97 fix ANDROID-36: issues with ResultCode 2023-03-02 13:03:17 +01:00
Brenton Bostick
ab164655f4 add ResultCode.fromInt 2023-03-02 13:03:17 +01:00
Brenton Bostick
43bf875e61 add PeerRole.fromInt 2023-03-02 13:03:17 +01:00
Brenton Bostick
5c9fbb90f5 add Event.fromInt 2023-03-02 13:03:17 +01:00
Brenton Bostick
1a97b5467b ANDROID-48: use ZT_jnicache.cpp and remove ZT_jnilookup.cpp and ZT_jniarray.cpp 2023-03-02 13:03:17 +01:00
Brenton Bostick
3405bf0325 ANDROID-48: add ZT_jnicache.cpp 2023-03-02 13:03:17 +01:00
Brenton Bostick
e9154b986f add LOG_TAG defines 2023-03-02 13:03:17 +01:00
Brenton Bostick
d65116efd7 add GETENV macro 2023-03-02 13:03:17 +01:00