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"><<a href="mailto:youness.alaoui@collabora.co.uk">youness.alaoui@collabora.co.uk</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">It'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't save messages sent with the list as<br>
CC instead of TO.. so I don'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've attached to this mail.<br>
It's a bit more complex than a simple "libnice hello world", 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>
> Oh and by the way, I've seen the NiceAgent api page... Although that helped a<br>
> lot in understand what idiomatic libnice uses, it doesn't really establish any<br>
> "connection"...<br>
><br>
> On Thu, Jan 12, 2012 at 5:47 PM, Eduardo Bezerra <<a href="mailto:kdubezerra@gmail.com">kdubezerra@gmail.com</a><br>
</div><div class="im">> <mailto:<a href="mailto:kdubezerra@gmail.com">kdubezerra@gmail.com</a>>> wrote:<br>
><br>
> Hi, I've been studying libnice, and now also glib, since it's build on top<br>
> of it (it definitely feels much better than going with libevent, imho).<br>
> However, I still couldn't figure out what I have to do to make two peers<br>
> talk to each other.<br>
><br>
> Could you guys provide some (link to a) few-lines, minimalistic example<br>
> application that traverses the nat with ice and then communicates with some<br>
> other endpoint? Maybe something like<br>
> 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>
><br>
> Thanks a lot again!<br>
><br>
> Eduardo<br>
><br>
><br>
><br>
><br>
</div>> _______________________________________________<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>
<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>