Urdl C++ Library

PrevUpHomeNext
read_stream::open (1 of 2 overloads)

Opens the specified URL.

void open(
    const url & u);

Parameters

u

The URL to open.

Exceptions

boost::system::system_error

Thrown on failure.

Example

urdl::read_stream read_stream(io_service);

try
{
  read_stream.open("http://www.boost.org");
}
catch (boost::system::error_code& e)
{
  std::cerr << e.what() << std::endl;
}

PrevUpHomeNext