Click here to Skip to main content
12,623,930 members (28,244 online)
Click here to Skip to main content

Stats

279.4K views
7K downloads
203 bookmarked
Posted

A C++ Embedded Web Server

, 23 Jun 2014 BSD
Give a C++ application its own web page
code_project
examples
webemCalendar
calendar.dat
sqlite3.dll
webemCalendar.vcproj.CORVIS.james.user
webemHello
webemHello.vcproj.CORVIS.james.user
webemHelloForm
webemHelloForm.vcproj.CORVIS.james.user
webemMT
webemMT.vcproj.CORVIS.james.user
src
sqlite
sqlite3.lib
webem
server
Jamfile
Jamfile.v2
manifest
manifest.uuid
webem.fossil
_FOSSIL_
doc
DoxyFile
html
doxygen.png
tab_b.gif
tab_l.gif
tab_r.gif
examples
webemButton
webemCalendar
calendar.dat
sqlite3.dll
sqlite3.lib
WebemHello
webemHelloForm
server
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
<title>http::server::cWebemRequestHandler Class Reference</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
<link href="tabs.css" rel="stylesheet" type="text/css">
</head><body>
<!-- Generated by Doxygen 1.4.6-NO -->
<div class="tabs">
  <ul>
    <li><a href="index.html"><span>Main&nbsp;Page</span></a></li>
    <li id="current"><a href="annotated.html"><span>Classes</span></a></li>
    <li><a href="files.html"><span>Files</span></a></li>
  </ul></div>
<div class="tabs">
  <ul>
    <li><a href="annotated.html"><span>Class&nbsp;List</span></a></li>
    <li><a href="hierarchy.html"><span>Class&nbsp;Hierarchy</span></a></li>
    <li><a href="functions.html"><span>Class&nbsp;Members</span></a></li>
  </ul></div>
<div class="nav">
<b>http</b>::<b>server</b>::<a class="el" href="classhttp_1_1server_1_1c_webem_request_handler.html">cWebemRequestHandler</a></div>
<h1>http::server::cWebemRequestHandler Class Reference</h1><!-- doxytag: class="http::server::cWebemRequestHandler" -->The webem request handler.  
<a href="#_details">More...</a>
<p>
<code>#include &lt;<a class="el" href="c_webem_8h-source.html">cWebem.h</a>&gt;</code>
<p>
<a href="classhttp_1_1server_1_1c_webem_request_handler-members.html">List of all members.</a><table border="0" cellpadding="0" cellspacing="0">
<tr><td></td></tr>
<tr><td colspan="2"><br><h2>Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="4864092e57779786f13f0c5ca93029ee"></a><!-- doxytag: member="http::server::cWebemRequestHandler::cWebemRequestHandler" ref="4864092e57779786f13f0c5ca93029ee" args="(const std::string &amp;doc_root)" -->
&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classhttp_1_1server_1_1c_webem_request_handler.html#4864092e57779786f13f0c5ca93029ee">cWebemRequestHandler</a> (const std::string &amp;doc_root)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Construct with a directory containing files to be served. <br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="084aa11cfe753c510c9680e36e6ce125"></a><!-- doxytag: member="http::server::cWebemRequestHandler::setWebem" ref="084aa11cfe753c510c9680e36e6ce125" args="(cWebem *webem)" -->
void&nbsp;</td><td class="memItemRight" valign="bottom"><b>setWebem</b> (<a class="el" href="classhttp_1_1server_1_1c_webem.html">cWebem</a> *webem)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="62a055936f1100e457d97bbcb5570bed"></a><!-- doxytag: member="http::server::cWebemRequestHandler::handle_request" ref="62a055936f1100e457d97bbcb5570bed" args="(const request &amp;req, reply &amp;rep)" -->
virtual void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classhttp_1_1server_1_1c_webem_request_handler.html#62a055936f1100e457d97bbcb5570bed">handle_request</a> (const request &amp;req, reply &amp;rep)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Handle a request and produce a reply. <br></td></tr>
</table>
<hr><a name="_details"></a><h2>Detailed Description</h2>
The webem request handler. 
<p>
A specialization of the boost::asio request handler<p>
Application code should not use this class. 
<p>
<hr>The documentation for this class was generated from the following files:<ul>
<li>C:/Documents and Settings/james/My Documents/code/webem/world/<a class="el" href="c_webem_8h-source.html">cWebem.h</a><li>C:/Documents and Settings/james/My Documents/code/webem/world/cWebem.cpp</ul>
<hr size="1"><address style="align: right;"><small>Generated on Mon May 31 11:27:51 2010 by&nbsp;
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.6-NO </small></address>
</body>
</html>

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The BSD License

Share

About the Author

ravenspoint
Founder Raven's Point Consulting
Canada Canada
No Biography provided

You may also be interested in...

Pro
| Advertise | Privacy | Terms of Use | Mobile
Web02 | 2.8.161128.1 | Last Updated 23 Jun 2014
Article Copyright 2008 by ravenspoint
Everything else Copyright © CodeProject, 1999-2016
Layout: fixed | fluid