Skip to content

Commit c226fd5

Browse files
committed
The great exodus from Boost.
1 parent 5be546f commit c226fd5

File tree

215 files changed

+3875
-4439
lines changed

Some content is hidden

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

215 files changed

+3875
-4439
lines changed

include/network/constants.hpp

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
1-
#ifndef BOOST_NETWORK_CONSTANTS_HPP_20100808
2-
#define BOOST_NETWORK_CONSTANTS_HPP_20100808
1+
#ifndef NETWORK_CONSTANTS_HPP_20100808
2+
#define NETWORK_CONSTANTS_HPP_20100808
33

44
// Copyright 2010 (C) Dean Michael Berris
55
// Copyright 2012 Google, Inc.
66
// Distributed under the Boost Software License, Version 1.0.
77
// (See accompanying file LICENSE_1_0.txt or copy at
88
// http://www.boost.org/LICENSE_1_0.txt)
99

10-
namespace boost { namespace network {
10+
namespace network {
1111

1212
struct constants {
1313
static char const * crlf();
@@ -37,6 +37,4 @@ struct constants {
3737

3838
} // namespace network
3939

40-
} // namespace boost
41-
42-
#endif // BOOST_NETWORK_CONSTANTS_HPP_20100808
40+
#endif // NETWORK_CONSTANTS_HPP_20100808

include/network/constants.ipp

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
#ifndef BOOST_NETWORK_CONSTANTS_HPP_20111008
2-
#define BOOST_NETWORK_CONSTANTS_HPP_20111008
1+
#ifndef NETWORK_CONSTANTS_HPP_20111008
2+
#define NETWORK_CONSTANTS_HPP_20111008
33

44
// Copyright 2011 Dean Michael Berris <dberris@google.com>.
55
// Copyright 2011 Google, Inc.
@@ -10,7 +10,7 @@
1010
#include <network/constants.hpp>
1111
#include <network/version.hpp>
1212

13-
namespace boost { namespace network {
13+
namespace network {
1414

1515
char const * constants::crlf() {
1616
static char crlf_[] = "\r\n";
@@ -119,12 +119,10 @@ char const * constants::https() {
119119
}
120120

121121
char const * constants::default_user_agent() {
122-
static char user_agent_[] = "cpp-netlib/" BOOST_NETLIB_VERSION;
122+
static char user_agent_[] = "cpp-netlib/" NETLIB_VERSION;
123123
return user_agent_;
124124
}
125125

126-
} /* network */
126+
} // namespace network
127127

128-
} /* boost */
129-
130-
#endif /* BOOST_NETWORK_CONSTANTS_HPP_20111008 */
128+
#endif /* NETWORK_CONSTANTS_HPP_20111008 */

include/network/detail/debug.hpp

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,26 @@
1-
#ifndef BOOST_NETWORK_DEBUG_HPP_20110410
2-
#define BOOST_NETWORK_DEBUG_HPP_20110410
1+
#ifndef NETWORK_DEBUG_HPP_20110410
2+
#define NETWORK_DEBUG_HPP_20110410
33

44
// (c) Copyright 2011 Dean Michael Berris.
55
// Copyright 2012 Google, Inc.
66
// Distributed under the Boost Software License, Version 1.0.
77
// (See accompanying file LICENSE_1_0.txt or copy at
88
// http://www.boost.org/LICENSE_1_0.txt)
99

10-
/** BOOST_NETWORK_MESSAGE is a debugging macro used by cpp-netlib to
11-
print out network-related errors through standard error. This is
12-
only useful when BOOST_NETWORK_DEBUG is turned on. Otherwise
13-
the macro amounts to a no-op.
10+
/** NETWORK_MESSAGE is a debugging macro used by cpp-netlib to
11+
print out network-related errors through standard error. This is only
12+
useful when NETWORK_DEBUG is turned on. Otherwise the macro amounts to a
13+
no-op.
1414
*/
15-
#ifdef BOOST_NETWORK_DEBUG
15+
#ifdef NETWORK_DEBUG
1616
# include <iostream>
17-
# ifndef BOOST_NETWORK_MESSAGE
18-
# define BOOST_NETWORK_MESSAGE(msg) std::cerr << "[DEBUG " << __FILE__ << ':' << __LINE__ << "]: " << msg << std::endl;
17+
# ifndef NETWORK_MESSAGE
18+
# define NETWORK_MESSAGE(msg) std::cerr << "[DEBUG " << __FILE__ << ':' << __LINE__ << "]: " << msg << std::endl;
1919
# endif
2020
#else
21-
# ifndef BOOST_NETWORK_MESSAGE
22-
# define BOOST_NETWORK_MESSAGE(msg)
21+
# ifndef NETWORK_MESSAGE
22+
# define NETWORK_MESSAGE(msg)
2323
# endif
2424
#endif
2525

26-
#endif /* end of include guard: BOOST_NETWORK_DEBUG_HPP_20110410 */
26+
#endif /* end of include guard: NETWORK_DEBUG_HPP_20110410 */

include/network/detail/directive_base.hpp

Lines changed: 4 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -5,31 +5,16 @@
55
// (See accompanying file LICENSE_1_0.txt or copy at
66
// http://www.boost.org/LICENSE_1_0.txt)
77

8-
#ifndef __NETWORK_DETAIL_DIRECTIVE_BASE_HPP__
9-
#define __NETWORK_DETAIL_DIRECTIVE_BASE_HPP__
8+
#ifndef NETWORK_DETAIL_DIRECTIVE_BASE_HPP__
9+
#define NETWORK_DETAIL_DIRECTIVE_BASE_HPP__
1010

1111
/** Defines the base type from which all directives inherit
1212
* to allow friend access to message and other types' internals.
1313
*/
14-
namespace boost { namespace network { namespace detail {
15-
16-
template <class Tag>
17-
struct directive_base {
18-
typedef Tag tag ;
19-
//explicit directive_base(basic_message<tag> & message_)
20-
// : _message(message_)
21-
protected:
22-
~directive_base()
23-
{ }; // can only be extended
24-
25-
// mutable basic_message<tag> & _message;
26-
};
14+
namespace network { namespace detail {
2715

2816
} // namespace detail
2917

3018
} // namespace network
3119

32-
} // namespace boost
33-
34-
#endif // __NETWORK_DETAIL_DIRECTIVE_BASE_HPP__
35-
20+
#endif // NETWORK_DETAIL_DIRECTIVE_BASE_HPP__

include/network/detail/wrapper_base.hpp

Lines changed: 3 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -5,42 +5,8 @@
55
// (See accompanying file LICENSE_1_0.txt or copy at
66
// http://www.boost.org/LICENSE_1_0.txt)
77

8-
#ifndef __NETWORK_DETAIL_WRAPPER_BASE_HPP__
9-
#define __NETWORK_DETAIL_WRAPPER_BASE_HPP__
8+
#ifndef NETWORK_DETAIL_WRAPPER_BASE_HPP__
9+
#define NETWORK_DETAIL_WRAPPER_BASE_HPP__
1010

11-
namespace boost { namespace network {
12-
13-
namespace detail {
14-
15-
template <class Tag, class Message>
16-
struct wrapper_base {
17-
explicit wrapper_base(Message & message_)
18-
: _message(message_)
19-
{};
20-
21-
protected:
22-
~wrapper_base() {}; // for extending only
23-
24-
Message & _message;
25-
};
26-
27-
template <class Tag, class Message>
28-
struct wrapper_base_const {
29-
explicit wrapper_base_const(Message const & message_)
30-
: _message(message_)
31-
{}
32-
33-
protected:
34-
~wrapper_base_const() {}; // for extending only
35-
36-
Message const & _message;
37-
};
38-
39-
} // namespace detail
40-
41-
} // namespace network
42-
43-
} // namespace boost
44-
45-
#endif // __NETWORK_DETAIL_WRAPPER_BASE_HPP__
11+
#endif // NETWORK_DETAIL_WRAPPER_BASE_HPP__
4612

include/network/http/client.hpp

Lines changed: 12 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,16 @@
1-
// Copyright (c) Glyn Matthews 2012.
1+
// Copyright (c) Glyn Matthews 2012.
2+
// Copyright 2012 Dean Michael Berris <dberris@google.com>.
3+
// Copyright 2012 Google, Inc.
24
// Distributed under the Boost Software License, Version 1.0.
3-
// (See accompanying file LICENSE_1_0.txt or copy at
4-
// http://www.boost.org/LICENSE_1_0.txt)
5+
// (See accompanying file LICENSE_1_0.txt or copy at
6+
// http://www.boost.org/LICENSE_1_0.txt)
57

6-
#ifndef __NETWORK_HTTP_CLIENT_INC__
7-
# define __NETWORK_HTTP_CLIENT_INC__
8+
#ifndef NETWORK_HTTP_CLIENT_INC__
9+
#define NETWORK_HTTP_CLIENT_INC__
810

9-
# include <network/protocol/http/client.hpp>
10-
# include <network/http/request.hpp>
11-
# include <network/http/response.hpp>
12-
# include <network/http/errors.hpp>
11+
#include <network/protocol/http/client.hpp>
12+
#include <network/http/request.hpp>
13+
#include <network/http/response.hpp>
14+
#include <network/http/errors.hpp>
1315

14-
namespace network {
15-
using boost::network::header;
16-
17-
namespace http {
18-
using boost::network::http::client;
19-
} // namespace http
20-
} // namespace network
21-
22-
#endif // __NETWORK_HTTP_CLIENT_INC__
16+
#endif // NETWORK_HTTP_CLIENT_INC__

include/network/http/errors.hpp

Lines changed: 7 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,11 @@
1-
// Copyright (c) Glyn Matthews 2012.
1+
// Copyright (c) Glyn Matthews 2012.
22
// Distributed under the Boost Software License, Version 1.0.
3-
// (See accompanying file LICENSE_1_0.txt or copy at
4-
// http://www.boost.org/LICENSE_1_0.txt)
3+
// (See accompanying file LICENSE_1_0.txt or copy at
4+
// http://www.boost.org/LICENSE_1_0.txt)
55

6-
#ifndef __NETWORK_HTTP_ERRORS_INC__
7-
# define __NETWORK_HTTP_ERRORS_INC__
6+
#ifndef NETWORK_HTTP_ERRORS_INC__
7+
#define NETWORK_HTTP_ERRORS_INC__
88

9-
# include <network/protocol/http/errors.hpp>
9+
#include <network/protocol/http/errors.hpp>
1010

11-
namespace network {
12-
namespace http {
13-
namespace errors {
14-
using boost::network::http::errors::connection_timeout;
15-
} // namespace errors
16-
} // namespace http
17-
} // namespace network
18-
19-
#endif // __NETWORK_HTTP_ERRORS_INC__
11+
#endif // NETWORK_HTTP_ERRORS_INC__

include/network/http/request.hpp

Lines changed: 7 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,11 @@
1-
// Copyright (c) Glyn Matthews 2012.
1+
// Copyright (c) Glyn Matthews 2012.
22
// Distributed under the Boost Software License, Version 1.0.
3-
// (See accompanying file LICENSE_1_0.txt or copy at
4-
// http://www.boost.org/LICENSE_1_0.txt)
3+
// (See accompanying file LICENSE_1_0.txt or copy at
4+
// http://www.boost.org/LICENSE_1_0.txt)
55

6-
#ifndef __NETWORK_HTTP_REQUEST_INC__
7-
# define __NETWORK_HTTP_REQUEST_INC__
6+
#ifndef NETWORK_HTTP_REQUEST_INC__
7+
#define NETWORK_HTTP_REQUEST_INC__
88

9-
# include <network/protocol/http/request.hpp>
9+
#include <network/protocol/http/request.hpp>
1010

11-
namespace network {
12-
namespace http {
13-
using boost::network::http::request;
14-
} // namespace http
15-
} // namespace network
16-
17-
#endif // __NETWORK_HTTP_REQUEST_INC__
11+
#endif // NETWORK_HTTP_REQUEST_INC__

include/network/http/response.hpp

Lines changed: 7 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,11 @@
1-
// Copyright (c) Glyn Matthews 2012.
1+
// Copyright (c) Glyn Matthews 2012.
22
// Distributed under the Boost Software License, Version 1.0.
3-
// (See accompanying file LICENSE_1_0.txt or copy at
4-
// http://www.boost.org/LICENSE_1_0.txt)
3+
// (See accompanying file LICENSE_1_0.txt or copy at
4+
// http://www.boost.org/LICENSE_1_0.txt)
55

6-
#ifndef __NETWORK_HTTP_RESPONSE_INC__
7-
# define __NETWORK_HTTP_RESPONSE_INC__
6+
#ifndef NETWORK_HTTP_RESPONSE_INC__
7+
#define NETWORK_HTTP_RESPONSE_INC__
88

9-
# include <network/protocol/http/response.hpp>
9+
#include <network/protocol/http/response.hpp>
1010

11-
namespace network {
12-
namespace http {
13-
using boost::network::http::response;
14-
} // namespace http
15-
} // namespace network
16-
17-
#endif // __NETWORK_HTTP_RESPONSE_INC__
11+
#endif // NETWORK_HTTP_RESPONSE_INC__
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
#ifndef BOOST_NETWORK_INCLUDE_HTTP_CLIENT_HPP_
2-
#define BOOST_NETWORK_INCLUDE_HTTP_CLIENT_HPP_
3-
41
// Copyright 2009 Dean Michael Berris
52
// Copyright 2012 Google, Inc.
63
// Distributed under the Boost Software License, Version 1.0.
@@ -9,6 +6,9 @@
96
//
107
// This is the modular include file for using the HTTP Client
118

9+
#ifndef NETWORK_INCLUDE_HTTP_CLIENT_HPP_
10+
#define NETWORK_INCLUDE_HTTP_CLIENT_HPP_
11+
1212
#include <network/protocol/http/client.hpp>
1313
#include <network/message/wrappers.hpp>
1414
#include <network/protocol/http/message/directives.hpp>
@@ -17,5 +17,5 @@
1717
#include <network/message/directives.hpp>
1818
#include <network/message/transformers.hpp>
1919

20-
#endif // BOOST_NETWORK_INCLUDE_HTTP_CLIENT_HPP_
20+
#endif // NETWORK_INCLUDE_HTTP_CLIENT_HPP_
2121

0 commit comments

Comments
 (0)