I sent you a Skype invite. Here is a small overview of things that came to mind. Do have time for Skype today?
Check out the CITP specification from
http://www.citp-protocol.org/viewtopic.php?f=1&t=3
Tools that help
A working example. So have a software that sends a video stream to capture and have capture display it in the model. This is a must!
Use Wireshark to sniff the traffic so you can actually see what you’re sending. https://www.wireshark.org
Add the CITP dissector to wireshark https://github.com/hossimo/CITP-Dissector
Valgrind helps when making building the packets http://valgrind.org
g++ -g program -o && valgrind --tool=memcheck --trace-origins
Tips
Watch out for non standard implementation. For example MagicQ only responded to certain messages and it didn’t use the autofinding feature. Watching the traffic between a working example and your code will help spot these.
2 threads: one for sending Ploc and StFr thru UDP, another one for TCP connections
Work by steps. First get one part working and build on that.
Further resources
https://github.com/jwarwick/citp-lib
https://code.google.com/p/puremediaserver/source/browse/#svn%2Ftrunk https://code.google.com/p/puremediaserver/source/browse/%23svn%2Ftrunk
https://code.google.com/p/libremediaserver/source/browse?repo=video#git%2Fsrc https://code.google.com/p/libremediaserver/source/browse?repo=video%23git%2Fsrc