|
742c59a7c7
|
Refactor package name from com.zerotierone.sdk to com.zerotier.sdk
|
2015-05-02 16:54:00 -07:00 |
|
|
818339f966
|
replace old direct calls to FindClass, GetMethodID, etc with calls that use the cache
|
2015-05-02 12:05:40 -07:00 |
|
|
079d248eab
|
added a JniCache objectet for caching jclass, jmethodID, and jfieldID objects
|
2015-05-02 12:05:02 -07:00 |
|
|
02b33e3763
|
Yeah it helps to byte swap the port back to little-endian before sending the port off to Java
|
2015-04-30 22:07:14 -07:00 |
|
|
0a15eae00f
|
Setup native build for Windows Java.
Still need to do Mac & Linux
|
2015-04-30 21:50:28 -07:00 |
|
|
9464504e4a
|
DataStoreGet and Put and EventListener appear to work
|
2015-04-29 21:20:50 -07:00 |
|
|
7e0cc28a89
|
Fixes for bugs pointed out by updating warnings
|
2015-04-29 19:29:35 -07:00 |
|
|
9bf9670ff9
|
add more warnings to the JNI build
|
2015-04-29 19:14:52 -07:00 |
|
|
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
|
2015-04-27 18:38:13 -07:00 |
|
|
d1ed269537
|
Switch to InetSockAddress instead of InetAddress so we can send the port # to java as well
|
2015-04-27 17:48:37 -07:00 |
|
|
4c71e92a67
|
It's now possible to actually create a Node object in Java/Android!!!
|
2015-04-25 20:47:21 -07:00 |
|
|
3bdbc6390f
|
Added logging to Android logcat
|
2015-04-25 20:46:56 -07:00 |
|
|
db80070ccb
|
fix strings pointing to enum fields in ResultCode java class
|
2015-04-25 19:19:58 -07:00 |
|
|
56f8160af8
|
generate javadocs for the Java SDK
|
2015-04-25 17:29:07 -07:00 |
|
|
0d4283a3fa
|
Cache jclass and jmethod instances for callbacks on the JniRef struct.
This is safe to cache as none of the instantiated callback interfaces can be changed once a Node object is created.
|
2015-04-24 20:34:36 -07:00 |
|
|
9c62ce9e6f
|
implemented EventCallback
All callback methods are now implemented
|
2015-04-24 20:13:21 -07:00 |
|
|
f2eed5a65f
|
implemented WirePacketSendFunction
|
2015-04-24 19:43:17 -07:00 |
|
|
5e1fb4e253
|
Realized that the jclass and jmethodID variables in the callbacks cannot be static
There's no guarantee that ALL calls to the callbacks will be on the same class as they're just interfaces and user defined
|
2015-04-24 19:35:18 -07:00 |
|
|
dc00ce4f44
|
added DataStorePutFunction implementation
updated DataStorePutListener to also have an onDelete() method
|
2015-04-24 19:28:44 -07:00 |
|
|
53ebd5a9a5
|
don't need to pass buffer size because java arrays have a .length member
|
2015-04-24 19:14:59 -07:00 |
|
|
d5fc2b39aa
|
implemented DataStoreGetFunction callback
|
2015-04-24 19:11:49 -07:00 |
|
|
4137246653
|
implemented VirtualNetworkFrameFunctionCallback
|
2015-04-24 18:49:52 -07:00 |
|
|
28168fa673
|
implement VirtualNetworkConfigFunctionCallback
|
2015-04-24 18:39:17 -07:00 |
|
|
99af0f3a88
|
moved creation of VirtualNetworkConfig objects to ZT1_jniutils
added implementation of networks() method
|
2015-04-24 18:20:10 -07:00 |
|
|
6f07a476a6
|
create and return the peer array
|
2015-04-24 18:06:26 -07:00 |
|
|
52a20b4b0f
|
create PeerRole and PeerPhysicalPath objects
|
2015-04-24 17:58:59 -07:00 |
|
|
6dd3c07b25
|
removing unneeded jni headers
Signed-off-by: Grant Limberg <glimberg@gmail.com>
|
2015-04-23 23:09:42 -07:00 |
|
|
1df6bc6bc3
|
just adjusting some alignment
Signed-off-by: Grant Limberg <glimberg@gmail.com>
|
2015-04-23 23:09:30 -07:00 |
|
|
9ab7280703
|
added infrastructure for Node.peers() and Node.networks() functions
Signed-off-by: Grant Limberg <glimberg@gmail.com>
|
2015-04-23 23:08:28 -07:00 |
|
|
7f6556eba0
|
node.networkConfig() now creates ArrayLists of multicast subscriptions and assigned addresses
Signed-off-by: Grant Limberg <glimberg@gmail.com>
|
2015-04-23 22:48:56 -07:00 |
|
|
1bea940323
|
fix field ID signatures
Signed-off-by: Grant Limberg <glimberg@gmail.com>
|
2015-04-23 22:47:56 -07:00 |
|
|
6ff2e6ecfe
|
move findNode method back
Signed-off-by: Grant Limberg <glimberg@gmail.com>
|
2015-04-23 22:46:54 -07:00 |
|
|
d66f2cd54d
|
Node.networkConfig now only needs to populate the lists of assigned addresses and multicast subscriptions and then it's finished
Signed-off-by: Grant Limberg <glimberg@gmail.com>
|
2015-04-23 21:43:16 -07:00 |
|
|
46adf870a1
|
move utility functions from anon namespace to ZT1_jniutils
Signed-off-by: Grant Limberg <glimberg@gmail.com>
|
2015-04-23 21:39:07 -07:00 |
|
|
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>
|
2015-04-23 21:36:33 -07:00 |
|
|
fa9d42b7e5
|
finished the JNI implementation of the status() method on Node
Signed-off-by: Grant Limberg <glimberg@gmail.com>
|
2015-04-23 20:52:47 -07:00 |
|
|
667a103a6a
|
added functions to create Event, and VirtualNetworkStatus objects
Signed-off-by: Grant Limberg <glimberg@gmail.com>
|
2015-04-23 19:16:45 -07:00 |
|
|
32a35e6808
|
scaffolding for implementation of status() and networkConfig()
They should be able to be called, but will not return valid objects yet
Signed-off-by: Grant Limberg <glimberg@gmail.com>
|
2015-04-22 21:31:17 -07:00 |
|
|
34028aa7c8
|
Added implemenation for node.address()
Signed-off-by: Grant Limberg <glimberg@gmail.com>
|
2015-04-22 21:30:37 -07:00 |
|
|
3ccaef88b7
|
Added implementation for Node.version()
Signed-off-by: Grant Limberg <glimberg@gmail.com>
|
2015-04-22 21:29:45 -07:00 |
|
|
f5bb57d5aa
|
fix call to networkConfig to pass the network id
Signed-off-by: Grant Limberg <glimberg@gmail.com>
|
2015-04-22 21:28:42 -07:00 |
|
|
a1a35e0279
|
Can't instantiate enum objects. Fix createResultObject() function so that it still works properly
Signed-off-by: Grant Limberg <glimberg@gmail.com>
|
2015-04-22 21:14:55 -07:00 |
|
|
1308f02b93
|
multicastSubscribe() and multicastUnsubscribe()
Signed-off-by: Grant Limberg <glimberg@gmail.com>
|
2015-04-22 20:33:38 -07:00 |
|
|
b078d69372
|
join() and leave() functions
Signed-off-by: Grant Limberg <glimberg@gmail.com>
|
2015-04-22 20:29:34 -07:00 |
|
|
e31e54483c
|
added processBackgroundTasks function
Signed-off-by: Grant Limberg <glimberg@gmail.com>
|
2015-04-22 20:25:35 -07:00 |
|
|
3c499777c8
|
added implementation for processWirePacket
Signed-off-by: Grant Limberg <glimberg@gmail.com>
|
2015-04-22 20:21:12 -07:00 |
|
|
9c038d3ecd
|
added a few missing function calls in the ZT1 Node API
Signed-off-by: Grant Limberg <glimberg@gmail.com>
|
2015-04-22 19:36:46 -07:00 |
|
|
6187a91f4c
|
delete the ZT1_Node object when calling Java_com_zerotierone_sdk_Node_node_1delete
Signed-off-by: Grant Limberg <glimberg@gmail.com>
|
2015-04-22 19:29:45 -07:00 |
|
|
321b67c73c
|
add a findNode() function to reduce copypasta
Signed-off-by: Grant Limberg <glimberg@gmail.com>
|
2015-04-22 19:29:13 -07:00 |
|
|
5df253fa69
|
added implementation for processVirtualNetworkFrame
Signed-off-by: Grant Limberg <glimberg@gmail.com>
|
2015-04-22 19:19:45 -07:00 |
|