TCP test using C++ with Qt