Hi,<div><br></div><div>thanks Youness for sharing. My application has evolved into a more complex one, with some other features.</div><div>Anyway, if you need any explanation for these examples, I can do my best.</div><div>

<br></div><div>Regards,</div><div>Tiago Sá<br><br><div class="gmail_quote">On Thu, Jan 12, 2012 at 9:24 PM, Youness Alaoui <span dir="ltr">&lt;<a href="mailto:youness.alaoui@collabora.co.uk">youness.alaoui@collabora.co.uk</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">It&#39;s a question that I get often. I hope to get some time to write a proper<br>
tutorial with some example code, in the meantime, I suggest reading old threads<br>
on this mailing list.<br>
Here is one thread specifically about starting with libnice which explains how<br>
to do, what the usual bugs/misconceptions are and some sample code is also shared :<br>
<a href="http://lists.freedesktop.org/archives/nice/2011-October/000442.html" target="_blank">http://lists.freedesktop.org/archives/nice/2011-October/000442.html</a><br>
<a href="http://lists.freedesktop.org/archives/nice/2011-October/000443.html" target="_blank">http://lists.freedesktop.org/archives/nice/2011-October/000443.html</a><br>
<a href="http://lists.freedesktop.org/archives/nice/2011-November/000449.html" target="_blank">http://lists.freedesktop.org/archives/nice/2011-November/000449.html</a><br>
<a href="http://lists.freedesktop.org/archives/nice/2011-November/000451.html" target="_blank">http://lists.freedesktop.org/archives/nice/2011-November/000451.html</a><br>
<a href="http://lists.freedesktop.org/archives/nice/2011-November/000456.html" target="_blank">http://lists.freedesktop.org/archives/nice/2011-November/000456.html</a><br>
<a href="http://lists.freedesktop.org/archives/nice/2011-November/000458.html" target="_blank">http://lists.freedesktop.org/archives/nice/2011-November/000458.html</a><br>
<a href="http://lists.freedesktop.org/archives/nice/2011-December/000467.html" target="_blank">http://lists.freedesktop.org/archives/nice/2011-December/000467.html</a><br>
<a href="http://lists.freedesktop.org/archives/nice/2011-December/000469.html" target="_blank">http://lists.freedesktop.org/archives/nice/2011-December/000469.html</a><br>
<br>
For some reason, the list archives doesn&#39;t save messages sent with the list as<br>
CC instead of TO.. so I don&#39;t have the messages from Tiago, but you can read<br>
them inlined in my own answers to him.<br>
In one of his mails he sent a sample program which I&#39;ve attached to this mail.<br>
It&#39;s a bit more complex than a simple &quot;libnice hello world&quot;, but it should give<br>
you an idea on how to use the API in a real life example.<br>
<br>
Let me know if you have any further questions.<br>
Youness.<br>
<div class="im"><br>
On 01/12/2012 11:49 AM, Eduardo Bezerra wrote:<br>
&gt; Oh and by the way, I&#39;ve seen the NiceAgent api page... Although that helped a<br>
&gt; lot in understand what idiomatic libnice uses, it doesn&#39;t really establish any<br>
&gt; &quot;connection&quot;...<br>
&gt;<br>
&gt; On Thu, Jan 12, 2012 at 5:47 PM, Eduardo Bezerra &lt;<a href="mailto:kdubezerra@gmail.com">kdubezerra@gmail.com</a><br>
</div><div class="im">&gt; &lt;mailto:<a href="mailto:kdubezerra@gmail.com">kdubezerra@gmail.com</a>&gt;&gt; wrote:<br>
&gt;<br>
&gt;     Hi, I&#39;ve been studying libnice, and now also glib, since it&#39;s build on top<br>
&gt;     of it (it definitely feels much better than going with libevent, imho).<br>
&gt;     However, I still couldn&#39;t figure out what I have to do to make two peers<br>
&gt;     talk to each other.<br>
&gt;<br>
&gt;     Could you guys provide some (link to a) few-lines, minimalistic example<br>
&gt;     application that traverses the nat with ice and then communicates with some<br>
&gt;     other endpoint? Maybe something like<br>
&gt;     this? <a href="http://content.gpwiki.org/index.php/SDL:Tutorial:Using_SDL_net" target="_blank">http://content.gpwiki.org/index.php/SDL:Tutorial:Using_SDL_net</a><br>
&gt;<br>
&gt;     Thanks a lot again!<br>
&gt;<br>
&gt;     Eduardo<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
</div>&gt; _______________________________________________<br>
&gt; Nice mailing list<br>
&gt; <a href="mailto:Nice@lists.freedesktop.org">Nice@lists.freedesktop.org</a><br>
&gt; <a href="http://lists.freedesktop.org/mailman/listinfo/nice" target="_blank">http://lists.freedesktop.org/mailman/listinfo/nice</a><br>
<br>
<br>_______________________________________________<br>
Nice mailing list<br>
<a href="mailto:Nice@lists.freedesktop.org">Nice@lists.freedesktop.org</a><br>
<a href="http://lists.freedesktop.org/mailman/listinfo/nice" target="_blank">http://lists.freedesktop.org/mailman/listinfo/nice</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br>Tiago Sá<br>Universidade do Minho, Braga - Portugal<div><img src="http://wac.2659.edgecastcdn.net/802659/production80/images/icons/favicon.ico"> <a href="http://www.tiagosa.com" target="_blank">www.tiagosa.com</a><br>

</div><br>
</div>