Minor update to control api (and JNI). zts_start, zts_stop return int

This commit is contained in:
Joseph Henry
2019-02-28 15:47:49 -08:00
parent 916b9605a3
commit 0afa8e41fa
2 changed files with 15 additions and 4 deletions

View File

@@ -90,6 +90,16 @@ public class ZeroTier
public static int EVENT_PEER_RELAY = 97;
public static int EVENT_PEER_UNREACHABLE = 98;
//////////////////////////////////////////////////////////////////////////////
// ZeroTier Constants //
//////////////////////////////////////////////////////////////////////////////
public static int ZT_MAX_PEER_NETWORK_PATHS = 16;
//////////////////////////////////////////////////////////////////////////////
// Socket API Constants //
//////////////////////////////////////////////////////////////////////////////
// Socket protocol types
public static int SOCK_STREAM = 0x00000001;
public static int SOCK_DGRAM = 0x00000002;
@@ -166,8 +176,8 @@ public class ZeroTier
// ZeroTier Service Controls //
//////////////////////////////////////////////////////////////////////////////
public static native void start(String path, ZeroTierEventListener callbackClass, int port);
public static native void stop();
public static native int start(String path, ZeroTierEventListener callbackClass, int port);
public static native int stop();
public static native int join(long nwid);
public static native int leave(long nwid);
public static native long get_node_id();