[Live-devel] How do I gracefully disconnect all clients?

jared-555 at jaredrobinson.com jared-555 at jaredrobinson.com
Thu Aug 30 15:30:18 PDT 2018


Thanks. Using the iterator worked.

On 2018-08-28 19:37, Ross Finlayson wrote:
> You call
> “GenericMediaServer::closeAllClientSessionsForServerMediaSession()”;
> see “liveMedia/include/GenericMediaServer.hh"; lines 55-59.
> 
> If you want to do this for *all* of the server’s “ServerMediaSession”
> objects, rather than just one, then you’d create a
> “ServerMediaSessionIterator”, to iterate over all of the
> “ServerMediaSession” objects, and call
> "closeAllClientSessionsForServerMediaSession()” on each one.


More information about the live-devel mailing list