feat: Add interactive controller button to print connected peers

This commit is contained in:
Alexey Rybalchenko
2021-10-13 22:05:36 +02:00
parent fda8126a43
commit ebcbe2dde6
5 changed files with 31 additions and 2 deletions

View File

@@ -327,6 +327,14 @@ class Device
throw;
}
/// @brief Get numbers of connected peers for the given channel
/// @param name channel name
/// @param index sub-channel
unsigned long GetNumberOfConnectedPeers(const std::string& channelName, int index = 0)
{
return fChannels.at(channelName).at(index).GetNumberOfConnectedPeers();
}
virtual void RegisterChannelEndpoints() {}
bool RegisterChannelEndpoint(const std::string& channelName,