[libnice] Detecting the peer has disconnected

Curieux Tres trescurieux at yahoo.fr
Fri Apr 24 04:47:18 PDT 2015

>> I have 2 instances of libnice talking to each other nicely
>> But when one of the instance is killed, the other one is not notified
>> and retries forever to send data.
>> What would be the right way to get that "peer is gone" information ?
>> I've hooked all the signals but they are not invoked in that case
>> (might have made a mistake there).>
>PseudoTcpSocket has supported this since libnice 0.1.8, using its FIN–
>ACK support.
>Make sure PseudoTcpSocket:support-fin-ack is set to TRUE.
>pseudo_tcp_socket_recv() should return 0 when the remote peer has called
>pseudo_tcp_socket_close(). You can also check this using
Thanks for the info, In the case the peer has been killed, i'm not sure that will work, since there will be no response at all (?)

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/nice/attachments/20150424/f17d7b1e/attachment.html>

More information about the nice mailing list