add json support to getWaitingDiscCount

This commit is contained in:
sehraf 2018-09-07 14:19:06 +02:00
parent be50400114
commit ae14a01d58
No known key found for this signature in database
GPG key ID: DF09F6EAE356B2C6
3 changed files with 28 additions and 8 deletions

View file

@ -71,6 +71,15 @@ class RsDisc
*/
virtual bool getPeerVersion(const RsPeerId &id, std::string &versions) = 0;
/**
* @brief getWaitingDiscCount get the number of queued discovery packets.
* @jsonapi{development}
* @param[out] sendCount number of queued outgoing packets
* @param[out] recvCount number of queued incoming packets
* @return true on success false otherwise
*/
virtual bool getWaitingDiscCount(size_t &sendCount, size_t &recvCount) = 0;
/**
* @brief getWaitingDiscCount get the number of queued discovery packets.
* @param[out] sendCount number of queued outgoing packets