This commit is contained in:
Brenton Bostick 2023-02-02 16:09:16 -05:00
parent 0733af5239
commit 5be92a96df
19 changed files with 26 additions and 15 deletions

View file

@ -24,6 +24,7 @@
* redistribute it in a modified binary form, please contact ZeroTier Networks
* LLC. Start here: http://www.zerotier.com/
*/
package com.zerotier.sdk;
public interface DataStoreGetListener {

View file

@ -24,6 +24,7 @@
* redistribute it in a modified binary form, please contact ZeroTier Networks
* LLC. Start here: http://www.zerotier.com/
*/
package com.zerotier.sdk;
public interface DataStorePutListener {

View file

@ -28,6 +28,7 @@
package com.zerotier.sdk;
public enum Event {
/**
* Node has been initialized
*

View file

@ -27,13 +27,11 @@
package com.zerotier.sdk;
import java.net.InetSocketAddress;
import java.lang.String;
/**
* Interface to handle callbacks for ZeroTier One events.
*/
public interface EventListener {
/**
* Callback for events with no other associated metadata
*

View file

@ -472,4 +472,4 @@ public class Node {
private native Peer[] peers(long nodeId);
private native VirtualNetworkConfig[] networks(long nodeId);
}
}

View file

@ -33,4 +33,4 @@ public class NodeException extends RuntimeException {
public NodeException(String message) {
super(message);
}
}
}

View file

@ -24,12 +24,14 @@
* redistribute it in a modified binary form, please contact ZeroTier Networks
* LLC. Start here: http://www.zerotier.com/
*/
package com.zerotier.sdk;
import java.net.InetSocketAddress;
public interface PacketSender {
/**
* Function to send a ZeroTier packet out over the wire
*

View file

@ -8,6 +8,7 @@ package com.zerotier.sdk;
import java.net.InetSocketAddress;
public interface PathChecker {
/**
* Callback to check whether a path should be used for ZeroTier traffic
*

View file

@ -91,4 +91,4 @@ public final class Peer {
public final PeerPhysicalPath[] paths() {
return paths;
}
}
}

View file

@ -75,4 +75,4 @@ public final class PeerPhysicalPath {
public final boolean isPreferred() {
return preferred;
}
}
}

View file

@ -28,6 +28,7 @@
package com.zerotier.sdk;
public enum PeerRole {
/**
* An ordinary node
*/

View file

@ -36,6 +36,7 @@ package com.zerotier.sdk;
* problem.</p>
*/
public enum ResultCode {
/**
* Operation completed normally
*/
@ -76,4 +77,4 @@ public enum ResultCode {
public boolean isFatal(int id) {
return (id > 100 && id < 1000);
}
}
}

View file

@ -25,11 +25,11 @@
* LLC. Start here: http://www.zerotier.com/
*/
package com.zerotier.sdk;
public interface VirtualNetworkConfigListener {
/**
* Callback called to update virtual network port configuration
*
@ -57,4 +57,4 @@ public interface VirtualNetworkConfigListener {
long nwid,
VirtualNetworkConfigOperation op,
VirtualNetworkConfig config);
}
}

View file

@ -24,9 +24,11 @@
* redistribute it in a modified binary form, please contact ZeroTier Networks
* LLC. Start here: http://www.zerotier.com/
*/
package com.zerotier.sdk;
public enum VirtualNetworkConfigOperation {
/**
* Network is coming up (either for the first time or after service restart)
*/

View file

@ -28,6 +28,7 @@
package com.zerotier.sdk;
public interface VirtualNetworkFrameListener {
/**
* Function to send a frame out to a virtual network port
*

View file

@ -24,9 +24,11 @@
* redistribute it in a modified binary form, please contact ZeroTier Networks
* LLC. Start here: http://www.zerotier.com/
*/
package com.zerotier.sdk;
public enum VirtualNetworkStatus {
/**
* Waiting for network configuration (also means revision == 0)
*/

View file

@ -24,9 +24,11 @@
* redistribute it in a modified binary form, please contact ZeroTier Networks
* LLC. Start here: http://www.zerotier.com/
*/
package com.zerotier.sdk;
public enum VirtualNetworkType {
/**
* Private networks are authorized via certificates of membership
*/