Re: Monitor Client for Connection Changes

Philipp Schafft <[email protected]> Sun, 08 Nov 2015 16:24:52 +0000
Newsgroups gmane.comp.audio.icecast.devel
Organization PH2
Message-ID <[email protected]>
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)

_______________________________________________
Icecast-dev mailing list
[email protected]
http://lists.xiph.org/mailman/listinfo/icecast-dev
signature.asc (application/pgp-signature, 490 B)
-----BEGIN PGP SIGNATURE-----
Comment: Because it's your freedom

iQEcBAABAgAGBQJWP3dTAAoJECiSu/RFvltJpKUH/3bhv8R6B1F4HNhj1D0KrdvU
xpSehlg1P4USUKzF+lAak+zcG6LEaEXpDFqQkOmTfMi4klSZKkSS8d5MJ6qmuLLY
M1NOy37Z6WM+mW8FNYNBK7RVWSjEXGx+0t+BYhPmVNu+GrxG+XpHJwmYfksw4nvj
tBV/1CW/DR0yoO3/T3DAi5nOViltdnRzsAh3a6OvAK9VlGa6boyqfcx/i+4j1HlM
zAFEOp4hhlkZLqW9xovAa2WsGdImcBPo1i2jtGPiute0b5QeqK4XU/FFYm5J3AtK
4hQZ7f07ThXxh2S9x7hJgtmfrV4ls0ppipDk58Jvz5Mb216Tnc17T/xMo3LPL0c=
=fdie
-----END PGP SIGNATURE-----