NAT-trespassing P2P connections using libjingle

The libjingle library provided by Google is a complete toolkit for XMPP/Google Talk communication. A lesser-known feature is the reusability of P2P and NAT trespassing capabilities of libjingle by implementing the ICE procotol, for any signaling protocol other than XMPP.

This document (link updated) (something I am very proud by having helped to write) contains a recipe of how to use libjingle for P2P. It is probably the only public document that describes how to do that. (The libjingle's own documentation is strongly XMPP-biased.)

The Farsight project code already uses libjingle for generic P2P, and the example code of the document is strongly based on that.