@@ -33,9 +33,9 @@ struct http_async_connection_pimpl : boost::enable_shared_from_this<http_async_c
3333typedef http_async_connection_pimpl this_type;
3434
3535http_async_connection_pimpl (
36- shared_ptr<resolver_delegate> resolver_delegate,
37- shared_ptr<connection_delegate> connection_delegate,
38- asio::io_service & io_service,
36+ boost:: shared_ptr<resolver_delegate> resolver_delegate,
37+ boost:: shared_ptr<connection_delegate> connection_delegate,
38+ boost:: asio::io_service & io_service,
3939bool follow_redirect)
4040 :
4141follow_redirect_ (follow_redirect),
@@ -137,7 +137,7 @@ struct http_async_connection_pimpl : boost::enable_shared_from_this<http_async_c
137137 resolver_iterator iter =boost::begin (endpoint_range);
138138NETWORK_MESSAGE (" trying connection to:"
139139 << iter->endpoint ().address () <<" :" << port);
140- asio::ip::tcp::endpointendpoint (iter->endpoint ().address (), port);
140+ boost:: asio::ip::tcp::endpointendpoint (iter->endpoint ().address (), port);
141141 connection_delegate_->connect (
142142 endpoint,
143143this ->host_ ,
@@ -181,7 +181,7 @@ struct http_async_connection_pimpl : boost::enable_shared_from_this<http_async_c
181181if (!boost::empty (endpoint_range)) {
182182 resolver_iterator iter =boost::begin (endpoint_range);
183183NETWORK_MESSAGE (" trying:" << iter->endpoint ().address () <<" :" << port);
184- asio::ip::tcp::endpointendpoint (iter->endpoint ().address (), port);
184+ boost:: asio::ip::tcp::endpointendpoint (iter->endpoint ().address (), port);
185185 connection_delegate_->connect (endpoint,
186186this ->host_ ,
187187 request_strand_.wrap (
@@ -235,15 +235,15 @@ struct http_async_connection_pimpl : boost::enable_shared_from_this<http_async_c
235235static long short_read_error =335544539 ;
236236bool is_short_read_error =
237237#ifdef NETWORK_ENABLE_HTTPS
238- ec.category () == asio::error::ssl_category &&
238+ ec.category () ==boost:: asio::error::ssl_category &&
239239 ec.value () == short_read_error
240240#else
241241false
242242#endif
243243 ;
244244if (!ec || ec == boost::asio::error::eof || is_short_read_error) {
245245NETWORK_MESSAGE (" processing data chunk, no error encountered so far..." );
246- logic::tribool parsed_ok;
246+ boost:: logic::tribool parsed_ok;
247247size_t remainder;
248248switch (state) {
249249case version:
@@ -291,7 +291,7 @@ struct http_async_connection_pimpl : boost::enable_shared_from_this<http_async_c
291291// in the buffer. We need this in the body processing to make sure
292292// that the data remaining in the buffer is dealt with before
293293// another call to get more data for the body is scheduled.
294- fusion::tie (parsed_ok, remainder) =
294+ boost:: fusion::tie (parsed_ok, remainder) =
295295this ->parse_headers (
296296 request_strand_.wrap (
297297boost::bind (
@@ -511,17 +511,17 @@ struct http_async_connection_pimpl : boost::enable_shared_from_this<http_async_c
511511 }
512512 };
513513
514- logic::triboolparse_version (
515- function<void (system::error_code,size_t )> callback,
514+ boost:: logic::triboolparse_version (
515+ boost:: function<void (boost:: system::error_code,size_t )> callback,
516516 size_t bytes) {
517- logic::tribool parsed_ok;
517+ boost:: logic::tribool parsed_ok;
518518 part_begin = part.begin ();
519519 buffer_type::const_iterator part_end = part.begin ();
520520std::advance (part_end, bytes);
521521 boost::iterator_range<buffer_type::const_iterator>
522522 result_range,
523523 input_range =boost::make_iterator_range (part_begin, part_end);
524- fusion::tie (parsed_ok, result_range) = response_parser_.parse_until (
524+ boost:: fusion::tie (parsed_ok, result_range) = response_parser_.parse_until (
525525 response_parser::http_version_done,
526526 input_range);
527527if (parsed_ok ==true ) {
@@ -566,16 +566,16 @@ struct http_async_connection_pimpl : boost::enable_shared_from_this<http_async_c
566566return parsed_ok;
567567 }
568568
569- logic::triboolparse_status (
570- function<void (system::error_code,size_t )> callback,
569+ boost:: logic::triboolparse_status (
570+ boost:: function<void (boost:: system::error_code,size_t )> callback,
571571 size_t bytes) {
572- logic::tribool parsed_ok;
572+ boost:: logic::tribool parsed_ok;
573573 buffer_type::const_iterator part_end = part.begin ();
574574std::advance (part_end, bytes);
575575 boost::iterator_range< buffer_type::const_iterator>
576576 result_range,
577577 input_range =boost::make_iterator_range (part_begin, part_end);
578- fusion::tie (parsed_ok, result_range) = response_parser_.parse_until (
578+ boost:: fusion::tie (parsed_ok, result_range) = response_parser_.parse_until (
579579 response_parser::http_status_done,
580580 input_range);
581581if (parsed_ok ==true ) {
@@ -621,16 +621,16 @@ struct http_async_connection_pimpl : boost::enable_shared_from_this<http_async_c
621621return parsed_ok;
622622 }
623623
624- logic::triboolparse_status_message (
625- function<void (system::error_code,size_t )> callback,
624+ boost:: logic::triboolparse_status_message (
625+ boost:: function<void (boost:: system::error_code,size_t )> callback,
626626 size_t bytes) {
627- logic::tribool parsed_ok;
627+ boost:: logic::tribool parsed_ok;
628628 buffer_type::const_iterator part_end = part.begin ();
629629std::advance (part_end, bytes);
630630 boost::iterator_range< buffer_type::const_iterator>
631631 result_range,
632632 input_range =boost::make_iterator_range (part_begin, part_end);
633- fusion::tie (parsed_ok, result_range) = response_parser_.parse_until (
633+ boost:: fusion::tie (parsed_ok, result_range) = response_parser_.parse_until (
634634 response_parser::http_status_message_done,
635635 input_range);
636636if (parsed_ok ==true ) {
@@ -676,13 +676,13 @@ struct http_async_connection_pimpl : boost::enable_shared_from_this<http_async_c
676676 boost::iterator_range< std::string::const_iterator>
677677 input_range =boost::make_iterator_range (headers_part)
678678 , result_range;
679- logic::tribool parsed_ok;
679+ boost:: logic::tribool parsed_ok;
680680 response_parserheaders_parser (
681681 response_parser::http_header_line_done);
682682 std::multimap<std::string, std::string> headers;
683683 std::pair<std::string,std::string> header_pair;
684684while (!boost::empty (input_range)) {
685- fusion::tie (parsed_ok, result_range) =
685+ boost:: fusion::tie (parsed_ok, result_range) =
686686 headers_parser.parse_until (
687687 response_parser::http_header_colon,
688688 input_range);
@@ -692,7 +692,7 @@ struct http_async_connection_pimpl : boost::enable_shared_from_this<http_async_c
692692 header_pair.first =std::string (boost::begin (result_range),
693693boost::end (result_range));
694694 input_range.advance_begin (boost::distance (result_range));
695- fusion::tie (parsed_ok, result_range) =
695+ boost:: fusion::tie (parsed_ok, result_range) =
696696 headers_parser.parse_until (
697697 response_parser::http_header_line_done,
698698 input_range);
@@ -712,16 +712,16 @@ struct http_async_connection_pimpl : boost::enable_shared_from_this<http_async_c
712712 headers_promise.set_value (headers);
713713 }
714714
715- fusion::tuple<logic::tribool,size_t >parse_headers (
716- function<void (system::error_code,size_t )> callback,
715+ boost:: fusion::tuple<boost:: logic::tribool,size_t >parse_headers (
716+ boost:: function<void (boost:: system::error_code,size_t )> callback,
717717 size_t bytes) {
718- logic::tribool parsed_ok;
718+ boost:: logic::tribool parsed_ok;
719719 buffer_type::const_iterator part_end = part.begin ();
720720std::advance (part_end, bytes);
721721 boost::iterator_range<buffer_type::const_iterator>
722722 result_range,
723723 input_range =boost::make_iterator_range (part_begin, part_end);
724- fusion::tie (parsed_ok, result_range) = response_parser_.parse_until (
724+ boost:: fusion::tie (parsed_ok, result_range) = response_parser_.parse_until (
725725 response_parser::http_headers_done,
726726 input_range);
727727if (parsed_ok ==true ) {
@@ -759,7 +759,7 @@ struct http_async_connection_pimpl : boost::enable_shared_from_this<http_async_c
759759 callback
760760 );
761761 }
762- return fusion::make_tuple (
762+ return boost:: fusion::make_tuple (
763763 parsed_ok,
764764std::distance (
765765boost::end (result_range)
@@ -768,7 +768,7 @@ struct http_async_connection_pimpl : boost::enable_shared_from_this<http_async_c
768768 );
769769 }
770770
771- void parse_body (function<void (system::error_code,size_t )> callback, size_t bytes) {
771+ void parse_body (boost:: function<void (boost:: system::error_code,size_t )> callback, size_t bytes) {
772772// TODO: we should really not use a string for the partial body
773773// buffer.
774774 partial_parsed.append (part_begin, bytes);
@@ -781,8 +781,8 @@ struct http_async_connection_pimpl : boost::enable_shared_from_this<http_async_c
781781
782782bool follow_redirect_;
783783 boost::asio::io_service::strand request_strand_;
784- shared_ptr<resolver_delegate> resolver_delegate_;
785- shared_ptr<connection_delegate> connection_delegate_;
784+ boost:: shared_ptr<resolver_delegate> resolver_delegate_;
785+ boost:: shared_ptr<connection_delegate> connection_delegate_;
786786 boost::asio::streambuf command_streambuf;
787787 std::string method;
788788 response_parser response_parser_;
@@ -802,22 +802,22 @@ struct http_async_connection_pimpl : boost::enable_shared_from_this<http_async_c
802802
803803// END OF PIMPL DEFINITION
804804
805- http_async_connection::http_async_connection (shared_ptr<resolver_delegate> resolver_delegate,
806- shared_ptr<connection_delegate> connection_delegate,
807- asio::io_service & io_service,
805+ http_async_connection::http_async_connection (boost:: shared_ptr<resolver_delegate> resolver_delegate,
806+ boost:: shared_ptr<connection_delegate> connection_delegate,
807+ boost:: asio::io_service & io_service,
808808bool follow_redirects)
809809: pimpl(new (std::nothrow) http_async_connection_pimpl(resolver_delegate,
810810 connection_delegate,
811811 io_service,
812812 follow_redirects)) {}
813813
814- http_async_connection::http_async_connection (shared_ptr<http_async_connection_pimpl> new_pimpl)
814+ http_async_connection::http_async_connection (boost:: shared_ptr<http_async_connection_pimpl> new_pimpl)
815815: pimpl(new_pimpl) {}
816816
817817http_async_connection::~http_async_connection () {}
818818
819819http_async_connection *http_async_connection::clone ()const {
820- shared_ptr<http_async_connection_pimpl>new_pimpl (pimpl->clone ());
820+ boost:: shared_ptr<http_async_connection_pimpl>new_pimpl (pimpl->clone ());
821821return new (std::nothrow)http_async_connection (new_pimpl);
822822}
823823