Skip to content

Commit 01aa60e

Browse files
committed
Merge branch '0.7-devel' of http://github.com/glynos/cpp-netlib into 0.7-devel
2 parents 3a47d15 + c34fd77 commit 01aa60e

Some content is hidden

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

45 files changed

+2470
-1245
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,6 @@ CMakeFiles
66
Makefile
77
Testing
88
build
9+
_build
910
bin
1011

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
// Copyright (c) Glyn Matthews 2010.
2+
// 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+
6+
7+
#ifndef __BOOST_NETWORK_PROTOCOL_HTTP_MESSAGE_REQUEST_CONCEPT_INC__
8+
# define __BOOST_NETWORK_PROTOCOL_HTTP_MESSAGE_REQUEST_CONCEPT_INC__
9+
10+
11+
# include <boost/concept_check.hpp>
12+
# include <boost/network/message/message_concept.hpp>
13+
14+
15+
namespace boost {
16+
namespace network {
17+
namespace http {
18+
template <
19+
class R
20+
>
21+
struct Request
22+
: Message<R> {
23+
typedef typename R::string_type string_type;
24+
25+
BOOST_CONCEPT_USAGE(Request) {
26+
27+
string_type uri = request.uri();
28+
string_type method = request.method();
29+
string_type http_version_major = request.http_version_major();
30+
string_type http_version_minor = request.http_version_minor();
31+
32+
(void)uri;
33+
(void)method;
34+
(void)http_version_major;
35+
(void)http_version_minor;
36+
}
37+
38+
private:
39+
40+
R request;
41+
};
42+
} // namespace http
43+
} // namespace network
44+
} // namespace boost
45+
46+
47+
#endif // __BOOST_NETWORK_PROTOCOL_HTTP_MESSAGE_REQUEST_CONCEPT_INC__
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
// Copyright (c) Glyn Matthews 2010.
2+
// 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+
6+
7+
#ifndef __BOOST_NETWORK_PROTOCOL_HTTP_MESSAGE_RESPONSE_CONCEPT_INC__
8+
# define __BOOST_NETWORK_PROTOCOL_HTTP_MESSAGE_RESPONSE_CONCEPT_INC__
9+
10+
11+
namespace boost {
12+
namespace network {
13+
namespace http {
14+
template <
15+
class R
16+
>
17+
struct Response
18+
: Message<R> {
19+
20+
BOOST_CONCEPT_USAGE(Response) {
21+
22+
// version
23+
// status
24+
// message
25+
}
26+
27+
private:
28+
29+
R response;
30+
};
31+
} // namespace http
32+
} // namespace network
33+
} // namespace boost
34+
35+
36+
#endif // __BOOST_NETWORK_PROTOCOL_HTTP_MESSAGE_RESPONSE_CONCEPT_INC__

libs/mime/test/TestMessages/00000001

