hi Ross,

You are correct in your assumptions, I want to know when a CLIENT disconnects 
from the proxy.  I was hoping for a simple solution and I appreciate the help.  
I rather not modify the code unless it makes sense.  I will give that a try, 
thanks again.

Craig

________________________________________
From: live-devel <live-devel-boun...@ns.live555.com> on behalf of Ross 
Finlayson <finlay...@live555.com>
Sent: Friday, August 19, 2016 1:55 PM
To: LIVE555 Streaming Media - development & use
Subject: Re: [Live-devel] Knowing when a client session is cleaned up?

> We are wanting to know when a session is cleaned up.

By “session”, in this case, I assume that you mean a “ClientSession” object 
(which a server uses to keep track of an interaction with a particular client). 
 (Note that we also have “ServerMediaSession” objects (which describe media to 
be streamed, independent of which client(s) may be requesting it) and 
“ClientConnection” objects (which describe a client’s TCP connection to the 
server), and also “MediaSession” objects (which are used by RTSP clients).  So 
you need to be a lot more specific than just saying “session”.)

But, assuming that you meant a “ClientSession” (specifically, a 
“RTSPClientSession”), then you want some ’notification' when a 
“RTSPClientSession” is deleted.  The solution to this is easy: Define your own 
subclass of “RTSPClientSession”, and add this ‘notification’ to its destructor.

If you do this, you will also need to define your own subclass of “RTSPServer”, 
and - in your subclass - redefine the “createNewClientSession()” virtual 
function to create a new object of your “RTSPClientSession” subclass (rather 
than just a new “RTSPClientSession”).

You can do all of this without modifying the supplied source code.  (Remember 
that you can’t expect any support on this mailing list if you modify the 
supplied code.)


Ross Finlayson
Live Networks, Inc.
https://na01.safelinks.protection.outlook.com/?url=http%3a%2f%2fwww.live555.com%2f&data=01%7c01%7ccmatsuura%40vivint.com%7c5e55d11fa16d485fa51c08d3c86c9def%7c54cc98ca024a470185483741e3b8d59d%7c1&sdata=Su1QXFpHlqTXtDFNX9HysKu5ahpqpDYr6eUBqQyEZIE%3d


_______________________________________________
live-devel mailing list
live-devel@lists.live555.com
https://na01.safelinks.protection.outlook.com/?url=http%3a%2f%2flists.live555.com%2fmailman%2flistinfo%2flive-devel&data=01%7c01%7ccmatsuura%40vivint.com%7c5e55d11fa16d485fa51c08d3c86c9def%7c54cc98ca024a470185483741e3b8d59d%7c1&sdata=C9XwEFKrJ0Yuik9D7bBGnEuMEZ%2bTTx4Lv%2fV9vJhB5mA%3d

_______________________________________________
live-devel mailing list
live-devel@lists.live555.com
http://lists.live555.com/mailman/listinfo/live-devel

Reply via email to