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
399b2e9e26
forgot to submit this. Add DeferredPackets.cpp to the android makefile
10 years ago
Grant Limberg
0508a41afd
added ttl parameter to WirePacketSendFunction
10 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
Grant Limberg
0b9e5928d3
update PacketSender interface
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
e45475c5b5
fixed a misspelling
11 years ago
Grant Limberg
a408e5f685
set ZT_NO_TYPE_PUNNING and -O3 for Android builds
11 years ago
Grant Limberg
ab34884e3e
Set -O0
...
anything above that currently goes kaboom on ARM platforms
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
c9919cc5ba
reflect changes to ZT1_PeerRole in JNI
11 years ago
Grant Limberg
bfb152f53f
configure the NDK to build all supported ABIs and package them up in the jar
11 years ago
Grant Limberg
759d71037e
added Comparable interface to VirtualNetworkConfig so we can sort arrays containing it.
11 years ago
Grant Limberg
adf89901c4
dont consider multicast groups in VirtualNetworkConfig.equals()
11 years ago
Grant Limberg
abbcb0a12c
Modified ant build script so that it can be integrated with Android Studio's build system
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
6889fcfc28
Looks like it was the JNI cash causing the crash.
...
Forcing it to look up classes and methods instead of caching them stopped the crashes in the GC. Will investigate more later.
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
7cc64c5cb6
Might help to set the enabled field on a VirtualNetworkConfig object :)
11 years ago
Grant Limberg
b84dba3ecb
more logging
11 years ago
Grant Limberg
8fb9df9751
delete dead test code
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
74f7d5377d
Enable ZT_TRACE and more verbose build output
11 years ago
Grant Limberg
5015c0ae78
more logging
11 years ago
Grant Limberg
b6196a53de
Fix DataStoreGetFunction.
11 years ago
Grant Limberg
58ca657da6
Use object arrays rather than ArrayList. JNI side
11 years ago
Grant Limberg
7822616966
Replace ArrayList instances with []
11 years ago
Grant Limberg
4c680e3126
LOTS more error checking and logging.
...
Running into a wall attempting to add items to an ArrayList from the JNI side
11 years ago
Grant Limberg
09631ad382
fix datastore get call in JNI
...
Just delete the local reference rather than do an array delete. Array delete was causing a crash on loading network config files. Deleting the local ref works fine, though, as it still lets the JVM garbage collecter know that the native code is done with the array
11 years ago
Grant Limberg
2d67196667
added the android verbose log level and moved most jni debug messages to verbose
11 years ago
Grant Limberg
9755dad7ff
add a missing break from a switch
11 years ago
Grant Limberg
adaf9cf32b
still getting re-used to all the places you have to put access modifiers in Java
11 years ago
Grant Limberg
6e998efd15
fixing up data store stuff
11 years ago
Grant Limberg
1e043a3f66
Remove link desperation from java API
11 years ago
Kees Bos
a425bbc673
Renamed supernode to rootserver
11 years ago
Grant Limberg
e28712555d
build & package libZeroTierOneSDK.jnilib on Mac oS
...
Signed-off-by: Grant Limberg <glimberg@gmail.com>
11 years ago
Grant Limberg
7054c365f2
put a read timeout on the socket
11 years ago
Grant Limberg
06ab338ecc
added naive OneService implementation.
...
Does nothing but send packets to master nodes and listen for packets back.
11 years ago
Grant Limberg
ad6ec22857
DataStore now works
11 years ago
Grant Limberg
a9307693a6
Adding Data Store implementations for Android and normal Java
11 years ago
Grant Limberg
742c59a7c7
Refactor package name from com.zerotierone.sdk to com.zerotier.sdk
11 years ago
Grant Limberg
e79a6915ff
ensure java is compiled for JVM 1.7. Android cant read .class files compiled for 1.8
11 years ago