pvasr list client channels

This commit is contained in:
Michael Davidsaver
2017-11-05 17:11:28 -06:00
parent 49173ec884
commit 8d5c27143b
5 changed files with 33 additions and 7 deletions

View File

@@ -1470,6 +1470,15 @@ size_t BlockingServerTCPTransportCodec::getChannelCount() const {
return _channels.size();
}
void BlockingServerTCPTransportCodec::getChannels(std::vector<ServerChannel::shared_pointer>& channels) const
{
Lock lock(_channelsMutex);
for(_channels_t::const_iterator it(_channels.begin()), end(_channels.end());
it!=end; ++it)
{
channels.push_back(it->second);
}
}
void BlockingServerTCPTransportCodec::send(ByteBuffer* buffer,
TransportSendControl* control) {