Lines changed: 40 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -1,40 +1,40 @@
1-
Resent-To: mail.app@flagg2.qualcomm.com
2-
Resent-From: win-eudora-bugs@flagg2.qualcomm.com
3-
Resent-Message-Id: <B0001796251@flagg2.na.qualcomm.com>
4-
Resent-Date: Mon, 1 Nov 2004 15:38:13 -0800
5-
Received: from flagg2.qualcomm.com [129.46.154.229]
6-
by localhost with IMAP (fetchmail-6.2.5)
7-
for marshall@localhost (single-drop); Tue, 02 Nov 2004 11:38:25 -0800 (PST)
8-
Received: from snape.qualcomm.com (unverified [129.46.132.184]) (using TLSv1 with Cipher RC4(128), Exch RSA_SIGN(1024), Hash MD5(128)) by flagg2.qualcomm.com
9-
(Rockliffe SMTPRA 6.1.16) with ESMTP id <B0001796250@flagg2.qualcomm.com> for <win-eudora-bugs@flagg2.qualcomm.com>;
10-
Mon, 1 Nov 2004 15:38:13 -0800
11-
Received: from sabrina.qualcomm.com (sabrina.qualcomm.com [129.46.61.150])
12-
by snape.qualcomm.com (8.12.10/8.12.3/1.0) with ESMTP id iA1NcAcH015308
13-
(version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=FAIL);
14-
Mon, 1 Nov 2004 15:38:11 -0800 (PST)
15-
Received: from moria.qualcomm.com (qualcomm.com [199.106.114.68])
16-
by sabrina.qualcomm.com (8.12.10/8.12.5/1.0) with ESMTP id iA1Nc8HJ019370
17-
(version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT)
18-
for <win-eudora6-bugs@eudora.com>; Mon, 1 Nov 2004 15:38:09 -0800 (PST)
19-
Received: from isengard.qualcomm.com (isengard.qualcomm.com [199.106.114.75]) by moria.qualcomm.com (qualnet-external) with ESMTP id iA1Nc7Rg028808 for <win-eudora6-bugs@eudora.com>; Mon, 1 Nov 2004 15:38:07 -0800 (PST)
20-
Received: from coyote.rain.org (coyote.rain.org [198.68.144.2]) by isengard.qualcomm.com with ESMTP id iA1Nc7uA020987 for <win-eudora6-bugs@eudora.com>; Mon, 1 Nov 2004 15:38:07 -0800 (PST)
21-
Received: from sanders.rain.org (maxmp-189.rain.org [198.68.144.189])
22-
by coyote.rain.org (Postfix) with ESMTP id 648227775
23-
for <win-eudora6-bugs@eudora.com>; Mon, 1 Nov 2004 15:38:06 -0800 (PST)
24-
Message-Id: <5.0.2.1.2.20041101153017.00a26ec0@rain.org>
25-
X-Sender: maia3@rain.org
26-
X-Mailer: QUALCOMM Windows Eudora Version 5.0.2
27-
Date: Mon, 01 Nov 2004 15:31:46 -0800
28-
To: win-eudora6-bugs@qualcomm.com
29-
From: Maia <maia3@rain.org>
30-
Subject: New Bugs
31-
Mime-Version: 1.0
32-
Content-Type: text/plain; charset="us-ascii"; format=flowed
33-
X-PMX-Version: 4.6.0.97784, Antispam-Core: 4.6.0.97340, Antispam-Data: 2004.11.1.3
34-
35-
Just now, without any reason, an email of mine was turned into a mixture of
36-
text and directions and numbers and letters and is now unusable. Do you
37-
know why this is happening?
38-
Thanks, Maia
39-
40-
1+
Resent-To: mail.app@flagg2.qualcomm.com
2+
Resent-From: win-eudora-bugs@flagg2.qualcomm.com
3+
Resent-Message-Id: <B0001796251@flagg2.na.qualcomm.com>
4+
Resent-Date: Mon, 1 Nov 2004 15:38:13 -0800
5+
Received: from flagg2.qualcomm.com [129.46.154.229]
6+
by localhost with IMAP (fetchmail-6.2.5)
7+
for marshall@localhost (single-drop); Tue, 02 Nov 2004 11:38:25 -0800 (PST)
8+
Received: from snape.qualcomm.com (unverified [129.46.132.184]) (using TLSv1 with Cipher RC4(128), Exch RSA_SIGN(1024), Hash MD5(128)) by flagg2.qualcomm.com
9+
(Rockliffe SMTPRA 6.1.16) with ESMTP id <B0001796250@flagg2.qualcomm.com> for <win-eudora-bugs@flagg2.qualcomm.com>;
10+
Mon, 1 Nov 2004 15:38:13 -0800
11+
Received: from sabrina.qualcomm.com (sabrina.qualcomm.com [129.46.61.150])
12+
by snape.qualcomm.com (8.12.10/8.12.3/1.0) with ESMTP id iA1NcAcH015308
13+
(version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=FAIL);
14+
Mon, 1 Nov 2004 15:38:11 -0800 (PST)
15+
Received: from moria.qualcomm.com (qualcomm.com [199.106.114.68])
16+
by sabrina.qualcomm.com (8.12.10/8.12.5/1.0) with ESMTP id iA1Nc8HJ019370
17+
(version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT)
18+
for <win-eudora6-bugs@eudora.com>; Mon, 1 Nov 2004 15:38:09 -0800 (PST)
19+
Received: from isengard.qualcomm.com (isengard.qualcomm.com [199.106.114.75]) by moria.qualcomm.com (qualnet-external) with ESMTP id iA1Nc7Rg028808 for <win-eudora6-bugs@eudora.com>; Mon, 1 Nov 2004 15:38:07 -0800 (PST)
20+
Received: from coyote.rain.org (coyote.rain.org [198.68.144.2]) by isengard.qualcomm.com with ESMTP id iA1Nc7uA020987 for <win-eudora6-bugs@eudora.com>; Mon, 1 Nov 2004 15:38:07 -0800 (PST)
21+
Received: from sanders.rain.org (maxmp-189.rain.org [198.68.144.189])
22+
by coyote.rain.org (Postfix) with ESMTP id 648227775
23+
for <win-eudora6-bugs@eudora.com>; Mon, 1 Nov 2004 15:38:06 -0800 (PST)
24+
Message-Id: <5.0.2.1.2.20041101153017.00a26ec0@rain.org>
25+
X-Sender: maia3@rain.org
26+
X-Mailer: QUALCOMM Windows Eudora Version 5.0.2
27+
Date: Mon, 01 Nov 2004 15:31:46 -0800
28+
To: win-eudora6-bugs@qualcomm.com
29+
From: Maia <maia3@rain.org>
30+
Subject: New Bugs
31+
Mime-Version: 1.0
32+
Content-Type: text/plain; charset="us-ascii"; format=flowed
33+
X-PMX-Version: 4.6.0.97784, Antispam-Core: 4.6.0.97340, Antispam-Data: 2004.11.1.3
34+
35+
Just now, without any reason, an email of mine was turned into a mixture of
36+
text and directions and numbers and letters and is now unusable. Do you
37+
know why this is happening?
38+
Thanks, Maia
39+
40+

