void open(const std::string& url) { Socket s = new Socket(); if ( validUrl(url) ) { s.open(url, 80); } string data = s.read(); }