diff options
author | Matthias P. Braendli <matthias.braendli@mpb.li> | 2025-03-11 16:48:39 +0100 |
---|---|---|
committer | Matthias P. Braendli <matthias.braendli@mpb.li> | 2025-03-11 16:48:39 +0100 |
commit | 228ec291a58869a19b368a536f3ea0fcd97a57b6 (patch) | |
tree | 957d2be8f67f0fbd6ae70c49e3705061982c8fbf /lib/edioutput/Transport.cpp | |
parent | b2a964b6338466b74d6ef217f7453a1c7c2f72c9 (diff) | |
download | ODR-SourceCompanion-228ec291a58869a19b368a536f3ea0fcd97a57b6.tar.gz ODR-SourceCompanion-228ec291a58869a19b368a536f3ea0fcd97a57b6.tar.bz2 ODR-SourceCompanion-228ec291a58869a19b368a536f3ea0fcd97a57b6.zip |
Update common 5959418next
Diffstat (limited to 'lib/edioutput/Transport.cpp')
-rw-r--r-- | lib/edioutput/Transport.cpp | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/lib/edioutput/Transport.cpp b/lib/edioutput/Transport.cpp index 4979e93..a5e0bc3 100644 --- a/lib/edioutput/Transport.cpp +++ b/lib/edioutput/Transport.cpp @@ -1,5 +1,5 @@ /* - Copyright (C) 2022 + Copyright (C) 2025 Matthias P. Braendli, matthias.braendli@mpb.li http://www.opendigitalradio.org @@ -220,6 +220,20 @@ void Sender::override_pft_sequence(uint16_t pseq) edi_pft.OverridePSeq(pseq); } +std::vector<Sender::stats_t> Sender::get_tcp_server_stats() const +{ + std::vector<Sender::stats_t> stats; + + for (auto& el : tcp_dispatchers) { + Sender::stats_t s; + s.listen_port = el.first->listen_port; + s.stats = el.second->get_stats(); + stats.push_back(s); + } + + return stats; +} + void Sender::run() { while (m_running) { |