Good evening,
On Sun, 2015-11-08 at 15:27 +0000, Glenn Cooper wrote:> Hi,
>
>
> I am extending Icecast 2.4.2 and looking to integrate a function to
> monitor client connections in real time.
Again: Everything is easier with 2.5.x. There it's just an event. :)
> Two procedures I?m looking for:
>
>
> 1) Fire event when client has been connected for period of time, say 5
> minutes ? My only solution for this that I have in mind, is to loop
> through all clients on all mount points every minute and manually
> check their connection time, this seems to be an overkill
I thought you where looking for something realtime?
This is in fact not the easiest job to do.
Why you need this?
> 2) Fire event when client?s connection has dropped ? I.e. No longer
> connected (I suspect I can call this event from the client_destroy
> procedure from client.c
The Auth backends already get this event. Have a look at that for a
reference.
Have a nice day!
--
Philipp.
(Rah of PH2)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 490 bytes
Desc: This is a digitally signed message part
Url :
http://lists.xiph.org/pipermail/icecast-dev/attachments/20151108/c28034f3/attachment.pgp