Brenton Bostick
f9528f1248
fix ANDROID-52: synchronization bug with nodeMap
3 years ago
Brenton Bostick
4861ec5a40
make NodeStatus a plain data class
3 years ago
Brenton Bostick
7c2766096c
add VirtualNetworkConfigOperation.fromInt
3 years ago
Brenton Bostick
34ff813e2a
add ResultCode.fromInt
3 years ago
Brenton Bostick
7c5f256d4a
add Event.fromInt
3 years ago
Brenton Bostick
82749e4442
ANDROID-48: use ZT_jnicache.cpp and remove ZT_jnilookup.cpp and ZT_jniarray.cpp
3 years ago
Brenton Bostick
7890185e81
ANDROID-48: add ZT_jnicache.cpp
3 years ago
Brenton Bostick
71fc0dd097
add LOG_TAG defines
3 years ago
Brenton Bostick
21264baaae
update to use unique error codes
3 years ago
Brenton Bostick
703f9290c9
fix missing DeleteLocalRef in loops
3 years ago
Brenton Bostick
dd1b52c7d9
fix ANDROID-35: memory leak
3 years ago
Brenton Bostick
1c88037ea0
fix typos in JNI method signatures
3 years ago
Brenton Bostick
5be92a96df
cleanup
3 years ago
Brenton Bostick
0733af5239
move extern "C"
...
only JNI functions need to be exported
3 years ago
Brenton Bostick
216ed8c8ea
fix headers
...
use recommended headers and remove unused headers
3 years ago
Brenton Bostick
9ac2cfe611
Fix warning: suggest braces around initialization of subobject
3 years ago
Brenton Bostick
f74a594e98
fix typos in comments and strings
3 years ago
Grant Limberg
87c75d033e
pt 2
7 years ago
Grant Limberg
71ae678930
Make things compile with Android NDK again
7 years ago
Grant Limberg
8828fc7520
some JNI error checking
8 years ago
Grant Limberg
3d4a1b575e
Update Android NDK with uint64_t -> int64_t changes
9 years ago
Grant Limberg
bcf697cc2b
Wire up PortMapper in Android
...
Enables UPnP port mapping for Android client on networks with UPnP routers
9 years ago
Grant Limberg
69ae35494e
put the correct file extensions on data written to disk in JNI
9 years ago
Grant Limberg
512c3af4ea
fix packet sending functions
9 years ago
Grant Limberg
d8f1c3dff7
Update JNI code to reflect new ZeroTier API
9 years ago
Grant Limberg
5f611dad51
added orbit/deorbit methods to java Node implementation
9 years ago
Grant Limberg
1c5fdb8a0a
fix path checker initialization
9 years ago
Grant Limberg
de4b9e9a16
Added path checking interface for Java
9 years ago
Grant Limberg
855361b5b8
fix native end of JNI code for new thread data ptr
9 years ago
Grant Limberg
f149dd9401
fix Android NDK build
9 years ago
Grant Limberg
3c5e28a27d
use new ZT_Node_Callbacks struct in JNI
9 years ago
Grant Limberg
be0af135bc
update JNI code for 1.1.6
10 years ago
Grant Limberg
3993dfa2a5
Fix JNI for API changes in 1.1.4
10 years ago
Grant Limberg
0508a41afd
added ttl parameter to WirePacketSendFunction
11 years ago
Grant Limberg
eadeac0a42
logging of events
11 years ago
Grant Limberg
b7df177f33
updates for origin/edge
11 years ago
Grant Limberg
75a191a856
don't create an InetSocketAddress on local address if it's equal to ZT_SOCKADDR_NULL
11 years ago
Grant Limberg
7c3be2b5c1
fix function signature in lookup for onSendPacketRequested function
11 years ago
Adam Ierymenko
f69454ec98
(1) Make ZT_ naming convention consistent (get rid of ZT1_), (2) Make local interface a full sockaddr_storage instead of an int identifier, which turns out to be better for multi-homing and other uses.
11 years ago
Grant Limberg
0b7cd2f40a
change some build settings. add a lock
11 years ago
Grant Limberg
f803dd5ff4
...
11 years ago
Grant Limberg
aee8e95d49
logging
11 years ago
Grant Limberg
472206dfb2
Rename JniCache to JniLookup
...
Removed caching capabilities as the cached methods, fields, and objects appears to be broken on Android
11 years ago
Grant Limberg
7e84f5a7db
killing whitespace
11 years ago
Grant Limberg
4dc0ff8f13
Replace calls to Get<Type>ArrayElements with GetPrimitiveArrayCritical.
...
This puts code accessing the data in a critical section so that the GC cannot run while JNI has access to the array. This helps with stability somewhat, but I'm still getting some crashes in the GC
11 years ago
Grant Limberg
ced040c503
Logging and adding .equals() methods to MulticastGroup and VirtualNetworkCofnig
11 years ago
Grant Limberg
b84dba3ecb
more logging
11 years ago
Grant Limberg
fb0bf52b1b
Fixed sending a port number of 0 to ZT1.
...
Fixed VirtualNetworkConfigFunction (creating array to send to Java)
Fixed the creating InetAddress instead of InetSocketAddress in virtual network config callback
11 years ago
Grant Limberg
5015c0ae78
more logging
11 years ago
Grant Limberg
b6196a53de
Fix DataStoreGetFunction.
11 years ago