[Nice] Starting with libnice

Tiago Sá tiagosa at di.uminho.pt
Thu Nov 3 09:57:47 PDT 2011


Hi Youness,

I have been trying to create a simple application based on the first link
you pointed before.
Thanks for the tips you gave me. I have a couple of questions though, if
you can help me.

I need to find a way to get the remote candidates passed from a peer to
another.
Can you point an easy way to do that?
Could I hardcode the remote candidates list, for testing purposes?

Right now, I only get two local candidates (HOST and SERVER_REFLEXIVE).
I am trying to use the numb TURN server, shouldn't I get a RELAYED
candidate too?

I am attaching the code. Can you please have a look at the code and check
where the error could be?

Thanks for helping!

Regards,
Tiago Sá


On Wed, Oct 19, 2011 at 10:53 PM, Youness Alaoui <
youness.alaoui at collabora.co.uk> wrote:

> Hi,
>
> Welcome to the world of libnice :)
> Yes, doing NAT traversal is far from being easy, the only solution is
> pretty
> much to use the ICE specification and that's not easy to implement, so
> that's
> why you'd need to use libnice.
>
> For an example, you can have a look at the unit tests, like
> tests/test-fullmode.c for example, although that does a lot of stuff. You
> can
> see a quick example  in the documentation for NiceAgent :
> http://nice.freedesktop.org/libnice/NiceAgent.html
>
> For smaller examples, you can look at the libnice mailing list archives,
> some
> people posted their example code where they were having problems. For
> example, a
> very simple example can be seen here :
> http://lists.freedesktop.org/archives/nice/2011-January/000404.html
> But make sure to click on the "Next message" to read the whole thread
> because
> that example had a bug that I explained how to fix in the following emails.
> Same for this thread :
> http://lists.freedesktop.org/archives/nice/2011-October/000434.html
>
> I hope that helps,
> Youness.
>
> On 10/19/2011 09:58 AM, Tiago Sá wrote:
> > Hi all,
> >
> > my name is Tiago Sá, I am a junior researcher from Portugal and this is
> my first
> > mail to this list.
> > I have a NAT traversal problem to solve and I have been looking for a
> solution
> > during the last weeks, which, as I found out, is not so trivial as I
> thought before.
> > As stated on the libnice homepage, libnice seems to be what I am looking
> for:
> >
> >     "ICE is useful for applications that want to establish peer-to-peer
> UDP data
> >     streams. It automates the process of traversing NATs and provides
> security
> >     against some attacks. It also allows applications to create reliable
> streams
> >     using a TCP over UDP layer."
> >
> >
> > I have been looking for the provided documentation and I am feeling kind
> of lost.
> > Is there any example application or tutorial to get started?
> > Could you please share a basic application of this kind or point me a
> direction?
> >
> >
> > Thanks in advance for your help.
> >
> > Regards,
> > Tiago Sá
> >
> > --
> > Tiago Sá
> > Universidade do Minho, Braga - Portugal
> >
> >  http://about.me/tiagosa/
> >
> >
> >
> > _______________________________________________
> > Nice mailing list
> > Nice at lists.freedesktop.org
> > http://lists.freedesktop.org/mailman/listinfo/nice
>
>
>
> _______________________________________________
> Nice mailing list
> Nice at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/nice
>
>


-- 
Tiago Sá
Universidade do Minho, Braga - Portugal
 www.tiagosa.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/nice/attachments/20111103/b37eac3a/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: client.c
Type: text/x-csrc
Size: 4331 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/nice/attachments/20111103/b37eac3a/attachment.c>


More information about the Nice mailing list