[Nice] Fw: patch: nice_agent_get_selected_socket

Olivier Crête olivier.crete at collabora.com
Mon Nov 25 17:21:20 PST 2013


Hi,

Thank you, another interesting test to add would be something for the
case where a TURN server is selected, as in that cast, it should also
probably return NULL, because you can't send transparently over
TURN [1].

[1] http://tools.ietf.org/html/rfc5766#section-11.4

Olivier

On Mon, 2013-11-25 at 15:57 -0600, Bryce Allen wrote:
> Patch adds a basic check to test-thread.c. It checks that the return
> value is NULL before negotiation is complete, and non-NULL after. Not
> sure it's worth trying to make a more elaborate test, what do you
> think?
> 
> 
> 
> On Wed, Nov 20, 2013 at 3:48 PM, Olivier Crête
> <olivier.crete at collabora.com> wrote:
>         Hi,
>         
>         I applied your patch, a test would be greatly appreciated.
>         
>         Olivier
>         
>         On Sat, 2013-11-16 at 17:17 -0600, Bryce Allen wrote:
>         > Forgot to CC the list. I'll work on adding a test too, as
>         Rohan
>         > suggested.
>         >
>         > -Bryce
>         >
>         >
>         > Begin forwarded message:
>         >
>         > Date: Thu, 14 Nov 2013 16:35:25 -0600
>         > From: Bryce Allen <ballen at ci.uchicago.edu>
>         > To: Olivier Crête <olivier.crete at collabora.com>
>         > Subject: Re: [Nice] patch: nice_agent_get_selected_socket
>         >
>         >
>         > On Thu, 14 Nov 2013 17:10:58 -0500
>         > Olivier Crête <olivier.crete at collabora.com> wrote:
>         > > I also think returning a GSocket is the right level.
>         > >
>         > > I think you're not the first one to want this. One
>         question, why do
>         > > you just not return a GSocket * or NULL instead of having
>         a separate
>         > > boolean and GSocket** ?
>         > >
>         > I was trying to be consistent with
>         nice_agent_get_selected_pair, but
>         > I guess it's using out variables because it needs to return
>         two
>         > things. Attached is a modified version that returns GSocket
>         *.
>         >
>         > Thanks,
>         > Bryce
>         
>         > _______________________________________________
>         > nice mailing list
>         > nice at lists.freedesktop.org
>         > http://lists.freedesktop.org/mailman/listinfo/nice
>         
>         
>         --
>         Olivier Crête
>         olivier.crete at collabora.com
>         
> 
> 

-- 
Olivier Crête
olivier.crete at collabora.com



More information about the nice mailing list