mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2025-06-06 20:43:44 +02:00
cleanup
This commit is contained in:
parent
e20dfeaa82
commit
d81932307f
19 changed files with 26 additions and 15 deletions
|
@ -61,8 +61,6 @@ jobject createVirtualNetworkConfigOperation(JNIEnv *env, ZT_VirtualNetworkConfig
|
||||||
jobject newInetSocketAddress(JNIEnv *env, const sockaddr_storage &addr);
|
jobject newInetSocketAddress(JNIEnv *env, const sockaddr_storage &addr);
|
||||||
jobject newInetAddress(JNIEnv *env, const sockaddr_storage &addr);
|
jobject newInetAddress(JNIEnv *env, const sockaddr_storage &addr);
|
||||||
|
|
||||||
jobject newMulticastGroup(JNIEnv *env, const ZT_MulticastGroup &mc);
|
|
||||||
|
|
||||||
jobject newPeer(JNIEnv *env, const ZT_Peer &peer);
|
jobject newPeer(JNIEnv *env, const ZT_Peer &peer);
|
||||||
jobject newPeerPhysicalPath(JNIEnv *env, const ZT_PeerPhysicalPath &ppp);
|
jobject newPeerPhysicalPath(JNIEnv *env, const ZT_PeerPhysicalPath &ppp);
|
||||||
|
|
||||||
|
@ -74,4 +72,4 @@ jobject newVirtualNetworkRoute(JNIEnv *env, const ZT_VirtualNetworkRoute &route)
|
||||||
|
|
||||||
jobject newVirtualNetworkDNS(JNIEnv *env, const ZT_VirtualNetworkDNS &dns);
|
jobject newVirtualNetworkDNS(JNIEnv *env, const ZT_VirtualNetworkDNS &dns);
|
||||||
|
|
||||||
#endif
|
#endif // ZT_jniutils_h_
|
||||||
|
|
|
@ -24,6 +24,7 @@
|
||||||
* redistribute it in a modified binary form, please contact ZeroTier Networks
|
* redistribute it in a modified binary form, please contact ZeroTier Networks
|
||||||
* LLC. Start here: http://www.zerotier.com/
|
* LLC. Start here: http://www.zerotier.com/
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package com.zerotier.sdk;
|
package com.zerotier.sdk;
|
||||||
|
|
||||||
public interface DataStoreGetListener {
|
public interface DataStoreGetListener {
|
||||||
|
|
|
@ -24,6 +24,7 @@
|
||||||
* redistribute it in a modified binary form, please contact ZeroTier Networks
|
* redistribute it in a modified binary form, please contact ZeroTier Networks
|
||||||
* LLC. Start here: http://www.zerotier.com/
|
* LLC. Start here: http://www.zerotier.com/
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package com.zerotier.sdk;
|
package com.zerotier.sdk;
|
||||||
|
|
||||||
public interface DataStorePutListener {
|
public interface DataStorePutListener {
|
||||||
|
|
|
@ -28,6 +28,7 @@
|
||||||
package com.zerotier.sdk;
|
package com.zerotier.sdk;
|
||||||
|
|
||||||
public enum Event {
|
public enum Event {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Node has been initialized
|
* Node has been initialized
|
||||||
*
|
*
|
||||||
|
|
|
@ -27,13 +27,11 @@
|
||||||
|
|
||||||
package com.zerotier.sdk;
|
package com.zerotier.sdk;
|
||||||
|
|
||||||
import java.net.InetSocketAddress;
|
|
||||||
import java.lang.String;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Interface to handle callbacks for ZeroTier One events.
|
* Interface to handle callbacks for ZeroTier One events.
|
||||||
*/
|
*/
|
||||||
public interface EventListener {
|
public interface EventListener {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Callback for events with no other associated metadata
|
* Callback for events with no other associated metadata
|
||||||
*
|
*
|
||||||
|
|
|
@ -24,12 +24,14 @@
|
||||||
* redistribute it in a modified binary form, please contact ZeroTier Networks
|
* redistribute it in a modified binary form, please contact ZeroTier Networks
|
||||||
* LLC. Start here: http://www.zerotier.com/
|
* LLC. Start here: http://www.zerotier.com/
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package com.zerotier.sdk;
|
package com.zerotier.sdk;
|
||||||
|
|
||||||
import java.net.InetSocketAddress;
|
import java.net.InetSocketAddress;
|
||||||
|
|
||||||
|
|
||||||
public interface PacketSender {
|
public interface PacketSender {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Function to send a ZeroTier packet out over the wire
|
* Function to send a ZeroTier packet out over the wire
|
||||||
*
|
*
|
||||||
|
|
|
@ -8,6 +8,7 @@ package com.zerotier.sdk;
|
||||||
import java.net.InetSocketAddress;
|
import java.net.InetSocketAddress;
|
||||||
|
|
||||||
public interface PathChecker {
|
public interface PathChecker {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Callback to check whether a path should be used for ZeroTier traffic
|
* Callback to check whether a path should be used for ZeroTier traffic
|
||||||
*
|
*
|
||||||
|
|
|
@ -28,6 +28,7 @@
|
||||||
package com.zerotier.sdk;
|
package com.zerotier.sdk;
|
||||||
|
|
||||||
public enum PeerRole {
|
public enum PeerRole {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* An ordinary node
|
* An ordinary node
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -36,6 +36,7 @@ package com.zerotier.sdk;
|
||||||
* problem.</p>
|
* problem.</p>
|
||||||
*/
|
*/
|
||||||
public enum ResultCode {
|
public enum ResultCode {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Operation completed normally
|
* Operation completed normally
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -25,11 +25,11 @@
|
||||||
* LLC. Start here: http://www.zerotier.com/
|
* LLC. Start here: http://www.zerotier.com/
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
package com.zerotier.sdk;
|
package com.zerotier.sdk;
|
||||||
|
|
||||||
|
|
||||||
public interface VirtualNetworkConfigListener {
|
public interface VirtualNetworkConfigListener {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Callback called to update virtual network port configuration
|
* Callback called to update virtual network port configuration
|
||||||
*
|
*
|
||||||
|
|
|
@ -24,9 +24,11 @@
|
||||||
* redistribute it in a modified binary form, please contact ZeroTier Networks
|
* redistribute it in a modified binary form, please contact ZeroTier Networks
|
||||||
* LLC. Start here: http://www.zerotier.com/
|
* LLC. Start here: http://www.zerotier.com/
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package com.zerotier.sdk;
|
package com.zerotier.sdk;
|
||||||
|
|
||||||
public enum VirtualNetworkConfigOperation {
|
public enum VirtualNetworkConfigOperation {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Network is coming up (either for the first time or after service restart)
|
* Network is coming up (either for the first time or after service restart)
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -28,6 +28,7 @@
|
||||||
package com.zerotier.sdk;
|
package com.zerotier.sdk;
|
||||||
|
|
||||||
public interface VirtualNetworkFrameListener {
|
public interface VirtualNetworkFrameListener {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Function to send a frame out to a virtual network port
|
* Function to send a frame out to a virtual network port
|
||||||
*
|
*
|
||||||
|
|
|
@ -24,9 +24,11 @@
|
||||||
* redistribute it in a modified binary form, please contact ZeroTier Networks
|
* redistribute it in a modified binary form, please contact ZeroTier Networks
|
||||||
* LLC. Start here: http://www.zerotier.com/
|
* LLC. Start here: http://www.zerotier.com/
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package com.zerotier.sdk;
|
package com.zerotier.sdk;
|
||||||
|
|
||||||
public enum VirtualNetworkStatus {
|
public enum VirtualNetworkStatus {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Waiting for network configuration (also means revision == 0)
|
* Waiting for network configuration (also means revision == 0)
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -24,9 +24,11 @@
|
||||||
* redistribute it in a modified binary form, please contact ZeroTier Networks
|
* redistribute it in a modified binary form, please contact ZeroTier Networks
|
||||||
* LLC. Start here: http://www.zerotier.com/
|
* LLC. Start here: http://www.zerotier.com/
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package com.zerotier.sdk;
|
package com.zerotier.sdk;
|
||||||
|
|
||||||
public enum VirtualNetworkType {
|
public enum VirtualNetworkType {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Private networks are authorized via certificates of membership
|
* Private networks are authorized via certificates of membership
|
||||||
*/
|
*/
|
||||||
|
|
Loading…
Add table
Reference in a new issue