<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word"><div class="im"><div>
<blockquote type="cite"><div dir="ltr"><div>What is the preferred way of terminating an RTSP server connection?<br><br></div>My RTSP server has several connections (clientSessions) and I want to drop some of them.<br></div>
</blockquote><div><br></div></div></div>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??)<div><br></div>
<div>However, you can terminate *all* connections for a given stream by calling</div><div><span style="white-space:pre-wrap"> </span>RTSPServer::closeAllClientSessionsForServerMediaSession()</div><div><br></div><div>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.</div>
</div></blockquote><div><br></div><div>Ok thanks. What about stopGettingFrames in FramedSource? I'll try that one because I have easy access to that object. <br><br></div><div>Is there any documentation I can read about how this works, how objects are linked to each other, how flow goes? A reference manual would also be great.<br>
</div><div><br><br> </div></div></div></div>