[libnice] nice_agent_recv example

Sudesh Kumar sudeshbks at gmail.com
Mon Jun 30 05:17:55 PDT 2014

I have tried using the nice_agent_recv function in my code, but the problem
is I have to use the peer reflexive candidate as my selected component. As
per the function definition

nice_agent_recv_messages must not be used in combination with
<http://nice.freedesktop.org/libnice/NiceAgent.html#nice-agent-attach-recv> on
the same stream/component pair.

but I can get the peer reflexive candidates only if I attaches the stream's
component's sockets to the Glib Mainloop Context using
gathering the local candidates.

Please help me in advance on how to use the nice_agent_recv() function.

Thanks & Regards,

On Mon, Jun 23, 2014 at 7:12 PM, Sudesh Kumar <sudeshbks at gmail.com> wrote:

> Hi,
> I am new to libnice and I am able to execute the examples provided in the
> package. I can see the nice_agent_attach_recv function is used to read the
> data from connected peer in all the examples and this is a callback
> function.
> I want to use the nice_agent_recv function instead of
> nice_agent_attach_recv, but I am unsure about how to use it.
> Can u please provide me a sample code(possibly editing in
> simple-example.c) on how to use nice_agent_recv function.
> Thanks & Regards,
> Sudesh
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/nice/attachments/20140630/3dabda76/attachment.html>

More information about the nice mailing list