<div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div>>> I would expect, then, to see a way to provide<br>>> that information to libnice, so that the two clients can begin<br>
>> negotiating the best connection method...<br>
</div>>libnice is the one that will do the STUN requests, so you don't need to do it<br>>yourself, and you don't need to give the result to libnice.<br>>All you need to do is set the 'stun-server' and 'stun-server-port' properties on<br>
>the NiceAgent object :<br>
><a href="http://nice.freedesktop.org/libnice/NiceAgent.html#NiceAgent--stun-server" target="_blank">http://nice.freedesktop.org/libnice/NiceAgent.html#NiceAgent--stun-server</a><br>>Then libnice will do the STUN mechanism when you call the<br>
>nice_agent_gather_candidates() method<br></blockquote><div><br></div><div>Ok, so I can use nice_agent_get_local_candidates() to acquire a GSList* of local connection type candidates. I then transmit this to the other agent who probably does a nice_agent_set_remote_candidates() with that data (also, he acquired his local candidates, sent them to me, and I called nice_agent_set_remote_candidates() on those).</div>
<div><br></div><div>Now all I need to know is how you serialize whatever data is returned in that GSList*, so I can transmit it. :) I think I'm starting to get this...</div><div><br></div><div> td</div><div><br></div>
</div>