summaryrefslogtreecommitdiff
path: root/node/Cluster.hpp
diff options
context:
space:
mode:
authorAdam Ierymenko <adam.ierymenko@gmail.com>2015-10-20 17:22:53 -0700
committerAdam Ierymenko <adam.ierymenko@gmail.com>2015-10-20 17:22:53 -0700
commitd6dee7bb5ccb4ae1fcf818afc246befc9133be72 (patch)
tree473211838b06c3e508513f60d1aa29cad3a01300 /node/Cluster.hpp
parent35a12b94ea99e0236ff9455209161180d45e8eae (diff)
downloadinfinitytier-d6dee7bb5ccb4ae1fcf818afc246befc9133be72.tar.gz
infinitytier-d6dee7bb5ccb4ae1fcf818afc246befc9133be72.zip
Clustered handling of relaying.
Diffstat (limited to 'node/Cluster.hpp')
-rw-r--r--node/Cluster.hpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/node/Cluster.hpp b/node/Cluster.hpp
index df061c60..60157b15 100644
--- a/node/Cluster.hpp
+++ b/node/Cluster.hpp
@@ -192,6 +192,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
*
* @param peerId Identity of peer that we have