boost::asio::ip::tcp::iostream stream;
stream.expires_from_now(boost::posix_time::seconds(60));
stream.connect("sitename","http");
SOME REQUeST
stream.flush();
///////////////// New request to the different site
stream.connect("another site","http");
somthink here
stream.flush();
I think i need to close connect , but i dont know how to do this.
You are looking for the member function
.close ()of the stream object, after closing the stream you are free to connect it elsewhere.Documentation: