Skip to content

Commit ef20063

Browse files
committed
Replace boost/asio.hpp header with specific ones.
1 parent 3522db6 commit ef20063

File tree

11 files changed

+19
-10
lines changed

11 files changed

+19
-10
lines changed

boost/network/protocol/http/client.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
#include <boost/network/protocol/http/response.hpp>
1313
#include <boost/network/protocol/http/request.hpp>
1414
#include <boost/network/protocol/http/traits/connection_policy.hpp>
15-
#include <boost/asio.hpp>
15+
#include <boost/asio/io_service.hpp>
1616
#include <boost/lexical_cast.hpp>
1717
#include <boost/algorithm/string/classification.hpp>
1818
#include <boost/algorithm/string/split.hpp>

boost/network/protocol/http/connection.hpp

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,12 @@
1717
#include <boost/network/protocol/http/request.hpp>
1818
#include <boost/network/protocol/http/header.hpp>
1919
#include <boost/network/protocol/http/response.hpp>
20-
#include <boost/asio.hpp>
20+
#include <boost/asio/ip/tcp.hpp>
21+
#include <boost/asio/buffer.hpp>
22+
#include <boost/asio/write.hpp>
23+
#include <boost/asio/read.hpp>
24+
#include <boost/asio/strand.hpp>
25+
#include <boost/asio/placeholders.hpp>
2126
#include <boost/array.hpp>
2227
#include <boost/lexical_cast.hpp>
2328
#include <boost/algorithm/string/case_conv.hpp>

boost/network/protocol/http/detail/connection_helper.hpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
#include <boost/network/version.hpp>
1010
#include <boost/foreach.hpp>
1111
#include <boost/network/protocol/http/traits/connection_keepalive.hpp>
12+
#include <boost/asio/streambuf.hpp>
1213

1314
namespace boost { namespace network { namespace http { namespace detail {
1415

boost/network/protocol/http/impl/response.ipp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
#ifndef BOOST_NETWORK_PROTOCOL_HTTP_IMPL_RESPONSE_RESPONSE_IPP
1818
#define BOOST_NETWORK_PROTOCOL_HTTP_IMPL_RESPONSE_RESPONSE_IPP
1919

20-
#include <boost/asio.hpp>
20+
#include <boost/asio/buffer.hpp>
2121
#include <boost/lexical_cast.hpp>
2222
#include <boost/network/traits/string.hpp>
2323
#include <boost/network/traits/vector.hpp>

boost/network/protocol/http/impl/sync_connection_base.hpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@
1111
#include <boost/network/traits/ostringstream.hpp>
1212
#include <boost/network/traits/istringstream.hpp>
1313
#include <boost/asio/ssl.hpp>
14+
#include <boost/asio/streambuf.hpp>
15+
#include <boost/asio/read.hpp>
16+
#include <boost/asio/read_until.hpp>
1417
#include <boost/tuple/tuple.hpp>
1518

1619
namespace boost { namespace network { namespace http { namespace impl {

boost/network/protocol/http/policies/sync_resolver.hpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
// http://www.boost.org/LICENSE_1_0.txt)
88

99
#include <utility>
10-
#include <boost/asio.hpp>
1110
#include <boost/network/protocol/http/traits/resolver.hpp>
1211
#include <boost/fusion/adapted/std_pair.hpp>
1312

boost/network/protocol/http/server.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
#include <boost/shared_ptr.hpp>
1313
#include <boost/bind.hpp>
1414
#include <string>
15-
#include <boost/asio.hpp>
15+
#include <boost/asio/ip/tcp.hpp>
1616
#include <boost/network/protocol/http/connection.hpp>
1717

1818
namespace boost { namespace network { namespace http {

boost/network/protocol/http/traits/resolver.hpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@
77
// http://www.boost.org/LICENSE_1_0.txt)
88

99
#include <boost/network/tags.hpp>
10+
#include <boost/asio/ip/tcp.hpp>
11+
#include <boost/asio/ip/udp.hpp>
1012

1113
namespace boost { namespace network { namespace http {
1214

libs/network/doc/network.qbk

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
[/
2-
(C) Copyright 2008, 2009 Glyn Matthews.
2+
(C) Copyright 2008, 2009, 2010 Glyn Matthews.
33
Distributed under the Boost Software License, Version 1.0.
44
(See accompanying file LICENSE_1_0.txt or copy at
55
http://www.boost.org/LICENSE_1_0.txt).
66
]
77

88
[article C++ Network Library
99
[quickbook 1.4]
10-
[version 0.5]
10+
[version 0.6]
1111
[authors [Matthews, Glyn], [Berris, Dean Michael]]
1212
[copyright 2008, 2009, 2010 Glyn Matthews, Dean Michael Berris]
1313
[purpose C++ library for general network programming]
@@ -34,7 +34,7 @@
3434
[def __libcurl__ [@http://curl.haxx.se/ libcurl]]
3535
[def __mozilla_netlib__ [@http://www.mozilla.org/projects/netlib/ mozilla-netlib]]
3636
[def __sf_cpp_netlib__ [@http://sourceforge.net/projects/cpp-netlib/ sourceforge]]
37-
[def __github__ [@http://github.com/mikhailberis/cpp-netlib github]]
37+
[def __github__ [@http://github.com/cpp-netlib/cpp-netlib github]]
3838
[def __default_constructible__ [@http://www.boost.org/doc/html/DefaultConstructible.html DefaultConstructible]]
3939
[def __copy_constructible__ [@http://www.boost.org/doc/html/CopyConstructible.html CopyConstructible]]
4040
[def __assignable__ [@http://www.boost.org/doc/html/Assignable.html Assignable]]

libs/network/doc/tags_and_directives.qbk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ functions. To able to do this, the __cnl__ uses directives.
1414
Directives are already familiar in the C++ world as part of the I/O
1515
streams in the standard library (`std::endl`, `std::flush` etc.).
1616
For the __cnl__, directives are used to manipulate the message class.
17-
A tag aware directive might be implemented as such:
17+
A tag aware directive might be implemented like this:
1818

1919
namespace boost {
2020
namespace network {

libs/network/doc/uri.qbk

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,3 @@ as well as a very liberal HTTP URI parser. The HTTP URI object only
2323
supports absolute URIs that start with either 'http' or 'https'.
2424

2525
[endsect] [/uri]
26-

0 commit comments

Comments
 (0)