[libnice] How to properly use the function nice_agent_get_io_stream()

Olivier Crête olivier.crete at collabora.com
Sun May 11 08:17:35 PDT 2014

On Sun, 2014-05-11 at 13:40 +0200, silvio wrote:
> Hi
> When I try to connect two machines, they don't connect unless I use
> nice_agent_attach_recv() before they try out candidates. However, I
> think this interferes with nice_agent_get_io_stream() and reading from
> the GIOStream. I can write to the stream but reading gives me the error:
> Stream has outstanding operation.
> How is this properly used? All the examples I can find are done using
> nice_agent_attach_recv().

If you want to use the GIOStream interface, you must start reading from
the GInputStream immediately so that packets are received. The
connection will not happen unless you are reading.

Olivier Crête
olivier.crete at collabora.com

More information about the nice mailing list