Skip to content

Commit 1ca20c1

Browse files
committed
Add doxygen comment for ReceiveMsgBytes
1 parent 890b1d7 commit 1ca20c1

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

src/net.cpp

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -585,6 +585,16 @@ void CNode::copyStats(CNodeStats &stats, const std::vector<bool> &m_asmap)
585585
}
586586
#undef X
587587

588+
/**
589+
* Receive bytes from the buffer and deserialize them into messages.
590+
*
591+
* @param[in] pch A pointer to the raw data
592+
* @param[in] nBytes Size of the data
593+
* @param[out] complete Set True if at least one message has been
594+
* deserialized and is ready to be processed
595+
* @return True if the peer should stay connected,
596+
* False if the peer should be disconnected from.
597+
*/
588598
bool CNode::ReceiveMsgBytes(const char *pch, unsigned int nBytes, bool& complete)
589599
{
590600
complete = false;

0 commit comments

Comments
 (0)