Urdl C++ Library

PrevUpHomeNext
read_stream::open (2 of 2 overloads)

Opens the specified URL.

boost::system::error_code open(
    const url & u,
    boost::system::error_code & ec);

Parameters

u

The URL to open.

ec

Set to indicate what error occurred, if any.

Return Value

ec.

Example

urdl::read_stream read_stream(io_service);

boost::system::error_code ec;
read_stream.open("http://www.boost.org", ec);
if (ec)
{
  std::cerr << ec.message() << std::endl;
}

PrevUpHomeNext