OutboundTunnel * TunnelPool::GetNextOutboundTunnel () { return GetNextTunnel (m_OutboundTunnels); }
InboundTunnel * TunnelPool::GetNextInboundTunnel () { return GetNextTunnel (m_InboundTunnels); }
std::shared_ptr<InboundTunnel> TunnelPool::GetNextInboundTunnel (std::shared_ptr<InboundTunnel> excluded) const { std::unique_lock<std::mutex> l(m_InboundTunnelsMutex); return GetNextTunnel (m_InboundTunnels, excluded); }