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
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
58ca657da6
Use object arrays rather than ArrayList. JNI side
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
Kees Bos
a425bbc673
Renamed supernode to rootserver
11 years ago
Grant Limberg
742c59a7c7
Refactor package name from com.zerotierone.sdk to com.zerotier.sdk
11 years ago
Grant Limberg
818339f966
replace old direct calls to FindClass, GetMethodID, etc with calls that use the cache
11 years ago
Grant Limberg
079d248eab
added a JniCache objectet for caching jclass, jmethodID, and jfieldID objects
11 years ago
Grant Limberg
02b33e3763
Yeah it helps to byte swap the port back to little-endian before sending the port off to Java
11 years ago
Grant Limberg
7e0cc28a89
Fixes for bugs pointed out by updating warnings
11 years ago
Grant Limberg
5983b4367b
jclass pointers aren't as cacheable as originally thought.
...
There is a way to do it. We can try it later if we determine it's needed for performance reasons. Otherwise, don't use static to cache them
11 years ago
Grant Limberg
d1ed269537
Switch to InetSockAddress instead of InetAddress so we can send the port # to java as well
11 years ago
Grant Limberg
db80070ccb
fix strings pointing to enum fields in ResultCode java class
11 years ago
Grant Limberg
56f8160af8
generate javadocs for the Java SDK
11 years ago
Grant Limberg
9c62ce9e6f
implemented EventCallback
...
All callback methods are now implemented
11 years ago
Grant Limberg
28168fa673
implement VirtualNetworkConfigFunctionCallback
11 years ago
Grant Limberg
99af0f3a88
moved creation of VirtualNetworkConfig objects to ZT1_jniutils
...
added implementation of networks() method
11 years ago
Grant Limberg
52a20b4b0f
create PeerRole and PeerPhysicalPath objects
11 years ago
Grant Limberg
7f6556eba0
node.networkConfig() now creates ArrayLists of multicast subscriptions and assigned addresses
...
Signed-off-by: Grant Limberg <glimberg@gmail.com>
11 years ago
Grant Limberg
6ff2e6ecfe
move findNode method back
...
Signed-off-by: Grant Limberg <glimberg@gmail.com>
11 years ago
Grant Limberg
46adf870a1
move utility functions from anon namespace to ZT1_jniutils
...
Signed-off-by: Grant Limberg <glimberg@gmail.com>
11 years ago
Grant Limberg
4906f8e848
added stub utility functions for creating ArrayLists, appending items to ArrayLists, creating InetAddress objects, and MulticastGroup objects
...
Signed-off-by: Grant Limberg <glimberg@gmail.com>
11 years ago