Exploring sockets with the new thread class in C++11