Grant Limberg
|
7e0cc28a89
|
Fixes for bugs pointed out by updating warnings
|
11 years ago |
Grant Limberg
|
9bf9670ff9
|
add more warnings to the JNI build
|
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
|
4c71e92a67
|
It's now possible to actually create a Node object in Java/Android!!!
|
11 years ago |
Grant Limberg
|
3bdbc6390f
|
Added logging to Android logcat
|
11 years ago |
Grant Limberg
|
8a09e0ec3c
|
added NodeException
|
11 years ago |
Grant Limberg
|
db80070ccb
|
fix strings pointing to enum fields in ResultCode java class
|
11 years ago |
Grant Limberg
|
042f914dc5
|
If we could not recursively add ZeroTierOneSDK.jar to ZeroTierOneSDK.jar, that would be greeeaaaaat
|
11 years ago |
Grant Limberg
|
a86a0ab2b1
|
Package the Android native libraries right in the .jar file
|
11 years ago |
Grant Limberg
|
29bb2a9004
|
fix for a previously renamed class
|
11 years ago |
Grant Limberg
|
56f8160af8
|
generate javadocs for the Java SDK
|
11 years ago |
Grant Limberg
|
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.
|
11 years ago |
Grant Limberg
|
9c62ce9e6f
|
implemented EventCallback
All callback methods are now implemented
|
11 years ago |
Grant Limberg
|
f2eed5a65f
|
implemented WirePacketSendFunction
|
11 years ago |
Grant Limberg
|
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
|
11 years ago |
Grant Limberg
|
dc00ce4f44
|
added DataStorePutFunction implementation
updated DataStorePutListener to also have an onDelete() method
|
11 years ago |
Grant Limberg
|
53ebd5a9a5
|
don't need to pass buffer size because java arrays have a .length member
|
11 years ago |
Grant Limberg
|
d5fc2b39aa
|
implemented DataStoreGetFunction callback
|
11 years ago |
Grant Limberg
|
4137246653
|
implemented VirtualNetworkFrameFunctionCallback
|
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
|
6f07a476a6
|
create and return the peer array
|
11 years ago |
Grant Limberg
|
52a20b4b0f
|
create PeerRole and PeerPhysicalPath objects
|
11 years ago |
Grant Limberg
|
f3c29d3f0d
|
rename PhysicalPeerPath -> PeerPhysicalPath to reflect C API
|
11 years ago |
Grant Limberg
|
b3429481cd
|
update build instructions
Signed-off-by: Grant Limberg <glimberg@gmail.com>
|
11 years ago |
Grant Limberg
|
1a65a79e57
|
set 'build' as the default ant target
Signed-off-by: Grant Limberg <glimberg@gmail.com>
|
11 years ago |
Grant Limberg
|
6dd3c07b25
|
removing unneeded jni headers
Signed-off-by: Grant Limberg <glimberg@gmail.com>
|
11 years ago |
Grant Limberg
|
1df6bc6bc3
|
just adjusting some alignment
Signed-off-by: Grant Limberg <glimberg@gmail.com>
|
11 years ago |
Grant Limberg
|
9ab7280703
|
added infrastructure for Node.peers() and Node.networks() functions
Signed-off-by: Grant Limberg <glimberg@gmail.com>
|
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
|
1bea940323
|
fix field ID signatures
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
|
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>
|
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 |
Grant Limberg
|
fa9d42b7e5
|
finished the JNI implementation of the status() method on Node
Signed-off-by: Grant Limberg <glimberg@gmail.com>
|
11 years ago |
Grant Limberg
|
1a528aec76
|
don't require clean before build
Signed-off-by: Grant Limberg <glimberg@gmail.com>
|
11 years ago |
Grant Limberg
|
ffb9e2901e
|
fix a build error
Signed-off-by: Grant Limberg <glimberg@gmail.com>
|
11 years ago |
Grant Limberg
|
407e2fc7de
|
Added ant build script. Requires NDK_BUILD_LOC environment variable pointing to the ndk-build script
fixed compile erros in Node and VirutalNetworkConfig
Signed-off-by: Grant Limberg <glimberg@gmail.com>
|
11 years ago |
Grant Limberg
|
667a103a6a
|
added functions to create Event, and VirtualNetworkStatus objects
Signed-off-by: Grant Limberg <glimberg@gmail.com>
|
11 years ago |
Grant Limberg
|
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>
|
11 years ago |
Grant Limberg
|
34028aa7c8
|
Added implemenation for node.address()
Signed-off-by: Grant Limberg <glimberg@gmail.com>
|
11 years ago |
Grant Limberg
|
3ccaef88b7
|
Added implementation for Node.version()
Signed-off-by: Grant Limberg <glimberg@gmail.com>
|
11 years ago |
Grant Limberg
|
f5bb57d5aa
|
fix call to networkConfig to pass the network id
Signed-off-by: Grant Limberg <glimberg@gmail.com>
|
11 years ago |
Grant Limberg
|
a1a35e0279
|
Can't instantiate enum objects. Fix createResultObject() function so that it still works properly
Signed-off-by: Grant Limberg <glimberg@gmail.com>
|
11 years ago |
Grant Limberg
|
1308f02b93
|
multicastSubscribe() and multicastUnsubscribe()
Signed-off-by: Grant Limberg <glimberg@gmail.com>
|
11 years ago |
Grant Limberg
|
b078d69372
|
join() and leave() functions
Signed-off-by: Grant Limberg <glimberg@gmail.com>
|
11 years ago |
Grant Limberg
|
e31e54483c
|
added processBackgroundTasks function
Signed-off-by: Grant Limberg <glimberg@gmail.com>
|
11 years ago |
Grant Limberg
|
3c499777c8
|
added implementation for processWirePacket
Signed-off-by: Grant Limberg <glimberg@gmail.com>
|
11 years ago |