Clustered handling of relaying.

This commit is contained in:
Adam Ierymenko 2015-10-20 17:22:53 -07:00
parent 35a12b94ea
commit d6dee7bb5c
3 changed files with 69 additions and 1 deletions

View file

@ -191,6 +191,17 @@ public:
*/
void handleIncomingStateMessage(const void *msg,unsigned int len);
/**
* Send this packet via another node in this cluster if another node has this peer
*
* @param fromPeerAddress Source peer address (if known, should be NULL for fragments)
* @param toPeerAddress Destination peer address
* @param data Packet or packet fragment data
* @param len Length of packet or fragment
* @return True if this data was sent via another cluster member, false if none have this peer
*/
bool sendViaCluster(const Address &fromPeerAddress,const Address &toPeerAddress,const void *data,unsigned int len);
/**
* Advertise to the cluster that we have this peer
*