Skip to content

Commit b754939

Browse files
committed
Gutting the Beast Part 2.
In this commit I remove all traces of traits and metafunctions that can all be replaced by dynamic dispatch. This also prepares to remove the divergence between the synchronous and asynchronous implementation of the messages/client. The goal is to actually just implement the asynchronous version without bothering with a synchronous version. The rationale for this is so that the implementation can grow and be generic while at the same time require that the implementation rely on Boost.Thread in a real way. Part of this commit is the beginnings of the segmented request storage base that will use Boost.IOStreams to support a unified interface to the message implementation while making the underlying storage mechanism replaceable and optimizable as releases go forward. This all leads to simplification of the implementation while remaining source-compatible as far as the interface is concerned. Unfortunately all the interfaces will change, but hopefully majority of the users will not have to change their usage of the library.
1 parent 8651d16 commit b754939

File tree

108 files changed

+188
-2753
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

108 files changed

+188
-2753
lines changed

boost/network/constants.hpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@
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/support/is_default_string.hpp>
10-
#include <boost/network/support/is_default_wstring.hpp>
119
#include <boost/mpl/if.hpp>
1210

1311
namespace boost { namespace network {

boost/network/message.hpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,6 @@
77
#define __NETWORK_MESSAGE_HPP__
88

99
#include <boost/network/message_fwd.hpp>
10-
#include <boost/network/traits/string.hpp>
11-
#include <boost/network/traits/ostringstream.hpp>
12-
#include <boost/network/traits/headers_container.hpp>
1310
#include <boost/network/detail/directive_base.hpp>
1411
#include <boost/network/detail/wrapper_base.hpp>
1512
#include <boost/network/message/directives.hpp>

boost/network/message/directives/detail/string_directive.hpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,9 @@
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/traits/string.hpp>
109
#include <boost/variant/variant.hpp>
1110
#include <boost/variant/apply_visitor.hpp>
1211
#include <boost/variant/static_visitor.hpp>
13-
#include <boost/network/support/is_pod.hpp>
1412
#include <boost/utility/enable_if.hpp>
1513
#include <boost/mpl/if.hpp>
1614
#include <boost/mpl/or.hpp>

boost/network/message/directives/header.hpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,6 @@
77
#ifndef __NETWORK_MESSAGE_DIRECTIVES_HEADER_HPP__
88
#define __NETWORK_MESSAGE_DIRECTIVES_HEADER_HPP__
99

10-
#include <boost/network/traits/string.hpp>
11-
#include <boost/network/support/is_async.hpp>
12-
#include <boost/network/support/is_sync.hpp>
1310
#include <boost/thread/future.hpp>
1411
#include <boost/mpl/if.hpp>
1512
#include <boost/mpl/or.hpp>

boost/network/message/directives/remove_header.hpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,6 @@
88
#define NETWORK_MESSAGE_DIRECTIVES_REMOVE_HEADER_HPP
99

1010

11-
#include <boost/network/traits/string.hpp>
12-
13-
1411
namespace boost { namespace network {
1512

1613
template <class Tag>

boost/network/message/modifiers/add_header.hpp

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

10-
#include <boost/network/support/is_async.hpp>
11-
#include <boost/network/support/is_pod.hpp>
1210
#include <boost/utility/enable_if.hpp>
1311
#include <boost/mpl/and.hpp>
1412
#include <boost/mpl/not.hpp>

boost/network/message/modifiers/body.hpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
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/support/pod_or_normal.hpp>
109
#include <boost/thread/future.hpp>
1110

1211
namespace boost { namespace network {

boost/network/message/modifiers/clear_headers.hpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@
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/support/is_async.hpp>
10-
#include <boost/network/support/is_pod.hpp>
119
#include <boost/thread/future.hpp>
1210
#include <boost/utility/enable_if.hpp>
1311
#include <boost/mpl/not.hpp>

boost/network/message/modifiers/destination.hpp

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

10-
#include <boost/network/support/is_async.hpp>
1110
#include <boost/thread/future.hpp>
1211

1312
namespace boost { namespace network {

boost/network/message/modifiers/remove_header.hpp

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

10-
#include <boost/network/support/is_async.hpp>
11-
#include <boost/network/support/is_pod.hpp>
1210
#include <boost/utility/enable_if.hpp>
1311
#include <boost/range/algorithm/remove_if.hpp>
1412
#include <boost/algorithm/string/predicate.hpp>

0 commit comments

Comments
 (0)