Connect is my thesis. You can download the original document in PDF format.
The C++ source code is available here.
Here's a C++ example program.