[Live-devel] What is the preferred way of terminating an RTSP server connection

Ross Finlayson finlayson at live555.com
Thu Nov 21 08:15:42 PST 2013


> What is the preferred way of terminating an RTSP server connection?
> 
> My RTSP server has several connections (clientSessions) and I want to drop some of them.

There's no easy way to terminate (from the server) just 'some' connections.  (What criterion would you use to decide which connections you want to terminate??)

However, you can terminate *all* connections for a given stream by calling
	RTSPServer::closeAllClientSessionsForServerMediaSession()

Plus, of course, if you delete the entire "RTSPServer" object - by calling "Medium::close(pointer-to-your-RTSPServer-object);" - then *all* connections to the server (and all resources used by the server) will be reclaimed.


Ross Finlayson
Live Networks, Inc.
http://www.live555.com/

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.live555.com/pipermail/live-devel/attachments/20131121/d0942ff1/attachment.html>


More information about the live-devel mailing list