diff options
| author | Adam Ierymenko <adam.ierymenko@gmail.com> | 2015-10-20 15:27:53 -0700 |
|---|---|---|
| committer | Adam Ierymenko <adam.ierymenko@gmail.com> | 2015-10-20 15:27:53 -0700 |
| commit | 57e29857cf79019af03f6a3dfe0bf6fd36e2fab2 (patch) | |
| tree | b02b9f21d7a05e6621445cc4cf80f20e257fefb3 /node/Node.hpp | |
| parent | 5e6eae620bec49086e2ad80c119f3386d84092b1 (diff) | |
| download | infinitytier-57e29857cf79019af03f6a3dfe0bf6fd36e2fab2.tar.gz infinitytier-57e29857cf79019af03f6a3dfe0bf6fd36e2fab2.zip | |
Cluster work -- integrating with the rest of the code.
Diffstat (limited to 'node/Node.hpp')
| -rw-r--r-- | node/Node.hpp | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/node/Node.hpp b/node/Node.hpp index c7038ed4..b8bd4dc5 100644 --- a/node/Node.hpp +++ b/node/Node.hpp @@ -110,6 +110,20 @@ public: void setNetconfMaster(void *networkControllerInstance); ZT_ResultCode circuitTestBegin(ZT_CircuitTest *test,void (*reportCallback)(ZT_Node *,ZT_CircuitTest *,const ZT_CircuitTestReport *)); void circuitTestEnd(ZT_CircuitTest *test); + ZT_ResultCode clusterInit( + unsigned int myId, + const struct sockaddr_storage *zeroTierPhysicalEndpoints, + unsigned int numZeroTierPhysicalEndpoints, + int x, + int y, + int z, + void (*sendFunction)(void *,unsigned int,const void *,unsigned int), + void *sendFunctionArg, + int (*addressToLocationFunction)(void *,const struct sockaddr_storage *,int *,int *,int *), + void *addressToLocationFunctionArg); + ZT_ResultCode clusterAddMember(unsigned int memberId); + void clusterRemoveMember(unsigned int memberId); + void clusterHandleIncomingMessage(const void *msg,unsigned int len); // Internal functions ------------------------------------------------------ |
