Relay policy can now be computed.

This commit is contained in:
Adam Ierymenko 2017-01-27 14:05:09 -08:00
parent bc218f9414
commit 0b3b994241
9 changed files with 7 additions and 84 deletions

View file

@ -406,16 +406,6 @@ enum ZT_Event
ZT_EVENT_USER_MESSAGE = 6
};
/**
* Node relay policy
*/
enum ZT_RelayPolicy
{
ZT_RELAY_POLICY_NEVER = 0,
ZT_RELAY_POLICY_TRUSTED = 1,
ZT_RELAY_POLICY_ALWAYS = 2
};
/**
* User message used with ZT_EVENT_USER_MESSAGE
*/
@ -476,11 +466,6 @@ typedef struct
*/
const char *secretIdentity;
/**
* Node relay policy
*/
enum ZT_RelayPolicy relayPolicy;
/**
* True if some kind of connectivity appears available
*/
@ -1718,15 +1703,6 @@ enum ZT_ResultCode ZT_Node_processVirtualNetworkFrame(
*/
enum ZT_ResultCode ZT_Node_processBackgroundTasks(ZT_Node *node,uint64_t now,volatile uint64_t *nextBackgroundTaskDeadline);
/**
* Set node's relay policy
*
* @param node Node instance
* @param rp New relay policy
* @return OK(0) or error code
*/
enum ZT_ResultCode ZT_Node_setRelayPolicy(ZT_Node *node,enum ZT_RelayPolicy rp);
/**
* Join a network
*