c++ socket petition