[Live-devel] Monitoring and stats.
Ross Finlayson
finlayson at live555.com
Thu Oct 7 17:27:15 PDT 2010
>How would one be be able to monitor all clients connected (count,
>IP, Client session), their duration and subSession name say at an
>interval of 10 seconds.
I suggest subclassing "RTSPServer" and "RTSPClientSession". Have
your "RTSPServer" subclass maintain a set of "RTSPClientSession"
(subclass) objects, and iterate through this set periodically. You
can add the fields (metrics) that you want to "RTSPClientSession" by
subclassing it.
> I can put this in the RTSPServer code, but is there a way to call
>this some how without changing the code ?
Yes - by subclassing! That's the proper way to extend the existing
"RTSPServer" code. You should *not* need to modify the supplied code.
--
Ross Finlayson
Live Networks, Inc.
http://www.live555.com/
More information about the live-devel
mailing list