From 1ca20c1af8f08f07c407c3183c37b467ddf0f413 Mon Sep 17 00:00:00 2001 From: Troy Giorshev Date: Tue, 26 May 2020 16:01:03 -0400 Subject: [PATCH] Add doxygen comment for ReceiveMsgBytes --- src/net.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/net.cpp b/src/net.cpp index 3e015a6810..fdb76d3b83 100644 --- a/src/net.cpp +++ b/src/net.cpp @@ -585,6 +585,16 @@ void CNode::copyStats(CNodeStats &stats, const std::vector &m_asmap) } #undef X +/** + * Receive bytes from the buffer and deserialize them into messages. + * + * @param[in] pch A pointer to the raw data + * @param[in] nBytes Size of the data + * @param[out] complete Set True if at least one message has been + * deserialized and is ready to be processed + * @return True if the peer should stay connected, + * False if the peer should be disconnected from. + */ bool CNode::ReceiveMsgBytes(const char *pch, unsigned int nBytes, bool& complete) { complete = false;