Update to JNI for both Java and Scala (removed ztjni from method prefixes)

This commit is contained in:
Joseph Henry
2017-10-16 15:34:43 -07:00
parent 55c527d149
commit ce22940f57
5 changed files with 154 additions and 276 deletions

View File

@@ -39,12 +39,12 @@ public class ExampleApp {
public static void main(String[] args) {
final ZeroTier z = new ZeroTier();
final ZeroTier libzt = new ZeroTier();
new Thread(new Runnable() {
public void run() {
System.out.println("starting libzt");
z.startjoin("/Users/joseph/op/zt/libzt/ztjni", "1212121212121212");
libzt.startjoin("/Users/joseph/op/zt/libzt/ztjni", "1212121212121212");
// start(path) will not block
// startjoin(path, nwid) will block
}
@@ -52,8 +52,8 @@ public class ExampleApp {
while(true)
{
try { Thread.sleep(3000); }
catch (InterruptedException e) { e.printStackTrace(); }
try { Thread.sleep(3000); }
catch (InterruptedException e) { e.printStackTrace(); }
}
}
}