[Nice] public API to get selected pair

Bryce Allen ballen at ci.uchicago.edu
Tue Jan 22 14:03:43 PST 2013


I notice that there is nice_agent_set_selected_pair, but not
get_selected_pair. I would like to use libnice to add ICE support to an
existing UDT application that can't use nice_agent_send and
nice_agent_attach_recv. Re-writing the application to replace UDT with
libnice reliable transport would require lots of work, and the
application needs to continue to work when libnice is not available.

If I can get the selected pair, I can destroy NiceAgent and
immediately bind to the local base address and send to remote, before
any intermediate firewall sessions timeout. UDT sends frequent keep
alives so once the application takes over the bindings will be
maintained.

The only way I can see to do this now is with private API from
agent/component.h. I can get the foundations from the new-selected-pair
signal and call component_find_pair. Is there a better way using public
API? If not would you consider a patch that adds such an API?

Thanks,
Bryce
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 490 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/nice/attachments/20130122/befdb6d9/attachment.pgp>


More information about the nice mailing list