If you are going to communicate from
a Javascript to a C++ program using sockets from a browser, it may not work because of the security restrictions in the browser. I tried a similar technique
using Java and it failed in the past. Most probably this will fail in this scenario
too..
Tom