[libnice] Detecting the peer has disconnected
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–
>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...
More information about the nice