<div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div>&gt;&gt; I would expect, then, to see a way to provide<br>&gt;&gt; that information to libnice, so that the two clients can begin<br>

&gt;&gt; negotiating the best connection method...<br>
</div>&gt;libnice is the one that will do the STUN requests, so you don&#39;t need to do it<br>&gt;yourself, and you don&#39;t need to give the result to libnice.<br>&gt;All you need to do is set the &#39;stun-server&#39; and &#39;stun-server-port&#39; properties on<br>

&gt;the NiceAgent object :<br>
&gt;<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>&gt;Then libnice will do the STUN mechanism when you call the<br>

&gt;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&#39;m starting to get this...</div><div><br></div><div>    td</div><div><br></div>
</div>