[libnice] "candidate-gathering-done" is never fired with STUN

ND spam_me_please at gmx.net
Thu Oct 30 11:07:41 PDT 2014


Perfect! Sorry for my misinterpretation, I did not use glib before...

Thank you a lot!
Niko


Am 30.10.2014 18:27, schrieb Philip Withnall:
> Aha! For GMainContexts, by convention, NULL means the global default
> GMainContext — the same one as returned by g_main_context_default().
>
> I’ve expanded the documentation a little to make this more obvious. Do
> you think it’s more helpful now?
>
> http://cgit.freedesktop.org/libnice/libnice/commit/?id=3528654e7d2082d5bdda1e6f47357105f91af68c
>
> Philip
>
> On Thu, 2014-10-30 at 17:13 +0100, ND wrote:
>> Ah, I see. I was using the online basic usage example of NiceAgent
>> (link) as a reference. Maybe it should be updated to show that a main
>> loop IS required? I assumed it was optional because there NULL is
>> passed in.
>>
>> Regards
>> ~
>>
>>
>> Am 30.10.2014 09:48, schrieb Philip Withnall:
>>
>>> On Wed, 2014-10-29 at 15:15 +0100, ND wrote:
>>>> I try to use libnice as a callable object, so my agent has no GMainLoop
>>>> and uses a mutex to wait for the candidate-gathering-done signal. As it
>>>> never comes my application is stuck :/ See the relevant code below:
>>> That’s your problem. libnice *requires* a GMainLoop to run, otherwise
>>> none of its timers will fire, which are a core part of the ICE process.
>>>
>>> Philip
>>
>>
>>
>> ______________________________________________________________________
>>
>> Diese E-Mail ist frei von Viren und
>> Malware, denn der avast! Antivirus
>> Schutz ist aktiv.
>>
>>
>>
>
>
> _______________________________________________
> nice mailing list
> nice at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/nice



---
Diese E-Mail ist frei von Viren und Malware, denn der avast! Antivirus Schutz ist aktiv.
http://www.avast.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/nice/attachments/20141030/c90d5d5a/attachment-0001.html>


More information about the nice mailing list