Skip to content

Commit c59dbd7

Browse files
committed
Merge branch 'deanberris-0.9-devel' into 0.9-devel
2 parents c511896 + 5f4660c commit c59dbd7

29 files changed

+1146
-1210
lines changed

CMakeLists.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ if (Boost_FOUND)
1818
include_directories(${Boost_INCLUDE_DIRS})
1919
endif()
2020
enable_testing()
21-
add_subdirectory(libs/network/build)
21+
add_subdirectory(libs/network/src)
2222
add_subdirectory(libs/network/test)
2323
add_subdirectory(libs/mime/test)
2424
add_subdirectory(libs/network/example)

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

+7-7
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
#include <boost/fusion/sequence/intrinsic/at_key.hpp>
1616
#include <boost/fusion/sequence/intrinsic/value_at_key.hpp>
1717

18-
#include <boost/network/uri.hpp>
18+
#include <boost/network/uri/http/uri.hpp>
1919
#include <boost/network/traits/vector.hpp>
2020

2121
#include <boost/network/protocol/http/message/async_message.hpp>
@@ -24,8 +24,8 @@
2424

2525
#include <boost/cstdint.hpp>
2626

27-
namespace boost { namespace network {
28-
27+
namespace boost { namespace network {
28+
2929
/** Specialize the traits for the http_server tag. */
3030
template <>
3131
struct headers_container<http::tags::http_server> :
@@ -50,7 +50,7 @@ namespace http {
5050
struct basic_request : public basic_message<Tag>
5151
{
5252

53-
mutable boost::network::uri::http::uri uri_;
53+
mutable boost::network::uri::http::basic_uri<Tag> uri_;
5454
typedef basic_message<Tag> base_type;
5555

5656
public:
@@ -92,7 +92,7 @@ namespace http {
9292
}
9393

9494
port_type port() const {
95-
return uri::port(uri_);
95+
return uri::port_us(uri_);
9696
}
9797

9898
string_type const path() const {
@@ -115,7 +115,7 @@ namespace http {
115115
uri_ = new_uri;
116116
}
117117

118-
boost::network::uri::http::uri const uri() const {
118+
boost::network::uri::http::basic_uri<Tag> const & uri() const {
119119
return uri_;
120120
}
121121

@@ -162,7 +162,7 @@ namespace http {
162162
};
163163

164164
template <>
165-
struct basic_request<tags::http_async_server>
165+
struct basic_request<tags::http_async_server>
166166
: not_quite_pod_request_base<tags::http_async_server>
167167
{};
168168

boost/network/protocol/http/message/wrappers/port.hpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ namespace boost { namespace network { namespace http {
3030
}
3131

3232
operator boost::optional<boost::uint16_t> () {
33-
return port(message_.uri());
33+
return port_us(message_.uri());
3434
}
3535
};
3636

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

+1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
#include <utility>
1010
#include <boost/network/protocol/http/traits/resolver.hpp>
1111
#include <boost/fusion/adapted/std_pair.hpp>
12+
#include <boost/fusion/include/tuple.hpp>
1213
#include <boost/network/traits/string.hpp>
1314
#include <boost/algorithm/string/case_conv.hpp>
1415
#include <boost/unordered_map.hpp>

boost/network/uri.hpp

+8-7
Original file line numberDiff line numberDiff line change
@@ -6,19 +6,20 @@
66
// (See accompanying file LICENSE_1_0.txt or copy at
77
// http://www.boost.org/LICENSE_1_0.txt)
88

9-
#include <boost/network/protocol/http/tags.hpp>
109
#include <boost/network/traits/string.hpp>
11-
#include <boost/network/uri/basic_uri.hpp>
10+
#include <boost/network/uri/uri.hpp>
11+
#include <boost/network/protocol/http/tags.hpp>
1212
#include <boost/network/uri/http/uri.hpp>
1313

14+
1415
namespace boost { namespace network { namespace uri {
1516

16-
typedef basic_uri<boost::network::tags::default_string> uri;
17-
typedef basic_uri<boost::network::tags::default_wstring> wuri;
17+
typedef basic_uri<boost::network::tags::default_string> uri;
18+
typedef basic_uri<boost::network::tags::default_wstring> wuri;
1819

19-
namespace http {
20-
typedef basic_uri<boost::network::http::tags::http_default_8bit_tcp_resolve> uri;
21-
}
20+
namespace http {
21+
typedef basic_uri<boost::network::http::tags::http_default_8bit_udp_resolve> uri;
22+
}
2223

2324
} // namespace uri
2425
} // namespace network

boost/network/uri/basic_uri.hpp

-242
This file was deleted.

boost/network/uri/basic_uri_fwd.hpp

-19
This file was deleted.

0 commit comments

Comments
 (0)