mirror of
https://github.com/XRPLF/rippled.git
synced 2025-11-20 19:15:54 +00:00
Skeleton for accepting cluster messages.
This commit is contained in:
@@ -160,6 +160,7 @@ private:
|
|||||||
void sendHello ();
|
void sendHello ();
|
||||||
|
|
||||||
void recvHello (protocol::TMHello & packet);
|
void recvHello (protocol::TMHello & packet);
|
||||||
|
void recvCluster (protocol::TMCluster & packet);
|
||||||
void recvTransaction (protocol::TMTransaction & packet, ScopedLock & MasterLockHolder);
|
void recvTransaction (protocol::TMTransaction & packet, ScopedLock & MasterLockHolder);
|
||||||
void recvValidation (const boost::shared_ptr<protocol::TMValidation>& packet, ScopedLock & MasterLockHolder);
|
void recvValidation (const boost::shared_ptr<protocol::TMValidation>& packet, ScopedLock & MasterLockHolder);
|
||||||
void recvGetValidation (protocol::TMGetValidations & packet);
|
void recvGetValidation (protocol::TMGetValidations & packet);
|
||||||
@@ -670,6 +671,17 @@ void PeerImp::processReadBuffer ()
|
|||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
case protocol::mtCLUSTER:
|
||||||
|
{
|
||||||
|
event->reName ("PeerImp::cluster");
|
||||||
|
protocol::TMCluster msg;
|
||||||
|
|
||||||
|
if (msg.ParseFromArray (&mReadbuf[PackedMessage::kHeaderBytes], mReadbuf.size () - PackedMessage::kHeaderBytes))
|
||||||
|
recvCluster (msg);
|
||||||
|
else
|
||||||
|
WriteLog (lsWARNING, Peer) << "parse error: " << type;
|
||||||
|
}
|
||||||
|
|
||||||
case protocol::mtERROR_MSG:
|
case protocol::mtERROR_MSG:
|
||||||
{
|
{
|
||||||
event->reName ("PeerImp::errormessage");
|
event->reName ("PeerImp::errormessage");
|
||||||
@@ -1406,6 +1418,11 @@ void PeerImp::recvValidation (const boost::shared_ptr<protocol::TMValidation>& p
|
|||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void PeerImp::recvCluster (protocol::TMCluster& packet)
|
||||||
|
{
|
||||||
|
// WRITEME
|
||||||
|
}
|
||||||
|
|
||||||
void PeerImp::recvGetValidation (protocol::TMGetValidations& packet)
|
void PeerImp::recvGetValidation (protocol::TMGetValidations& packet)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user