Ok, I'm now successfully iterating over the ClientConnections and ClientSessions, how can I get the amount of data transmitted to each of these?
If this is documented somewhere, then a pointer to that would be appreciated. Thanks again Andy From: live-devel <live-devel-boun...@us.live555.com> on behalf of Ross Finlayson <finlay...@live555.com> Sent: 07 November 2023 04:23 To: LIVE555 Streaming Media - development & use <live-de...@us.live555.com> Subject: Re: [Live-devel] Retrieving stats for ProxyServerMediaSession > On Nov 6, 2023, at 6:44 AM, Andy Hawkins <andy.hawk...@uniguest.com> wrote: > > Hi, > > Thanks for the pointer, that was useful in extracting the incoming data for > the proxied RTSP connection. > > Is there any way to iterate over all of the clients of an RTSP proxy Yes, first download the latest version (2023.11.07) of the “LIVE555 Streaming Media” code, which makes “fClientSessions” ‘protected’ rather than ‘private’. Then, in your subclass of “RTSPServer”, you can do something like the following: HashTable::Iterator* iter = HashTable::Iterator::create(*fClientSessions); RTSPServer::RTSPClientSession* clientSession; char const* key; // dummy while ((clientSession = (RTSPServer::RTSPClientSession*)(iter->next(key))) != NULL) { // do something with clientSession } delete iter; Of course, if you’ve subclassed "RTSPServer::RTSPClientSession”, then you should use your subclass name instead. Ross Finlayson Live Networks, Inc. http://www.live555.com/ _______________________________________________ live-devel mailing list live-devel@lists.live555.com http://lists.live555.com/mailman/listinfo/live-devel _______________________________________________ live-devel mailing list live-devel@lists.live555.com http://lists.live555.com/mailman/listinfo/live-devel