Clustered handling of relaying.
This commit is contained in:
parent
35a12b94ea
commit
d6dee7bb5c
3 changed files with 69 additions and 1 deletions
|
@ -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
|
||||
*
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue