<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8"> <title>fastcgi++: Fastcgipp::Http Namespace 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.5.6 --> <div class="navigation" id="top"> <div class="tabs"> <ul> <li><a href="index.html"><span>Main Page</span></a></li> <li class="current"><a href="namespaces.html"><span>Namespaces</span></a></li> <li><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="namespaces.html"><span>Namespace List</span></a></li> <li><a href="namespacemembers.html"><span>Namespace Members</span></a></li> </ul> </div> <div class="navpath"><a class="el" href="namespaceFastcgipp.html">Fastcgipp</a>::<a class="el" href="namespaceFastcgipp_1_1Http.html">Http</a> </div> </div> <div class="contents"> <h1>Fastcgipp::Http Namespace Reference</h1>Defines classes and function relating to the http protocol. <a href="#_details">More...</a> <p> <table border="0" cellpadding="0" cellspacing="0"> <tr><td></td></tr> <tr><td colspan="2"><br><h2>Classes</h2></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">struct </td><td class="memItemRight" valign="bottom"><a class="el" href="structFastcgipp_1_1Http_1_1Post.html">Post</a></td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Holds a piece of HTTP post data. <a href="structFastcgipp_1_1Http_1_1Post.html#_details">More...</a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">class </td><td class="memItemRight" valign="bottom"><a class="el" href="classFastcgipp_1_1Http_1_1Address.html">Address</a></td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Efficiently stores IPv4 addresses. <a href="classFastcgipp_1_1Http_1_1Address.html#_details">More...</a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">struct </td><td class="memItemRight" valign="bottom"><a class="el" href="structFastcgipp_1_1Http_1_1Session.html">Session</a></td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Data structure of HTTP session data. <a href="structFastcgipp_1_1Http_1_1Session.html#_details">More...</a><br></td></tr> <tr><td colspan="2"><br><h2>Functions</h2></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceFastcgipp_1_1Http.html#7f364f38ce6e697f78493da48ca7ea77">operator==</a> (<a class="el" href="classFastcgipp_1_1Http_1_1Address.html">Address</a> x, <a class="el" href="classFastcgipp_1_1Http_1_1Address.html">Address</a> y)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Compare two <a class="el" href="classFastcgipp_1_1Http_1_1Address.html" title="Efficiently stores IPv4 addresses.">Address</a> values. <a href="#7f364f38ce6e697f78493da48ca7ea77"></a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceFastcgipp_1_1Http.html#bf92b2b79afde1691a0700dcf7d689b5">operator></a> (<a class="el" href="classFastcgipp_1_1Http_1_1Address.html">Address</a> x, <a class="el" href="classFastcgipp_1_1Http_1_1Address.html">Address</a> y)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Compare two <a class="el" href="classFastcgipp_1_1Http_1_1Address.html" title="Efficiently stores IPv4 addresses.">Address</a> values. <a href="#bf92b2b79afde1691a0700dcf7d689b5"></a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceFastcgipp_1_1Http.html#0f224dca0a8d5b61014118be31da0bb0">operator<</a> (<a class="el" href="classFastcgipp_1_1Http_1_1Address.html">Address</a> x, <a class="el" href="classFastcgipp_1_1Http_1_1Address.html">Address</a> y)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Compare two <a class="el" href="classFastcgipp_1_1Http_1_1Address.html" title="Efficiently stores IPv4 addresses.">Address</a> values. <a href="#0f224dca0a8d5b61014118be31da0bb0"></a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceFastcgipp_1_1Http.html#7f33660af1515bb39b1c257ac16c2227">operator<=</a> (<a class="el" href="classFastcgipp_1_1Http_1_1Address.html">Address</a> x, <a class="el" href="classFastcgipp_1_1Http_1_1Address.html">Address</a> y)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Compare two <a class="el" href="classFastcgipp_1_1Http_1_1Address.html" title="Efficiently stores IPv4 addresses.">Address</a> values. <a href="#7f33660af1515bb39b1c257ac16c2227"></a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceFastcgipp_1_1Http.html#bb99e9d1eb070d374bc2d5a9cdac0f3f">operator>=</a> (<a class="el" href="classFastcgipp_1_1Http_1_1Address.html">Address</a> x, <a class="el" href="classFastcgipp_1_1Http_1_1Address.html">Address</a> y)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Compare two <a class="el" href="classFastcgipp_1_1Http_1_1Address.html" title="Efficiently stores IPv4 addresses.">Address</a> values. <a href="#bb99e9d1eb070d374bc2d5a9cdac0f3f"></a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="classFastcgipp_1_1Http_1_1Address.html">Address</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceFastcgipp_1_1Http.html#15a57663b0c7c5da5a03f5838d529754">operator &</a> (<a class="el" href="classFastcgipp_1_1Http_1_1Address.html">Address</a> x, <a class="el" href="classFastcgipp_1_1Http_1_1Address.html">Address</a> y)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Bitwise AND two <a class="el" href="classFastcgipp_1_1Http_1_1Address.html" title="Efficiently stores IPv4 addresses.">Address</a> values. <a href="#15a57663b0c7c5da5a03f5838d529754"></a><br></td></tr> <tr><td class="memTemplParams" nowrap colspan="2">template<class charT, class Traits> </td></tr> <tr><td class="memTemplItemLeft" nowrap align="right" valign="top">std::basic_ostream< charT, <br> Traits > & </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="namespaceFastcgipp_1_1Http.html#390006945c33570fed78d87a7351be0d">operator<<</a> (std::basic_ostream< charT, Traits > &os, const <a class="el" href="classFastcgipp_1_1Http_1_1Address.html">Address</a> &address)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight"><a class="el" href="classFastcgipp_1_1Http_1_1Address.html" title="Efficiently stores IPv4 addresses.">Address</a> stream insertion operation. <a href="#390006945c33570fed78d87a7351be0d"></a><br></td></tr> <tr><td class="memTemplParams" nowrap colspan="2">template<class charT, class Traits> </td></tr> <tr><td class="memTemplItemLeft" nowrap align="right" valign="top">std::basic_istream< charT, <br> Traits > & </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="namespaceFastcgipp_1_1Http.html#ea0f985f8831f536d044a23cd9082371">operator>></a> (std::basic_istream< charT, Traits > &is, <a class="el" href="classFastcgipp_1_1Http_1_1Address.html">Address</a> &address)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight"><a class="el" href="classFastcgipp_1_1Http_1_1Address.html" title="Efficiently stores IPv4 addresses.">Address</a> stream extractor operation. <a href="#ea0f985f8831f536d044a23cd9082371"></a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceFastcgipp_1_1Http.html#b644f00b5902d3e625b50178bf41c1b1">charToString</a> (const char *data, size_t size, std::wstring &string)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Convert a char string to a std::wstring. <a href="#b644f00b5902d3e625b50178bf41c1b1"></a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceFastcgipp_1_1Http.html#72f8c3bf833e522121f385c11082b7e8">charToString</a> (const char *data, size_t size, std::string &string)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Convert a char string to a std::string. <a href="#72f8c3bf833e522121f385c11082b7e8"></a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceFastcgipp_1_1Http.html#a64cb0e8d7014c2180f9b4d82a006c99">atoi</a> (const char *start, const char *end)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Convert a char string to an integer. <a href="#a64cb0e8d7014c2180f9b4d82a006c99"></a><br></td></tr> <tr><td class="memTemplParams" nowrap colspan="2">template<class charT> </td></tr> <tr><td class="memTemplItemLeft" nowrap align="right" valign="top">bool </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="namespaceFastcgipp_1_1Http.html#994445486ee2251731a8265587a0c175">parseXmlValue</a> (const char *const name, const char *start, const char *end, std::basic_string< charT > &string)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Finds the value associated with a name in an 'name="value"' string. <a href="#994445486ee2251731a8265587a0c175"></a><br></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceFastcgipp_1_1Http.html#855cb3cf553acb4d4976e8f68404ba28">percentEscapedToRealBytes</a> (const char *source, char *destination, size_t size)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Convert a string with percent escaped byte values to their actual values. <a href="#855cb3cf553acb4d4976e8f68404ba28"></a><br></td></tr> </table> <hr><a name="_details"></a><h2>Detailed Description</h2> Defines classes and function relating to the http protocol. <hr><h2>Function Documentation</h2> <a class="anchor" name="a64cb0e8d7014c2180f9b4d82a006c99"></a><!-- doxytag: member="Fastcgipp::Http::atoi" ref="a64cb0e8d7014c2180f9b4d82a006c99" args="(const char *start, const char *end)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">int Fastcgipp::Http::atoi </td> <td>(</td> <td class="paramtype">const char * </td> <td class="paramname"> <em>start</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">const char * </td> <td class="paramname"> <em>end</em></td><td> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td><td></td> </tr> </table> </div> <div class="memdoc"> <p> Convert a char string to an integer. <p> This function is very similar to <a class="el" href="namespaceFastcgipp_1_1Http.html#a64cb0e8d7014c2180f9b4d82a006c99" title="Convert a char string to an integer.">std::atoi()</a> except that it takes start/end values of a non null terminated char string instead of a null terminated string. The first character must be either a number or a minus sign (-). As soon as the end is reached or a non numerical character is reached, the result is tallied and returned.<p> <dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"><tt>[in]</tt> </td><td valign="top"><em>start</em> </td><td>Pointer to the first byte in the string </td></tr> <tr><td valign="top"><tt>[in]</tt> </td><td valign="top"><em>end</em> </td><td>Pointer to the last byte in the string + 1 </td></tr> </table> </dl> <dl class="return" compact><dt><b>Returns:</b></dt><dd>Integer value represented by the string </dd></dl> <p>Definition at line <a class="el" href="http_8cpp-source.html#l00205">205</a> of file <a class="el" href="http_8cpp-source.html">http.cpp</a>.</p> <p>Referenced by <a class="el" href="classFastcgipp_1_1Http_1_1Address.html#3a58f93d2c3443fe478bdd3173b1c33b">Fastcgipp::Http::Address::assign()</a>, and <a class="el" href="structFastcgipp_1_1Http_1_1Session.html#86f61a1dc45101f80a08a469867a5293">Fastcgipp::Http::Session< charT >::fill()</a>.</p> </div> </div><p> <a class="anchor" name="72f8c3bf833e522121f385c11082b7e8"></a><!-- doxytag: member="Fastcgipp::Http::charToString" ref="72f8c3bf833e522121f385c11082b7e8" args="(const char *data, size_t size, std::string &string)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">bool Fastcgipp::Http::charToString </td> <td>(</td> <td class="paramtype">const char * </td> <td class="paramname"> <em>data</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">size_t </td> <td class="paramname"> <em>size</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">std::string & </td> <td class="paramname"> <em>string</em></td><td> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td><td><code> [inline]</code></td> </tr> </table> </div> <div class="memdoc"> <p> Convert a char string to a std::string. <p> <dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"><tt>[in]</tt> </td><td valign="top"><em>data</em> </td><td>First byte in char string </td></tr> <tr><td valign="top"><tt>[in]</tt> </td><td valign="top"><em>size</em> </td><td>Size in bytes of the string (no null terminator) </td></tr> <tr><td valign="top"><tt>[out]</tt> </td><td valign="top"><em>string</em> </td><td>Reference to the string that should be modified </td></tr> </table> </dl> <dl class="return" compact><dt><b>Returns:</b></dt><dd>Returns true on success, false on failure </dd></dl> <p>Definition at line <a class="el" href="http_8hpp-source.html#l00275">275</a> of file <a class="el" href="http_8hpp-source.html">http.hpp</a>.</p> </div> </div><p> <a class="anchor" name="b644f00b5902d3e625b50178bf41c1b1"></a><!-- doxytag: member="Fastcgipp::Http::charToString" ref="b644f00b5902d3e625b50178bf41c1b1" args="(const char *data, size_t size, std::wstring &string)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">bool Fastcgipp::Http::charToString </td> <td>(</td> <td class="paramtype">const char * </td> <td class="paramname"> <em>data</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">size_t </td> <td class="paramname"> <em>size</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">std::wstring & </td> <td class="paramname"> <em>string</em></td><td> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td><td></td> </tr> </table> </div> <div class="memdoc"> <p> Convert a char string to a std::wstring. <p> <dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"><tt>[in]</tt> </td><td valign="top"><em>data</em> </td><td>First byte in char string </td></tr> <tr><td valign="top"><tt>[in]</tt> </td><td valign="top"><em>size</em> </td><td>Size in bytes of the string (no null terminator) </td></tr> <tr><td valign="top"><tt>[out]</tt> </td><td valign="top"><em>string</em> </td><td>Reference to the wstring that should be modified </td></tr> </table> </dl> <dl class="return" compact><dt><b>Returns:</b></dt><dd>Returns true on success, false on failure </dd></dl> <p>Definition at line <a class="el" href="http_8cpp-source.html#l00181">181</a> of file <a class="el" href="http_8cpp-source.html">http.cpp</a>.</p> <p>Referenced by <a class="el" href="structFastcgipp_1_1Http_1_1Session.html#86f61a1dc45101f80a08a469867a5293">Fastcgipp::Http::Session< charT >::fill()</a>, <a class="el" href="structFastcgipp_1_1Http_1_1Session.html#8b0413afb995e217f88c44bc156fe1e7">Fastcgipp::Http::Session< charT >::fillPosts()</a>, and <a class="el" href="namespaceFastcgipp_1_1Http.html#994445486ee2251731a8265587a0c175">parseXmlValue()</a>.</p> </div> </div><p> <a class="anchor" name="15a57663b0c7c5da5a03f5838d529754"></a><!-- doxytag: member="Fastcgipp::Http::operator &" ref="15a57663b0c7c5da5a03f5838d529754" args="(Address x, Address y)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="el" href="classFastcgipp_1_1Http_1_1Address.html">Address</a> Fastcgipp::Http::operator & </td> <td>(</td> <td class="paramtype">Address </td> <td class="paramname"> <em>x</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">Address </td> <td class="paramname"> <em>y</em></td><td> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td><td><code> [inline]</code></td> </tr> </table> </div> <div class="memdoc"> <p> Bitwise AND two <a class="el" href="classFastcgipp_1_1Http_1_1Address.html" title="Efficiently stores IPv4 addresses.">Address</a> values. <p> The bitwise AND operation is passed on to the internal unsigned 32 bit integer <p>Definition at line <a class="el" href="http_8hpp-source.html#l00153">153</a> of file <a class="el" href="http_8hpp-source.html">http.hpp</a>.</p> <p>References <a class="el" href="classFastcgipp_1_1Http_1_1Address.html#5d4edb0f0082eaca1919c1f3b428a278">Fastcgipp::Http::Address::data</a>.</p> </div> </div><p> <a class="anchor" name="0f224dca0a8d5b61014118be31da0bb0"></a><!-- doxytag: member="Fastcgipp::Http::operator<" ref="0f224dca0a8d5b61014118be31da0bb0" args="(Address x, Address y)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">bool Fastcgipp::Http::operator< </td> <td>(</td> <td class="paramtype">Address </td> <td class="paramname"> <em>x</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">Address </td> <td class="paramname"> <em>y</em></td><td> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td><td><code> [inline]</code></td> </tr> </table> </div> <div class="memdoc"> <p> Compare two <a class="el" href="classFastcgipp_1_1Http_1_1Address.html" title="Efficiently stores IPv4 addresses.">Address</a> values. <p> This comparator merely passes on the comparison to the internal unsigned 32 bit integer. <p>Definition at line <a class="el" href="http_8hpp-source.html#l00136">136</a> of file <a class="el" href="http_8hpp-source.html">http.hpp</a>.</p> <p>References <a class="el" href="classFastcgipp_1_1Http_1_1Address.html#5d4edb0f0082eaca1919c1f3b428a278">Fastcgipp::Http::Address::data</a>.</p> </div> </div><p> <a class="anchor" name="390006945c33570fed78d87a7351be0d"></a><!-- doxytag: member="Fastcgipp::Http::operator<<" ref="390006945c33570fed78d87a7351be0d" args="(std::basic_ostream< charT, Traits > &os, const Address &address)" --> <div class="memitem"> <div class="memproto"> <div class="memtemplate"> template<class charT, class Traits> </div> <table class="memname"> <tr> <td class="memname">std::basic_ostream< charT, Traits > & Fastcgipp::Http::operator<< </td> <td>(</td> <td class="paramtype">std::basic_ostream< charT, Traits > & </td> <td class="paramname"> <em>os</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">const Address & </td> <td class="paramname"> <em>address</em></td><td> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td><td><code> [inline]</code></td> </tr> </table> </div> <div class="memdoc"> <p> <a class="el" href="classFastcgipp_1_1Http_1_1Address.html" title="Efficiently stores IPv4 addresses.">Address</a> stream insertion operation. <p> This stream inserter obeys all stream manipulators regarding alignment, field width and numerical base. <p>Definition at line <a class="el" href="http_8cpp-source.html#l00042">42</a> of file <a class="el" href="http_8cpp-source.html">http.cpp</a>.</p> </div> </div><p> <a class="anchor" name="7f33660af1515bb39b1c257ac16c2227"></a><!-- doxytag: member="Fastcgipp::Http::operator<=" ref="7f33660af1515bb39b1c257ac16c2227" args="(Address x, Address y)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">bool Fastcgipp::Http::operator<= </td> <td>(</td> <td class="paramtype">Address </td> <td class="paramname"> <em>x</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">Address </td> <td class="paramname"> <em>y</em></td><td> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td><td><code> [inline]</code></td> </tr> </table> </div> <div class="memdoc"> <p> Compare two <a class="el" href="classFastcgipp_1_1Http_1_1Address.html" title="Efficiently stores IPv4 addresses.">Address</a> values. <p> This comparator merely passes on the comparison to the internal unsigned 32 bit integer. <p>Definition at line <a class="el" href="http_8hpp-source.html#l00142">142</a> of file <a class="el" href="http_8hpp-source.html">http.hpp</a>.</p> <p>References <a class="el" href="classFastcgipp_1_1Http_1_1Address.html#5d4edb0f0082eaca1919c1f3b428a278">Fastcgipp::Http::Address::data</a>.</p> </div> </div><p> <a class="anchor" name="7f364f38ce6e697f78493da48ca7ea77"></a><!-- doxytag: member="Fastcgipp::Http::operator==" ref="7f364f38ce6e697f78493da48ca7ea77" args="(Address x, Address y)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">bool Fastcgipp::Http::operator== </td> <td>(</td> <td class="paramtype">Address </td> <td class="paramname"> <em>x</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">Address </td> <td class="paramname"> <em>y</em></td><td> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td><td><code> [inline]</code></td> </tr> </table> </div> <div class="memdoc"> <p> Compare two <a class="el" href="classFastcgipp_1_1Http_1_1Address.html" title="Efficiently stores IPv4 addresses.">Address</a> values. <p> This comparator merely passes on the comparison to the internal unsigned 32 bit integer. <p>Definition at line <a class="el" href="http_8hpp-source.html#l00124">124</a> of file <a class="el" href="http_8hpp-source.html">http.hpp</a>.</p> <p>References <a class="el" href="classFastcgipp_1_1Http_1_1Address.html#5d4edb0f0082eaca1919c1f3b428a278">Fastcgipp::Http::Address::data</a>.</p> </div> </div><p> <a class="anchor" name="bf92b2b79afde1691a0700dcf7d689b5"></a><!-- doxytag: member="Fastcgipp::Http::operator>" ref="bf92b2b79afde1691a0700dcf7d689b5" args="(Address x, Address y)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">bool Fastcgipp::Http::operator> </td> <td>(</td> <td class="paramtype">Address </td> <td class="paramname"> <em>x</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">Address </td> <td class="paramname"> <em>y</em></td><td> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td><td><code> [inline]</code></td> </tr> </table> </div> <div class="memdoc"> <p> Compare two <a class="el" href="classFastcgipp_1_1Http_1_1Address.html" title="Efficiently stores IPv4 addresses.">Address</a> values. <p> This comparator merely passes on the comparison to the internal unsigned 32 bit integer. <p>Definition at line <a class="el" href="http_8hpp-source.html#l00130">130</a> of file <a class="el" href="http_8hpp-source.html">http.hpp</a>.</p> <p>References <a class="el" href="classFastcgipp_1_1Http_1_1Address.html#5d4edb0f0082eaca1919c1f3b428a278">Fastcgipp::Http::Address::data</a>.</p> </div> </div><p> <a class="anchor" name="bb99e9d1eb070d374bc2d5a9cdac0f3f"></a><!-- doxytag: member="Fastcgipp::Http::operator>=" ref="bb99e9d1eb070d374bc2d5a9cdac0f3f" args="(Address x, Address y)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">bool Fastcgipp::Http::operator>= </td> <td>(</td> <td class="paramtype">Address </td> <td class="paramname"> <em>x</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">Address </td> <td class="paramname"> <em>y</em></td><td> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td><td><code> [inline]</code></td> </tr> </table> </div> <div class="memdoc"> <p> Compare two <a class="el" href="classFastcgipp_1_1Http_1_1Address.html" title="Efficiently stores IPv4 addresses.">Address</a> values. <p> This comparator merely passes on the comparison to the internal unsigned 32 bit integer. <p>Definition at line <a class="el" href="http_8hpp-source.html#l00148">148</a> of file <a class="el" href="http_8hpp-source.html">http.hpp</a>.</p> <p>References <a class="el" href="classFastcgipp_1_1Http_1_1Address.html#5d4edb0f0082eaca1919c1f3b428a278">Fastcgipp::Http::Address::data</a>.</p> </div> </div><p> <a class="anchor" name="ea0f985f8831f536d044a23cd9082371"></a><!-- doxytag: member="Fastcgipp::Http::operator>>" ref="ea0f985f8831f536d044a23cd9082371" args="(std::basic_istream< charT, Traits > &is, Address &address)" --> <div class="memitem"> <div class="memproto"> <div class="memtemplate"> template<class charT, class Traits> </div> <table class="memname"> <tr> <td class="memname">std::basic_istream< charT, Traits > & Fastcgipp::Http::operator>> </td> <td>(</td> <td class="paramtype">std::basic_istream< charT, Traits > & </td> <td class="paramname"> <em>is</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">Address & </td> <td class="paramname"> <em>address</em></td><td> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td><td><code> [inline]</code></td> </tr> </table> </div> <div class="memdoc"> <p> <a class="el" href="classFastcgipp_1_1Http_1_1Address.html" title="Efficiently stores IPv4 addresses.">Address</a> stream extractor operation. <p> In order for this to work the stream must be positioned on at the start of a standard decimal representation of a IPv4 address. Example: "127.0.0.1". <p>Definition at line <a class="el" href="http_8cpp-source.html#l00103">103</a> of file <a class="el" href="http_8cpp-source.html">http.cpp</a>.</p> </div> </div><p> <a class="anchor" name="994445486ee2251731a8265587a0c175"></a><!-- doxytag: member="Fastcgipp::Http::parseXmlValue" ref="994445486ee2251731a8265587a0c175" args="(const char *const name, const char *start, const char *end, std::basic_string< charT > &string)" --> <div class="memitem"> <div class="memproto"> <div class="memtemplate"> template<class charT> </div> <table class="memname"> <tr> <td class="memname">bool Fastcgipp::Http::parseXmlValue </td> <td>(</td> <td class="paramtype">const char *const </td> <td class="paramname"> <em>name</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">const char * </td> <td class="paramname"> <em>start</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">const char * </td> <td class="paramname"> <em>end</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">std::basic_string< charT > & </td> <td class="paramname"> <em>string</em></td><td> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td><td><code> [inline]</code></td> </tr> </table> </div> <div class="memdoc"> <p> Finds the value associated with a name in an 'name="value"' string. <p> Note that the quotation marks are removed from the value. If no value is found, then string is left unchanged.<p> <dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"><tt>[in]</tt> </td><td valign="top"><em>name</em> </td><td>Pointer to a null terminated string containing the name </td></tr> <tr><td valign="top"><tt>[in]</tt> </td><td valign="top"><em>start</em> </td><td>Pointer to the first byte of data to look in </td></tr> <tr><td valign="top"><tt>[in]</tt> </td><td valign="top"><em>end</em> </td><td>Pointer to the last byte of data to look in + 1 </td></tr> <tr><td valign="top"><tt>[out]</tt> </td><td valign="top"><em>string</em> </td><td>Reference to the string the value should be stored in. </td></tr> </table> </dl> <p>Definition at line <a class="el" href="http_8cpp-source.html#l00149">149</a> of file <a class="el" href="http_8cpp-source.html">http.cpp</a>.</p> <p>References <a class="el" href="namespaceFastcgipp_1_1Http.html#b644f00b5902d3e625b50178bf41c1b1">charToString()</a>.</p> <p>Referenced by <a class="el" href="structFastcgipp_1_1Http_1_1Session.html#8b0413afb995e217f88c44bc156fe1e7">Fastcgipp::Http::Session< charT >::fillPosts()</a>.</p> </div> </div><p> <a class="anchor" name="855cb3cf553acb4d4976e8f68404ba28"></a><!-- doxytag: member="Fastcgipp::Http::percentEscapedToRealBytes" ref="855cb3cf553acb4d4976e8f68404ba28" args="(const char *source, char *destination, size_t size)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">int Fastcgipp::Http::percentEscapedToRealBytes </td> <td>(</td> <td class="paramtype">const char * </td> <td class="paramname"> <em>source</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">char * </td> <td class="paramname"> <em>destination</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">size_t </td> <td class="paramname"> <em>size</em></td><td> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td><td></td> </tr> </table> </div> <div class="memdoc"> <p> Convert a string with percent escaped byte values to their actual values. <p> Since converting a percent escaped string to actual values can only make it shorter, it is safe to assume that the return value will always be smaller than size. It is thereby a safe move to make the destination block of memory the same size as the source.<p> <dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"><tt>[in]</tt> </td><td valign="top"><em>source</em> </td><td>Pointer to the first character in the percent escaped string </td></tr> <tr><td valign="top"><tt>[in]</tt> </td><td valign="top"><em>size</em> </td><td>Size in bytes of the data pointed to by source (no null termination) </td></tr> <tr><td valign="top"><tt>[out]</tt> </td><td valign="top"><em>destination</em> </td><td>Pointer to the section of memory to write the converted string to </td></tr> </table> </dl> <dl class="return" compact><dt><b>Returns:</b></dt><dd>Actual size of the new string </dd></dl> <p>Definition at line <a class="el" href="http_8cpp-source.html#l00220">220</a> of file <a class="el" href="http_8cpp-source.html">http.cpp</a>.</p> <p>Referenced by <a class="el" href="structFastcgipp_1_1Http_1_1Session.html#86f61a1dc45101f80a08a469867a5293">Fastcgipp::Http::Session< charT >::fill()</a>.</p> </div> </div><p> </div> <hr size="1"><address style="text-align: right;"><small>Generated on Tue Sep 16 15:17:47 2008 for fastcgi++ by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.6 </small></address> </body> </html>