[libnice] how to detect and handle closed connections

Olivier Crête olivier.crete at collabora.com
Tue Mar 21 03:52:40 UTC 2017


Hi,
This is not exactly according to the RFC, but you can set the
"conncheck-keepalive" to TRUE on the agent, and then you can wait for
the "component-state-changed" signal and it will say "failed".
Olivier

On Mon, 2017-03-20 at 12:32 -0500, Matt Pekar wrote:
> I'm using libnice elements on one end of a Webrtc session and Chrome
> on the other.  I'm doing what I can in Chrome to handle page closes
> and gracefully end NICE sessions in the signaling layer, but I'd like
> to make sure if the signaling layer fails I can have libnice cleanup.
> In the API the closest thing I can see is
> nice_agent_get_component_state(), but it seems to continue to return
> "ready" as the state even after Chrome closes.  
> 
> Is there a means in libnice to detect ICE peers closing?
> 
> 
> 
> _______________________________________________
> nice mailing list
> nice at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/nice
-- 
Olivier Crête
olivier.crete at collabora.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/nice/attachments/20170320/eae4bcbb/attachment.html>


More information about the nice mailing list