2
0
mirror of https://github.com/boostorg/asio.git synced 2026-02-25 14:32:08 +00:00

Fix duplicate variable warning. Use get_io_service() rather than

deprecated io_service() function.


[SVN r48416]
This commit is contained in:
Christopher Kohlhoff
2008-08-28 12:06:42 +00:00
parent 94292f1605
commit 05bf3b8195

View File

@@ -449,7 +449,7 @@ void async_read_until(AsyncReadStream& s,
// Found a match. We're done.
boost::system::error_code ec;
std::size_t bytes = iter - begin + 1;
s.io_service().post(detail::bind_handler(handler, ec, bytes));
s.get_io_service().post(detail::bind_handler(handler, ec, bytes));
return;
}
@@ -457,7 +457,7 @@ void async_read_until(AsyncReadStream& s,
if (b.size() == b.max_size())
{
boost::system::error_code ec(error::not_found);
s.io_service().post(detail::bind_handler(handler, ec, 0));
s.get_io_service().post(detail::bind_handler(handler, ec, 0));
return;
}
@@ -538,8 +538,8 @@ namespace detail
if (streambuf_.size() == streambuf_.max_size())
{
std::size_t bytes = 0;
boost::system::error_code ec(error::not_found);
handler_(ec, bytes);
boost::system::error_code ec2(error::not_found);
handler_(ec2, bytes);
return;
}
@@ -610,7 +610,7 @@ void async_read_until(AsyncReadStream& s,
// Full match. We're done.
boost::system::error_code ec;
std::size_t bytes = result.first - begin + delim.length();
s.io_service().post(detail::bind_handler(handler, ec, bytes));
s.get_io_service().post(detail::bind_handler(handler, ec, bytes));
return;
}
else
@@ -629,7 +629,7 @@ void async_read_until(AsyncReadStream& s,
if (b.size() == b.max_size())
{
boost::system::error_code ec(error::not_found);
s.io_service().post(detail::bind_handler(handler, ec, 0));
s.get_io_service().post(detail::bind_handler(handler, ec, 0));
return;
}
@@ -783,7 +783,7 @@ void async_read_until(AsyncReadStream& s,
// Full match. We're done.
boost::system::error_code ec;
std::size_t bytes = match_results[0].second - begin;
s.io_service().post(detail::bind_handler(handler, ec, bytes));
s.get_io_service().post(detail::bind_handler(handler, ec, bytes));
return;
}
else
@@ -802,7 +802,7 @@ void async_read_until(AsyncReadStream& s,
if (b.size() == b.max_size())
{
boost::system::error_code ec(error::not_found);
s.io_service().post(detail::bind_handler(handler, ec, 0));
s.get_io_service().post(detail::bind_handler(handler, ec, 0));
return;
}
@@ -958,7 +958,7 @@ void async_read_until(AsyncReadStream& s,
// Full match. We're done.
boost::system::error_code ec;
std::size_t bytes = result.first - begin;
s.io_service().post(detail::bind_handler(handler, ec, bytes));
s.get_io_service().post(detail::bind_handler(handler, ec, bytes));
return;
}
else
@@ -977,7 +977,7 @@ void async_read_until(AsyncReadStream& s,
if (b.size() == b.max_size())
{
boost::system::error_code ec(error::not_found);
s.io_service().post(detail::bind_handler(handler, ec, 0));
s.get_io_service().post(detail::bind_handler(handler, ec, 0));
return;
}