libs/mime/test/TestMessages/00000019

Lines changed: 81 additions & 81 deletions
Original file line numberDiff line numberDiff line change
@@ -1,81 +1,81 @@
1-
Resent-To: mail.app@flagg2.qualcomm.com
2-
Resent-From: win-eudora-bugs@flagg2.qualcomm.com
3-
Resent-Message-Id: <B0001796321@flagg2.na.qualcomm.com>
4-
Resent-Date: Mon, 1 Nov 2004 16:01:16 -0800
5-
Received: from flagg2.qualcomm.com [129.46.154.229]
6-
by localhost with IMAP (fetchmail-6.2.5)
7-
for marshall@localhost (single-drop); Tue, 02 Nov 2004 11:38:27 -0800 (PST)
8-
Received: from snape.qualcomm.com (unverified [129.46.132.184]) (using TLSv1 with Cipher RC4(128), Exch RSA_SIGN(1024), Hash MD5(128)) by flagg2.qualcomm.com
9-
(Rockliffe SMTPRA 6.1.16) with ESMTP id <B0001796320@flagg2.qualcomm.com> for <win-eudora-bugs@flagg2.qualcomm.com>;
10-
Mon, 1 Nov 2004 16:01:16 -0800
11-
Received: from neophyte.qualcomm.com (neophyte.qualcomm.com [129.46.61.149])
12-
by snape.qualcomm.com (8.12.10/8.12.3/1.0) with ESMTP id iA201FcH022189
13-
(version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=FAIL);
14-
Mon, 1 Nov 2004 16:01:15 -0800 (PST)
15-
Received: from hobbiton.qualcomm.com (hobbiton.qualcomm.com [199.106.114.69])
16-
by neophyte.qualcomm.com (8.12.10/8.12.5/1.0) with ESMTP id iA201D9A029029
17-
(version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT)
18-
for <win-eudora6-bugs@eudora.com>; Mon, 1 Nov 2004 16:01:13 -0800 (PST)
19-
Received: from isengard.qualcomm.com (isengard.qualcomm.com [199.106.114.75]) by hobbiton.qualcomm.com (qualnet-external) with ESMTP id iA201BhJ016885 for <win-eudora6-bugs@eudora.com>; Mon, 1 Nov 2004 16:01:12 -0800 (PST)
20-
Received: from localhost (localhost) by isengard.qualcomm.com id iA201CuA023535; Mon, 1 Nov 2004 16:01:12 -0800 (PST)
21-
Date: Mon, 1 Nov 2004 16:01:12 -0800 (PST)
22-
From: Mail Delivery Subsystem <MAILER-DAEMON@qualcomm.com>
23-
Message-Id: <200411020001.iA201CuA023535@isengard.qualcomm.com>
24-
To: <win-eudora6-bugs@qualcomm.com>
25-
MIME-Version: 1.0
26-
Content-Type: multipart/report; report-type=delivery-status;
27-
boundary="iA201CuA023535.1099353672/isengard.qualcomm.com"
28-
Subject: Returned mail: see transcript for details
29-
Auto-Submitted: auto-generated (failure)
30-
X-PMX-Version: 4.6.0.99824, Antispam-Core: 4.6.0.97340, Antispam-Data: 2004.11.1.3
31-
32-
This is a MIME-encapsulated message
33-
34-
--iA201CuA023535.1099353672/isengard.qualcomm.com
35-
36-
The original message was received at Mon, 1 Nov 2004 16:01:09 -0800 (PST)
37-
from [210.193.18.250]
38-
39-
----- The following addresses had permanent fatal errors -----
40-
<win-eudora6-bugs@eudora.com>
41-
(reason: 550 5.6.1 Prohibited attachment type)
42-
43-
----- Transcript of session follows -----
44-
... while talking to hobbiton.qualcomm.com.:
45-
>>> DATA
46-
<<< 550 5.6.1 Prohibited attachment type
47-
554 5.0.0 Service unavailable
48-
49-
--iA201CuA023535.1099353672/isengard.qualcomm.com
50-
Content-Type: message/delivery-status
51-
52-
Reporting-MTA: dns; isengard.qualcomm.com
53-
Received-From-MTA: DNS; [210.193.18.250]
54-
Arrival-Date: Mon, 1 Nov 2004 16:01:09 -0800 (PST)
55-
56-
Final-Recipient: RFC822; win-eudora6-bugs@eudora.com
57-
Action: failed
58-
Status: 5.6.1
59-
Remote-MTA: DNS; hobbiton.qualcomm.com
60-
Diagnostic-Code: SMTP; 550 5.6.1 Prohibited attachment type
61-
Last-Attempt-Date: Mon, 1 Nov 2004 16:01:12 -0800 (PST)
62-
63-
--iA201CuA023535.1099353672/isengard.qualcomm.com
64-
Content-Type: text/rfc822-headers
65-
66-
Return-Path: <win-eudora6-bugs@eudora.com>
67-
Received: from eudora.com ([210.193.18.250]) by isengard.qualcomm.com with ESMTP id iA2018uA023523 for <win-eudora6-bugs@eudora.com>; Mon, 1 Nov 2004 16:01:09 -0800 (PST)
68-
Message-Id: <200411020001.iA2018uA023523@isengard.qualcomm.com>
69-
From: win-eudora6-bugs@eudora.com
70-
To: win-eudora6-bugs@eudora.com
71-
Subject: Re: Excel file
72-
Date: Tue, 2 Nov 2004 08:00:34 +0800
73-
MIME-Version: 1.0
74-
Content-Type: multipart/mixed;
75-
boundary="----=_NextPart_000_0001_00000AE6.000070CC"
76-
X-Priority: 3
77-
X-MSMail-Priority: Normal
78-
79-
--iA201CuA023535.1099353672/isengard.qualcomm.com--
80-
81-
1+
Resent-To: mail.app@flagg2.qualcomm.com
2+
Resent-From: win-eudora-bugs@flagg2.qualcomm.com
3+
Resent-Message-Id: <B0001796321@flagg2.na.qualcomm.com>
4+
Resent-Date: Mon, 1 Nov 2004 16:01:16 -0800
5+
Received: from flagg2.qualcomm.com [129.46.154.229]
6+
by localhost with IMAP (fetchmail-6.2.5)
7+
for marshall@localhost (single-drop); Tue, 02 Nov 2004 11:38:27 -0800 (PST)
8+
Received: from snape.qualcomm.com (unverified [129.46.132.184]) (using TLSv1 with Cipher RC4(128), Exch RSA_SIGN(1024), Hash MD5(128)) by flagg2.qualcomm.com
9+
(Rockliffe SMTPRA 6.1.16) with ESMTP id <B0001796320@flagg2.qualcomm.com> for <win-eudora-bugs@flagg2.qualcomm.com>;
10+
Mon, 1 Nov 2004 16:01:16 -0800
11+
Received: from neophyte.qualcomm.com (neophyte.qualcomm.com [129.46.61.149])
12+
by snape.qualcomm.com (8.12.10/8.12.3/1.0) with ESMTP id iA201FcH022189
13+
(version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=FAIL);
14+
Mon, 1 Nov 2004 16:01:15 -0800 (PST)
15+
Received: from hobbiton.qualcomm.com (hobbiton.qualcomm.com [199.106.114.69])
16+
by neophyte.qualcomm.com (8.12.10/8.12.5/1.0) with ESMTP id iA201D9A029029
17+
(version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT)
18+
for <win-eudora6-bugs@eudora.com>; Mon, 1 Nov 2004 16:01:13 -0800 (PST)
19+
Received: from isengard.qualcomm.com (isengard.qualcomm.com [199.106.114.75]) by hobbiton.qualcomm.com (qualnet-external) with ESMTP id iA201BhJ016885 for <win-eudora6-bugs@eudora.com>; Mon, 1 Nov 2004 16:01:12 -0800 (PST)
20+
Received: from localhost (localhost) by isengard.qualcomm.com id iA201CuA023535; Mon, 1 Nov 2004 16:01:12 -0800 (PST)
21+
Date: Mon, 1 Nov 2004 16:01:12 -0800 (PST)
22+
From: Mail Delivery Subsystem <MAILER-DAEMON@qualcomm.com>
23+
Message-Id: <200411020001.iA201CuA023535@isengard.qualcomm.com>
24+
To: <win-eudora6-bugs@qualcomm.com>
25+
MIME-Version: 1.0
26+
Content-Type: multipart/report; report-type=delivery-status;
27+
boundary="iA201CuA023535.1099353672/isengard.qualcomm.com"
28+
Subject: Returned mail: see transcript for details
29+
Auto-Submitted: auto-generated (failure)
30+
X-PMX-Version: 4.6.0.99824, Antispam-Core: 4.6.0.97340, Antispam-Data: 2004.11.1.3
31+
32+
This is a MIME-encapsulated message
33+
34+
--iA201CuA023535.1099353672/isengard.qualcomm.com
35+
36+
The original message was received at Mon, 1 Nov 2004 16:01:09 -0800 (PST)
37+
from [210.193.18.250]
38+
39+
----- The following addresses had permanent fatal errors -----
40+
<win-eudora6-bugs@eudora.com>
41+
(reason: 550 5.6.1 Prohibited attachment type)
42+
43+
----- Transcript of session follows -----
44+
... while talking to hobbiton.qualcomm.com.:
45+
>>> DATA
46+
<<< 550 5.6.1 Prohibited attachment type
47+
554 5.0.0 Service unavailable
48+
49+
--iA201CuA023535.1099353672/isengard.qualcomm.com
50+
Content-Type: message/delivery-status
51+
52+
Reporting-MTA: dns; isengard.qualcomm.com
53+
Received-From-MTA: DNS; [210.193.18.250]
54+
Arrival-Date: Mon, 1 Nov 2004 16:01:09 -0800 (PST)
55+
56+
Final-Recipient: RFC822; win-eudora6-bugs@eudora.com
57+
Action: failed
58+
Status: 5.6.1
59+
Remote-MTA: DNS; hobbiton.qualcomm.com
60+
Diagnostic-Code: SMTP; 550 5.6.1 Prohibited attachment type
61+
Last-Attempt-Date: Mon, 1 Nov 2004 16:01:12 -0800 (PST)
62+
63+
--iA201CuA023535.1099353672/isengard.qualcomm.com
64+
Content-Type: text/rfc822-headers
65+
66+
Return-Path: <win-eudora6-bugs@eudora.com>
67+
Received: from eudora.com ([210.193.18.250]) by isengard.qualcomm.com with ESMTP id iA2018uA023523 for <win-eudora6-bugs@eudora.com>; Mon, 1 Nov 2004 16:01:09 -0800 (PST)
68+
Message-Id: <200411020001.iA2018uA023523@isengard.qualcomm.com>
69+
From: win-eudora6-bugs@eudora.com
70+
To: win-eudora6-bugs@eudora.com
71+
Subject: Re: Excel file
72+
Date: Tue, 2 Nov 2004 08:00:34 +0800
73+
MIME-Version: 1.0
74+
Content-Type: multipart/mixed;
75+
boundary="----=_NextPart_000_0001_00000AE6.000070CC"
76+
X-Priority: 3
77+
X-MSMail-Priority: Normal
78+
79+
--iA201CuA023535.1099353672/isengard.qualcomm.com--
80+
81+

0 commit comments

Comments
 (0)