summaryrefslogtreecommitdiff
path: root/java/jni/com_zerotierone_sdk_Node.cpp
AgeCommit message (Collapse)Author
2015-05-02Refactor package name from com.zerotierone.sdk to com.zerotier.sdkGrant Limberg
2015-05-02replace old direct calls to FindClass, GetMethodID, etc with calls that use ↵Grant Limberg
the cache
2015-05-02added a JniCache objectet for caching jclass, jmethodID, and jfieldID objectsGrant Limberg
2015-04-29DataStoreGet and Put and EventListener appear to workGrant Limberg
2015-04-29Fixes for bugs pointed out by updating warningsGrant Limberg
2015-04-27jclass pointers aren't as cacheable as originally thought.Grant Limberg
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-27Switch to InetSockAddress instead of InetAddress so we can send the port # ↵Grant Limberg
to java as well
2015-04-25It's now possible to actually create a Node object in Java/Android!!!Grant Limberg
2015-04-25generate javadocs for the Java SDKGrant Limberg
2015-04-24Cache jclass and jmethod instances for callbacks on the JniRef struct.Grant Limberg
This is safe to cache as none of the instantiated callback interfaces can be changed once a Node object is created.
2015-04-24implemented EventCallbackGrant Limberg
All callback methods are now implemented
2015-04-24implemented WirePacketSendFunctionGrant Limberg
2015-04-24Realized that the jclass and jmethodID variables in the callbacks cannot be ↵Grant Limberg
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-24added DataStorePutFunction implementationGrant Limberg
updated DataStorePutListener to also have an onDelete() method
2015-04-24don't need to pass buffer size because java arrays have a .length memberGrant Limberg
2015-04-24implemented DataStoreGetFunction callbackGrant Limberg
2015-04-24implemented VirtualNetworkFrameFunctionCallbackGrant Limberg
2015-04-24implement VirtualNetworkConfigFunctionCallbackGrant Limberg
2015-04-24moved creation of VirtualNetworkConfig objects to ZT1_jniutilsGrant Limberg
added implementation of networks() method
2015-04-24create and return the peer arrayGrant Limberg
2015-04-23just adjusting some alignmentGrant Limberg
Signed-off-by: Grant Limberg <glimberg@gmail.com>
2015-04-23added infrastructure for Node.peers() and Node.networks() functionsGrant Limberg
Signed-off-by: Grant Limberg <glimberg@gmail.com>
2015-04-23node.networkConfig() now creates ArrayLists of multicast subscriptions and ↵Grant Limberg
assigned addresses Signed-off-by: Grant Limberg <glimberg@gmail.com>
2015-04-23fix field ID signaturesGrant Limberg
Signed-off-by: Grant Limberg <glimberg@gmail.com>
2015-04-23move findNode method backGrant Limberg
Signed-off-by: Grant Limberg <glimberg@gmail.com>
2015-04-23Node.networkConfig now only needs to populate the lists of assigned ↵Grant Limberg
addresses and multicast subscriptions and then it's finished Signed-off-by: Grant Limberg <glimberg@gmail.com>
2015-04-23move utility functions from anon namespace to ZT1_jniutilsGrant Limberg
Signed-off-by: Grant Limberg <glimberg@gmail.com>
2015-04-23finished the JNI implementation of the status() method on NodeGrant Limberg
Signed-off-by: Grant Limberg <glimberg@gmail.com>
2015-04-23added functions to create Event, and VirtualNetworkStatus objectsGrant Limberg
Signed-off-by: Grant Limberg <glimberg@gmail.com>
2015-04-22scaffolding for implementation of status() and networkConfig()Grant Limberg
They should be able to be called, but will not return valid objects yet Signed-off-by: Grant Limberg <glimberg@gmail.com>
2015-04-22Added implemenation for node.address()Grant Limberg
Signed-off-by: Grant Limberg <glimberg@gmail.com>
2015-04-22Added implementation for Node.version()Grant Limberg
Signed-off-by: Grant Limberg <glimberg@gmail.com>
2015-04-22Can't instantiate enum objects. Fix createResultObject() function so that ↵Grant Limberg
it still works properly Signed-off-by: Grant Limberg <glimberg@gmail.com>
2015-04-22multicastSubscribe() and multicastUnsubscribe()Grant Limberg
Signed-off-by: Grant Limberg <glimberg@gmail.com>
2015-04-22join() and leave() functionsGrant Limberg
Signed-off-by: Grant Limberg <glimberg@gmail.com>
2015-04-22added processBackgroundTasks functionGrant Limberg
Signed-off-by: Grant Limberg <glimberg@gmail.com>
2015-04-22added implementation for processWirePacketGrant Limberg
Signed-off-by: Grant Limberg <glimberg@gmail.com>
2015-04-22delete the ZT1_Node object when calling ↵Grant Limberg
Java_com_zerotierone_sdk_Node_node_1delete Signed-off-by: Grant Limberg <glimberg@gmail.com>
2015-04-22add a findNode() function to reduce copypastaGrant Limberg
Signed-off-by: Grant Limberg <glimberg@gmail.com>
2015-04-22added implementation for processVirtualNetworkFrameGrant Limberg
Signed-off-by: Grant Limberg <glimberg@gmail.com>
2015-04-20Added JNI code for construction/destruction of ZT1_Node objectsGrant Limberg
Signed-off-by: Grant Limberg <glimberg@gmail.com>