Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commiteb943cb

Browse files
committed
Added latest subdirectory and a redirect from index.html.
1 parent46c0bdc commiteb943cb

File tree

84 files changed

+197
-175
lines changed

Some content is hidden

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

84 files changed

+197
-175
lines changed

‎index.html

Lines changed: 10 additions & 175 deletions
Original file line numberDiff line numberDiff line change
@@ -1,187 +1,22 @@
1-
2-
31
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
42
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
53

64
<htmlxmlns="http://www.w3.org/1999/xhtml">
75
<head>
86
<metahttp-equiv="Content-Type"content="text/html; charset=utf-8"/>
9-
10-
<title>Getting cpp-netlib &mdash; cpp-netlib v0.9.4</title>
11-
<linkrel="stylesheet"href="_static/cpp-netlib.css"type="text/css"/>
12-
<linkrel="stylesheet"href="_static/pygments.css"type="text/css"/>
13-
<scripttype="text/javascript">
14-
varDOCUMENTATION_OPTIONS={
15-
URL_ROOT:'',
16-
VERSION:'0.9.4',
17-
COLLAPSE_INDEX:false,
18-
FILE_SUFFIX:'.html',
19-
HAS_SOURCE:true
20-
};
21-
</script>
22-
<scripttype="text/javascript"src="_static/jquery.js"></script>
23-
<scripttype="text/javascript"src="_static/underscore.js"></script>
24-
<scripttype="text/javascript"src="_static/doctools.js"></script>
25-
<linkrel="top"title="cpp-netlib v0.9.4"href="#"/>
26-
<scripttype="text/javascript">
27-
28-
var_gaq=_gaq||[];
29-
_gaq.push(['_setAccount','UA-19815738-1']);
30-
_gaq.push(['_trackPageview']);
31-
32-
(function(){
33-
varga=document.createElement('script');ga.type='text/javascript';ga.async=true;
34-
ga.src=('https:'==document.location.protocol ?'https://ssl' :'http://www')+'.google-analytics.com/ga.js';
35-
vars=document.getElementsByTagName('script')[0];s.parentNode.insertBefore(ga,s);
36-
})();
37-
38-
</script>
39-
7+
<metahttp-equiv="refresh"content="0; URL=latest/index.html"/>
408
</head>
41-
<body>
42-
43-
<divclass="document">
44-
<divid="custom-doc"class="">
45-
<divid="hd">
46-
<h1><ahref="#">cpp-netlib v0.9.4</a></h1>
47-
<divid="global-nav">
48-
<atitle="Home page"href="#">Home</a> |
49-
<atitle="Table of contents"href="contents.html">Table of contents</a> |
50-
<atitle="What's new"href="whats_new.html">What's new</a> |
51-
<atitle="Getting started"href="getting_started.html">Getting started</a> |
52-
<atitle="Examples"href="examples.html">Examples</a> |
53-
<atitle="In depth"href="in_depth.html">In depth</a> |
54-
<atitle="Reference"href="reference.html">Reference</a>
55-
</div>
56-
<divclass="nav">
57-
<atitle="cpp-netlib v0.9.4"href="#"accesskey="U">up</a></div>
58-
</div>
59-
60-
<divid="bd">
61-
<divid="yui-main">
62-
<divclass="yui-b">
63-
<divclass="yui-g"id="index">
64-
65-
<pclass="rubric"id="index">Straightforward network programming in modern C++</p>
66-
<divclass="section"id="cpp-netlib-getting-cpp-netlib">
67-
<h1>Getting cpp-netlib<aclass="headerlink"href="#cpp-netlib-getting-cpp-netlib"title="Permalink to this headline"></a></h1>
68-
<p><strong>Download</strong></p>
69-
<p>You can download the latest releases of the library at:</p>
70-
<blockquote>
71-
<div><aclass="reference external"href="http://github.com/cpp-netlib/cpp-netlib/downloads">http://github.com/cpp-netlib/cpp-netlib/downloads</a></div></blockquote>
72-
<p>You can find more information about the progress of the development by
73-
checking our<aclass="reference external"href="http://github.com/">GitHub</a> project page at:</p>
74-
<blockquote>
75-
<div><aclass="reference external"href="http://github.com/cpp-netlib/cpp-netlib">http://github.com/cpp-netlib/cpp-netlib</a></div></blockquote>
76-
<p><strong>Support</strong></p>
77-
<p>You can ask questions, join the discussion, and report issues to the
78-
developers mailing list by joining via:</p>
79-
<blockquote>
80-
<div><aclass="reference external"href="https://groups.google.com/group/cpp-netlib">https://groups.google.com/group/cpp-netlib</a></div></blockquote>
81-
<p>You can also file issues on the<aclass="reference external"href="http://github.com/">Github</a> issue tracker at:</p>
82-
<blockquote>
83-
<div><aclass="reference external"href="http://github.com/cpp-netlib/cpp-netlib/issues">http://github.com/cpp-netlib/cpp-netlib/issues</a></div></blockquote>
84-
<p>We are a growing community and we are happy to accept new
85-
contributions and ideas.</p>
86-
</div>
87-
<divclass="section"id="cpp-netlib-boost">
88-
<h1>Boost<aclass="headerlink"href="#cpp-netlib-boost"title="Permalink to this headline"></a></h1>
89-
<p>The<ttclass="xref py py-mod docutils literal"><spanclass="pre">cpp-netlib</span></tt> is being developed for eventual submission to<aclass="reference external"href="http://www.boost.org/">Boost</a>.</p>
90-
<imgalt="_images/boost.png"class="align-left"src="_images/boost.png"/>
91-
</div>
92-
<divclass="section"id="cpp-netlib-c-network-library">
93-
<h1>C++ Network Library<aclass="headerlink"href="#cpp-netlib-c-network-library"title="Permalink to this headline"></a></h1>
94-
<p>The<ttclass="xref py py-mod docutils literal"><spanclass="pre">cpp-netlib</span></tt> is a library that provides application layer
95-
protocol support using modern C++ techniques. It is light-weight,
96-
fast, portable and is intended to be as easy to configure as possible.</p>
97-
<p>It is developed by people linked to the<aclass="reference external"href="http://www.boost.org/">Boost</a> community and will soon
98-
be submitted for review into Boost. A presentation about
99-
<ttclass="xref py py-mod docutils literal"><spanclass="pre">cpp-netlib</span></tt> was given at<aclass="reference external"href="http://www.boostcon.com/">BoostCon 2010</a>, for which the
100-
<aclass="reference external"href="http://www.filetolink.com/b0e89d06">slides</a> and the<aclass="reference external"href="http://github.com/downloads/mikhailberis/cpp-netlib-boostcon-paper/cpp-netlib.pdf">paper</a> can be found on-line.</p>
101-
</div>
102-
<divclass="section"id="cpp-netlib-hello-world">
103-
<h1>Hello, world!<aclass="headerlink"href="#cpp-netlib-hello-world"title="Permalink to this headline"></a></h1>
104-
<p>The<ttclass="xref py py-mod docutils literal"><spanclass="pre">cpp-netlib</span></tt> allows developers to write fast, portable
105-
network applications with the minimum of fuss.</p>
106-
<p>An HTTP server-client example can be written in tens of lines of code.
107-
The client is as simple as this:</p>
108-
<divclass="highlight-c++"><divclass="highlight"><pre><spanclass="k">using</span><spanclass="k">namespace</span><spanclass="n">boost</span><spanclass="o">::</span><spanclass="n">network</span><spanclass="p">;</span>
109-
<spanclass="k">using</span><spanclass="k">namespace</span><spanclass="n">boost</span><spanclass="o">::</span><spanclass="n">network</span><spanclass="o">::</span><spanclass="n">http</span><spanclass="p">;</span>
110-
111-
<spanclass="n">client</span><spanclass="o">::</span><spanclass="n">request</span><spanclass="n">request_</span><spanclass="p">(</span><spanclass="s">&quot;http://127.0.0.1:8000/&quot;</span><spanclass="p">);</span>
112-
<spanclass="n">request_</span><spanclass="o">&lt;&lt;</span><spanclass="n">header</span><spanclass="p">(</span><spanclass="s">&quot;Connection&quot;</span><spanclass="p">,</span><spanclass="s">&quot;close&quot;</span><spanclass="p">);</span>
113-
<spanclass="n">client</span><spanclass="n">client_</span><spanclass="p">;</span>
114-
<spanclass="n">client</span><spanclass="o">::</span><spanclass="n">response</span><spanclass="n">response_</span><spanclass="o">=</span><spanclass="n">client_</span><spanclass="p">.</span><spanclass="n">get</span><spanclass="p">(</span><spanclass="n">request_</span><spanclass="p">);</span>
115-
<spanclass="n">std</span><spanclass="o">::</span><spanclass="n">string</span><spanclass="n">body_</span><spanclass="o">=</span><spanclass="n">body</span><spanclass="p">(</span><spanclass="n">response_</span><spanclass="p">);</span>
116-
</pre></div>
117-
</div>
118-
<p>And the corresponding server code is listed below:</p>
119-
<divclass="highlight-c++"><divclass="highlight"><pre><spanclass="k">namespace</span><spanclass="n">http</span><spanclass="o">=</span><spanclass="n">boost</span><spanclass="o">::</span><spanclass="n">network</span><spanclass="o">::</span><spanclass="n">http</span><spanclass="p">;</span>
120-
121-
<spanclass="k">struct</span><spanclass="n">handler</span><spanclass="p">;</span>
122-
<spanclass="k">typedef</span><spanclass="n">http</span><spanclass="o">::</span><spanclass="n">server</span><spanclass="o">&lt;</span><spanclass="n">handler</span><spanclass="o">&gt;</span><spanclass="n">http_server</span><spanclass="p">;</span>
123-
124-
<spanclass="k">struct</span><spanclass="n">handler</span><spanclass="p">{</span>
125-
<spanclass="kt">void</span><spanclass="k">operator</span><spanclass="p">()</span><spanclass="p">(</span><spanclass="n">http_server</span><spanclass="o">::</span><spanclass="n">request</span><spanclass="k">const</span><spanclass="o">&amp;</span><spanclass="n">request</span><spanclass="p">,</span>
126-
<spanclass="n">http_server</span><spanclass="o">::</span><spanclass="n">response</span><spanclass="o">&amp;</span><spanclass="n">response</span><spanclass="p">)</span><spanclass="p">{</span>
127-
<spanclass="n">response</span><spanclass="o">=</span><spanclass="n">http_server</span><spanclass="o">::</span><spanclass="n">response</span><spanclass="o">::</span><spanclass="n">stock_reply</span><spanclass="p">(</span>
128-
<spanclass="n">http_server</span><spanclass="o">::</span><spanclass="n">response</span><spanclass="o">::</span><spanclass="n">ok</span><spanclass="p">,</span><spanclass="s">&quot;Hello, world!&quot;</span><spanclass="p">);</span>
129-
<spanclass="p">}</span>
130-
131-
<spanclass="kt">void</span><spanclass="n">log</span><spanclass="p">(</span><spanclass="n">http_server</span><spanclass="o">::</span><spanclass="n">string_type</span><spanclass="k">const</span><spanclass="o">&amp;</span><spanclass="n">info</span><spanclass="p">)</span><spanclass="p">{</span>
132-
<spanclass="n">std</span><spanclass="o">::</span><spanclass="n">cerr</span><spanclass="o">&lt;&lt;</span><spanclass="s">&quot;ERROR: &quot;</span><spanclass="o">&lt;&lt;</span><spanclass="n">info</span><spanclass="o">&lt;&lt;</span><spanclass="sc">&#39;\n&#39;</span><spanclass="p">;</span>
133-
<spanclass="p">}</span>
134-
<spanclass="p">};</span>
135-
136-
<spanclass="kt">int</span><spanclass="n">main</span><spanclass="p">(</span><spanclass="kt">int</span><spanclass="n">arg</span><spanclass="p">,</span><spanclass="kt">char</span><spanclass="o">*</span><spanclass="n">argv</span><spanclass="p">[])</span><spanclass="p">{</span>
137-
<spanclass="n">handler</span><spanclass="n">handler_</span><spanclass="p">;</span>
138-
<spanclass="n">http_server</span><spanclass="n">server_</span><spanclass="p">(</span><spanclass="s">&quot;0.0.0.0&quot;</span><spanclass="p">,</span><spanclass="s">&quot;8000&quot;</span><spanclass="p">,</span><spanclass="n">handler_</span><spanclass="p">);</span>
139-
<spanclass="n">server_</span><spanclass="p">.</span><spanclass="n">run</span><spanclass="p">();</span>
140-
<spanclass="p">}</span>
141-
</pre></div>
142-
</div>
143-
</div>
144-
<divclass="section"id="cpp-netlib-want-to-learn-more">
145-
<h1>Want to learn more?<aclass="headerlink"href="#cpp-netlib-want-to-learn-more"title="Permalink to this headline"></a></h1>
146-
<blockquote>
147-
<div><ulclass="simple">
148-
<li><aclass="reference internal"href="getting_started.html#getting-started"><em>Take a look at the getting started guide</em></a></li>
149-
<li><aclass="reference internal"href="examples.html#examples"><em>Learn from some simple examples</em></a></li>
150-
<li><aclass="reference internal"href="whats_new.html#whats-new"><em>Find out what&#8217;s new</em></a></li>
151-
<li><aclass="reference internal"href="in_depth.html#in-depth"><em>Study the library in more depth</em></a></li>
152-
<li><aclass="reference internal"href="reference.html#reference"><em>Discover more through the full reference</em></a></li>
153-
</ul>
154-
</div></blockquote>
155-
<divclass="admonition warning">
156-
<pclass="first admonition-title">Warning</p>
157-
<pclass="last">Be aware that not all features are stable. The generic
158-
message design is under review and the URI and HTTP
159-
client implementation will continue to undergo
160-
refactoring. Future versions will include support for
161-
other network protocols.</p>
162-
</div>
163-
</div>
1649

10+
<body>
11+
Automatic redirection failed, please go to<ahref "latest/index.html">index.html</a>.
16512

166-
</div>
167-
</div>
168-
</div>
169-
170-
171-
172-
</div>
13+
<divclass="copyright-footer">
14+
<p>Copyright 2012 Glyn Matthews</p>
17315

174-
<divid="ft">
175-
<divclass="nav">
176-
<atitle="cpp-netlib v0.9.4"href="#"accesskey="U">up</a></div>
16+
<p>Distributed under the Boost Software License, Version 1.0. (See
17+
accompanying file<ahref="LICENSE_1_0.txt">LICENSE_1_0.txt</a> or copy
18+
at<ahref=
19+
"http://www.boost.org/LICENSE_1_0.txt">http://www.boost.org/LICENSE_1_0.txt</a>)</p>
17720
</div>
178-
</div>
179-
180-
<divclass="clearer"></div>
181-
</div>
182-
<divclass="footer">
183-
documentation automatically generated by<ahref="http://sphinx.pocoo.org">Sphinx</a> | style mostly stolen from<ahref="http://lettuce.it">lettuce.it</a>
184-
</div>
185-
18621
</body>
187-
</html>
22+
</html>
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp