C++ lib socket