Sophie

Sophie

distrib > Mandriva > 2010.1 > x86_64 > media > main-updates > by-pkgid > f36f42783f75191f5f2d47f1e8c5504e > files > 672

lib64commoncpp-devel-1.8.0-5.1mdv2010.1.x86_64.rpm

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>GNU CommonC++: url.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<!-- Generated by Doxygen 1.6.3 -->
<div class="navigation" id="top">
  <div class="tabs">
    <ul>
      <li><a href="index.html"><span>Main&nbsp;Page</span></a></li>
      <li><a href="namespaces.html"><span>Namespaces</span></a></li>
      <li><a href="annotated.html"><span>Classes</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
      <li><a href="examples.html"><span>Examples</span></a></li>
    </ul>
  </div>
  <div class="tabs">
    <ul>
      <li><a href="files.html"><span>File&nbsp;List</span></a></li>
      <li><a href="globals.html"><span>File&nbsp;Members</span></a></li>
    </ul>
  </div>
<h1>url.h</h1><a href="url_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">// Copyright (C) 2001-2005 Open Source Telecom Corporation.</span>
<a name="l00002"></a>00002 <span class="comment">// Copyright (C) 2006-2008 David Sugar, Tycho Softworks.</span>
<a name="l00003"></a>00003 <span class="comment">//</span>
<a name="l00004"></a>00004 <span class="comment">// This program is free software; you can redistribute it and/or modify</span>
<a name="l00005"></a>00005 <span class="comment">// it under the terms of the GNU General Public License as published by</span>
<a name="l00006"></a>00006 <span class="comment">// the Free Software Foundation; either version 2 of the License, or</span>
<a name="l00007"></a>00007 <span class="comment">// (at your option) any later version.</span>
<a name="l00008"></a>00008 <span class="comment">//</span>
<a name="l00009"></a>00009 <span class="comment">// This program is distributed in the hope that it will be useful,</span>
<a name="l00010"></a>00010 <span class="comment">// but WITHOUT ANY WARRANTY; without even the implied warranty of</span>
<a name="l00011"></a>00011 <span class="comment">// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the</span>
<a name="l00012"></a>00012 <span class="comment">// GNU General Public License for more details.</span>
<a name="l00013"></a>00013 <span class="comment">//</span>
<a name="l00014"></a>00014 <span class="comment">// You should have received a copy of the GNU General Public License</span>
<a name="l00015"></a>00015 <span class="comment">// along with this program; if not, write to the Free Software</span>
<a name="l00016"></a>00016 <span class="comment">// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.</span>
<a name="l00017"></a>00017 <span class="comment">//</span>
<a name="l00018"></a>00018 <span class="comment">// As a special exception, you may use this file as part of a free software</span>
<a name="l00019"></a>00019 <span class="comment">// library without restriction.  Specifically, if other files instantiate</span>
<a name="l00020"></a>00020 <span class="comment">// templates or use macros or inline functions from this file, or you compile</span>
<a name="l00021"></a>00021 <span class="comment">// this file and link it with other files to produce an executable, this</span>
<a name="l00022"></a>00022 <span class="comment">// file does not by itself cause the resulting executable to be covered by</span>
<a name="l00023"></a>00023 <span class="comment">// the GNU General Public License.  This exception does not however</span>
<a name="l00024"></a>00024 <span class="comment">// invalidate any other reasons why the executable file might be covered by</span>
<a name="l00025"></a>00025 <span class="comment">// the GNU General Public License.</span>
<a name="l00026"></a>00026 <span class="comment">//</span>
<a name="l00027"></a>00027 <span class="comment">// This exception applies only to the code released under the name GNU</span>
<a name="l00028"></a>00028 <span class="comment">// Common C++.  If you copy code from other releases into a copy of GNU</span>
<a name="l00029"></a>00029 <span class="comment">// Common C++, as the General Public License permits, the exception does</span>
<a name="l00030"></a>00030 <span class="comment">// not apply to the code that you add in this way.  To avoid misleading</span>
<a name="l00031"></a>00031 <span class="comment">// anyone as to the status of such modified files, you must delete</span>
<a name="l00032"></a>00032 <span class="comment">// this exception notice from them.</span>
<a name="l00033"></a>00033 <span class="comment">//</span>
<a name="l00034"></a>00034 <span class="comment">// If you write modifications of your own for GNU Common C++, it is your choice</span>
<a name="l00035"></a>00035 <span class="comment">// whether to permit this exception to apply to your modifications.</span>
<a name="l00036"></a>00036 <span class="comment">// If you do not wish that, delete this exception notice.</span>
<a name="l00037"></a>00037 <span class="comment">//</span>
<a name="l00038"></a>00038 
<a name="l00044"></a>00044 <span class="preprocessor">#ifndef CCXX_URL_H_</span>
<a name="l00045"></a>00045 <span class="preprocessor"></span><span class="preprocessor">#define CCXX_URL_H_</span>
<a name="l00046"></a>00046 <span class="preprocessor"></span>
<a name="l00047"></a>00047 <span class="preprocessor">#ifndef CCXX_CONFIG_H_</span>
<a name="l00048"></a>00048 <span class="preprocessor"></span><span class="preprocessor">#include &lt;<a class="code" href="config_8h.html">cc++/config.h</a>&gt;</span>
<a name="l00049"></a>00049 <span class="preprocessor">#endif</span>
<a name="l00050"></a>00050 <span class="preprocessor"></span>
<a name="l00051"></a>00051 <span class="preprocessor">#ifndef CCXX_SOCKET_H_</span>
<a name="l00052"></a>00052 <span class="preprocessor"></span><span class="preprocessor">#include &lt;<a class="code" href="socket_8h.html" title="Network addresses and sockets related classes.">cc++/socket.h</a>&gt;</span>
<a name="l00053"></a>00053 <span class="preprocessor">#endif</span>
<a name="l00054"></a>00054 <span class="preprocessor"></span>
<a name="l00055"></a>00055 <span class="preprocessor">#ifndef CCXX_MIME_H_</span>
<a name="l00056"></a>00056 <span class="preprocessor"></span><span class="preprocessor">#include &lt;<a class="code" href="mime_8h.html" title="MIME document abstractions.">cc++/mime.h</a>&gt;</span>
<a name="l00057"></a>00057 <span class="preprocessor">#endif</span>
<a name="l00058"></a>00058 <span class="preprocessor"></span>
<a name="l00059"></a>00059 <span class="preprocessor">#ifdef  CCXX_NAMESPACES</span>
<a name="l00060"></a>00060 <span class="preprocessor"></span><span class="keyword">namespace </span>ost {
<a name="l00061"></a>00061 <span class="preprocessor">#endif</span>
<a name="l00062"></a>00062 <span class="preprocessor"></span>
<a name="l00069"></a><a class="code" href="classost_1_1_u_r_l_stream.html">00069</a> <span class="keyword">class </span><a class="code" href="config_8h.html#ad10ef148ba8327bd530fc6c32c1e181c">__EXPORT</a> <a class="code" href="classost_1_1_u_r_l_stream.html" title="A URL processing version of TCPStream.">URLStream</a> : <span class="keyword">public</span> <a class="code" href="classost_1_1_t_c_p_stream.html" title="TCP streams are used to represent TCP client connections to a server by TCP protocol...">TCPStream</a>
<a name="l00070"></a>00070 {
<a name="l00071"></a>00071 <span class="keyword">public</span>:
<a name="l00075"></a><a class="code" href="classost_1_1_u_r_l_stream.html#a3cbe53f1c34d7fdbd73efa61edbf463d">00075</a>         <span class="keyword">typedef</span> <span class="keyword">enum</span> {
<a name="l00076"></a><a class="code" href="classost_1_1_u_r_l_stream.html#a3cbe53f1c34d7fdbd73efa61edbf463dac62812a83036760789cfd3e7a9bc6d8a">00076</a>                 errSuccess = 0,
<a name="l00077"></a><a class="code" href="classost_1_1_u_r_l_stream.html#a3cbe53f1c34d7fdbd73efa61edbf463daf690302fea53223ececff5a18e51583a">00077</a>                 errUnreachable,
<a name="l00078"></a><a class="code" href="classost_1_1_u_r_l_stream.html#a3cbe53f1c34d7fdbd73efa61edbf463daef5c1670971fe8bff9815517c7dcc037">00078</a>                 errMissing,
<a name="l00079"></a><a class="code" href="classost_1_1_u_r_l_stream.html#a3cbe53f1c34d7fdbd73efa61edbf463daa77932a4f73745c190b31ecb89d9e6b1">00079</a>                 errDenied,
<a name="l00080"></a><a class="code" href="classost_1_1_u_r_l_stream.html#a3cbe53f1c34d7fdbd73efa61edbf463dad7f27e58273752137f7a7b3cc01510d6">00080</a>                 errInvalid,
<a name="l00081"></a><a class="code" href="classost_1_1_u_r_l_stream.html#a3cbe53f1c34d7fdbd73efa61edbf463dae41d04b4cb317042ce2ec23046412653">00081</a>                 errForbidden,
<a name="l00082"></a><a class="code" href="classost_1_1_u_r_l_stream.html#a3cbe53f1c34d7fdbd73efa61edbf463dacc7a5df261dd3d70610e6eea026c6588">00082</a>                 errUnauthorized,
<a name="l00083"></a><a class="code" href="classost_1_1_u_r_l_stream.html#a3cbe53f1c34d7fdbd73efa61edbf463da72120616b8963ff2483777bd48e299b7">00083</a>                 errRelocated,
<a name="l00084"></a><a class="code" href="classost_1_1_u_r_l_stream.html#a3cbe53f1c34d7fdbd73efa61edbf463daff2ca7bfdf0273907dd2dff07364488f">00084</a>                 errFailure,
<a name="l00085"></a><a class="code" href="classost_1_1_u_r_l_stream.html#a3cbe53f1c34d7fdbd73efa61edbf463da21538f6d1947b30d11d846c16071a9bb">00085</a>                 errTimeout,
<a name="l00086"></a><a class="code" href="classost_1_1_u_r_l_stream.html#a3cbe53f1c34d7fdbd73efa61edbf463daec1aca8ce804c335c96851289b049d03">00086</a>                 errInterface
<a name="l00087"></a>00087         } Error;
<a name="l00088"></a>00088 
<a name="l00092"></a><a class="code" href="classost_1_1_u_r_l_stream.html#a0c2c4056104cc9cfb500d7be3a791279">00092</a>         <span class="keyword">typedef</span> <span class="keyword">enum</span> {
<a name="l00093"></a><a class="code" href="classost_1_1_u_r_l_stream.html#a0c2c4056104cc9cfb500d7be3a791279a204cc2bcd2b2bbc6528b5a025bbb0220">00093</a>                 authAnonymous = 0,
<a name="l00094"></a><a class="code" href="classost_1_1_u_r_l_stream.html#a0c2c4056104cc9cfb500d7be3a791279af77c47d3ed840ec1331290d52305d467">00094</a>                 authBasic
<a name="l00095"></a>00095         } Authentication;
<a name="l00096"></a>00096 
<a name="l00100"></a><a class="code" href="classost_1_1_u_r_l_stream.html#a29c5e2bbdebac341382d346331fff074">00100</a>         <span class="keyword">typedef</span> <span class="keyword">enum</span> {
<a name="l00101"></a><a class="code" href="classost_1_1_u_r_l_stream.html#a29c5e2bbdebac341382d346331fff074aef8e17e51287cfc9b832a82c601522d6">00101</a>                 encodingBinary = 0,
<a name="l00102"></a><a class="code" href="classost_1_1_u_r_l_stream.html#a29c5e2bbdebac341382d346331fff074a8917153dcf23a2767a57b8058dfd7307">00102</a>                 encodingChunked
<a name="l00103"></a>00103         } Encoding;
<a name="l00104"></a>00104 
<a name="l00108"></a><a class="code" href="classost_1_1_u_r_l_stream.html#a63b25c99eb1c2813d92f52b15be7368a">00108</a>         <span class="keyword">typedef</span> <span class="keyword">enum</span> {
<a name="l00109"></a><a class="code" href="classost_1_1_u_r_l_stream.html#a63b25c99eb1c2813d92f52b15be7368aa8cdf141da33c9075e8f748ff046bb55d">00109</a>                 methodHttpGet,
<a name="l00110"></a><a class="code" href="classost_1_1_u_r_l_stream.html#a63b25c99eb1c2813d92f52b15be7368aaf3576348551d07b247f0b87d62586edf">00110</a>                 methodHttpPut,
<a name="l00111"></a><a class="code" href="classost_1_1_u_r_l_stream.html#a63b25c99eb1c2813d92f52b15be7368aa331fbf2811a54db820d153f3f26f866b">00111</a>                 methodHttpPost,
<a name="l00112"></a><a class="code" href="classost_1_1_u_r_l_stream.html#a63b25c99eb1c2813d92f52b15be7368aa07a740f3cdd68a98892644577cd844c8">00112</a>                 methodHttpPostMultipart,
<a name="l00113"></a><a class="code" href="classost_1_1_u_r_l_stream.html#a63b25c99eb1c2813d92f52b15be7368aa415d881a560624fccbc466fce0033b59">00113</a>                 methodFtpGet,
<a name="l00114"></a><a class="code" href="classost_1_1_u_r_l_stream.html#a63b25c99eb1c2813d92f52b15be7368aa45c039f1f93d87536ebacdfc867a7491">00114</a>                 methodFtpPut,
<a name="l00115"></a><a class="code" href="classost_1_1_u_r_l_stream.html#a63b25c99eb1c2813d92f52b15be7368aa8e4e3cd2ca28b4c974562f917d60e7d6">00115</a>                 methodFileGet,
<a name="l00116"></a><a class="code" href="classost_1_1_u_r_l_stream.html#a63b25c99eb1c2813d92f52b15be7368aaa5d783eebb656045bcbe036a0ec0319b">00116</a>                 methodFilePut
<a name="l00117"></a>00117         } Method;
<a name="l00118"></a>00118 
<a name="l00122"></a><a class="code" href="classost_1_1_u_r_l_stream.html#a368c822b755fd439f9a3293effddab5d">00122</a>         <span class="keyword">typedef</span> <span class="keyword">enum</span> {
<a name="l00123"></a><a class="code" href="classost_1_1_u_r_l_stream.html#a368c822b755fd439f9a3293effddab5da0529a99019ed5fc43547f186fa700196">00123</a>                 protocolHttp1_0,
<a name="l00124"></a><a class="code" href="classost_1_1_u_r_l_stream.html#a368c822b755fd439f9a3293effddab5dabacbdcd166dd2cc9163c397b29085b89">00124</a>                 protocolHttp1_1
<a name="l00125"></a>00125         } Protocol;
<a name="l00126"></a>00126 
<a name="l00127"></a>00127 <span class="keyword">private</span>:
<a name="l00128"></a>00128         <span class="keyword">const</span> <span class="keywordtype">char</span> *agent, *referer, *cookie, *pragma, *user, *password;
<a name="l00129"></a>00129         <span class="keyword">const</span> <span class="keywordtype">char</span> *proxyUser, *proxyPasswd;
<a name="l00130"></a>00130         <span class="keyword">const</span> <span class="keywordtype">char</span> *localif;
<a name="l00131"></a>00131         <a class="code" href="classost_1_1_i_p_v4_host.html" title="This object is used to hold the actual and valid internet address of a specific host...">IPV4Host</a> proxyHost;
<a name="l00132"></a>00132 <span class="preprocessor">#ifdef  CCXX_IPV6</span>
<a name="l00133"></a>00133 <span class="preprocessor"></span>        <a class="code" href="classost_1_1_i_p_v6_host.html" title="This object is used to hold the actual and valid internet address of a specific host...">IPV6Host</a> v6proxyHost;
<a name="l00134"></a>00134 <span class="preprocessor">#endif</span>
<a name="l00135"></a>00135 <span class="preprocessor"></span>        <a class="code" href="namespaceost.html#a3c74a1a40c359fd349f3e3e1b96ebfc7" title="Transport Protocol Ports.">tpport_t</a> proxyPort;
<a name="l00136"></a>00136         Method urlmethod;
<a name="l00137"></a>00137         Encoding encoding;
<a name="l00138"></a>00138         Protocol protocol;
<a name="l00139"></a>00139         Authentication auth;
<a name="l00140"></a>00140         Authentication proxyAuth;
<a name="l00141"></a>00141         <a class="code" href="thread_8h.html#af412159e5cef839836a5e7b19ee75d1c">timeout_t</a> timeout;
<a name="l00142"></a>00142         <span class="keywordtype">bool</span> persistent;
<a name="l00143"></a>00143         <span class="keywordtype">bool</span> follow;
<a name="l00144"></a>00144         <span class="keywordtype">unsigned</span> chunk;
<a name="l00145"></a>00145 
<a name="l00146"></a>00146         Error getHTTPHeaders();
<a name="l00147"></a>00147         <a class="code" href="classost_1_1_u_r_l_stream.html" title="A URL processing version of TCPStream.">URLStream</a>(<span class="keyword">const</span> <a class="code" href="classost_1_1_u_r_l_stream.html" title="A URL processing version of TCPStream.">URLStream</a>&amp; rhs);
<a name="l00148"></a>00148 
<a name="l00149"></a>00149 <span class="keyword">protected</span>:
<a name="l00150"></a><a class="code" href="classost_1_1_u_r_l_stream.html#a8470768c9bdad61e65de940194670932">00150</a>         <a class="code" href="classost_1_1_string.html" title="This is a generic and portable string class.">ost::String</a> m_host, m_address;
<a name="l00151"></a>00151 
<a name="l00160"></a>00160         <a class="code" href="classost_1_1_socket.html#ae056b6dd4f167163083b7ab602fd3f3f">Error</a> sendHTTPHeader(<span class="keyword">const</span> <span class="keywordtype">char</span> *url, <span class="keyword">const</span> <span class="keywordtype">char</span> **vars, <span class="keywordtype">size_t</span> bufsize);
<a name="l00161"></a>00161 
<a name="l00167"></a>00167         <span class="keywordtype">int</span> underflow(<span class="keywordtype">void</span>);
<a name="l00168"></a>00168 
<a name="l00177"></a>00177         <span class="keyword">virtual</span> <span class="keywordtype">int</span> aRead(<span class="keywordtype">char</span> *buffer, <span class="keywordtype">size_t</span> len, <a class="code" href="thread_8h.html#af412159e5cef839836a5e7b19ee75d1c">timeout_t</a> timer);
<a name="l00178"></a>00178 
<a name="l00187"></a>00187         <span class="keyword">virtual</span> <span class="keywordtype">int</span> aWrite(<span class="keywordtype">char</span> *buffer, <span class="keywordtype">size_t</span> len, <a class="code" href="thread_8h.html#af412159e5cef839836a5e7b19ee75d1c">timeout_t</a> timer);
<a name="l00188"></a>00188 
<a name="l00195"></a>00195         <span class="keyword">virtual</span> <span class="keywordtype">void</span> httpHeader(<span class="keyword">const</span> <span class="keywordtype">char</span> *header, <span class="keyword">const</span> <span class="keywordtype">char</span> *value);
<a name="l00196"></a>00196 
<a name="l00202"></a>00202         <span class="keyword">virtual</span> <span class="keywordtype">char</span> **extraHeader(<span class="keywordtype">void</span>);
<a name="l00203"></a>00203 
<a name="l00204"></a>00204 <span class="keyword">public</span>:
<a name="l00211"></a>00211         <a class="code" href="classost_1_1_u_r_l_stream.html" title="A URL processing version of TCPStream.">URLStream</a>(<a class="code" href="classost_1_1_socket.html#a36a69681caa020f1abed34ae71d206ef">Family</a> family = IPV4, <a class="code" href="thread_8h.html#af412159e5cef839836a5e7b19ee75d1c">timeout_t</a> timer = 0);
<a name="l00212"></a>00212 
<a name="l00220"></a>00220         <a class="code" href="classost_1_1_u_r_l_stream.html" title="A URL processing version of TCPStream.">URLStream</a> &amp;getline(<span class="keywordtype">char</span> *buffer, <span class="keywordtype">size_t</span> len);
<a name="l00221"></a>00221 
<a name="l00229"></a>00229         <a class="code" href="classost_1_1_socket.html#ae056b6dd4f167163083b7ab602fd3f3f">Error</a> <span class="keyword">get</span>(<span class="keyword">const</span> <span class="keywordtype">char</span> *url, <span class="keywordtype">size_t</span> buffer = 512);
<a name="l00230"></a>00230 
<a name="l00239"></a>00239         <a class="code" href="classost_1_1_socket.html#ae056b6dd4f167163083b7ab602fd3f3f">Error</a> <span class="keyword">get</span>(<span class="keywordtype">size_t</span> buffer = 512);
<a name="l00240"></a>00240 
<a name="l00250"></a>00250         <a class="code" href="classost_1_1_socket.html#ae056b6dd4f167163083b7ab602fd3f3f">Error</a> submit(<span class="keyword">const</span> <span class="keywordtype">char</span> *url, <span class="keyword">const</span> <span class="keywordtype">char</span> **vars, <span class="keywordtype">size_t</span> buffer = 512);
<a name="l00251"></a>00251 
<a name="l00260"></a>00260         <a class="code" href="classost_1_1_socket.html#ae056b6dd4f167163083b7ab602fd3f3f">Error</a> post(<span class="keyword">const</span> <span class="keywordtype">char</span> *url, <span class="keyword">const</span> <span class="keywordtype">char</span> **vars, <span class="keywordtype">size_t</span> buffer = 512);
<a name="l00261"></a>00261 
<a name="l00270"></a>00270         <a class="code" href="classost_1_1_socket.html#ae056b6dd4f167163083b7ab602fd3f3f">Error</a> post(<span class="keyword">const</span> <span class="keywordtype">char</span> *url, <a class="code" href="classost_1_1_m_i_m_e_multipart_form.html" title="The Multipart form is a MIME multipart document specific for the construction and...">MIMEMultipartForm</a> &amp;form, <span class="keywordtype">size_t</span> buffer = 512);
<a name="l00271"></a>00271 
<a name="l00279"></a>00279         <a class="code" href="classost_1_1_socket.html#ae056b6dd4f167163083b7ab602fd3f3f">Error</a> head(<span class="keyword">const</span> <span class="keywordtype">char</span> *url, <span class="keywordtype">size_t</span> buffer = 512);
<a name="l00280"></a>00280 
<a name="l00284"></a>00284         <span class="keywordtype">void</span> close();
<a name="l00285"></a>00285 
<a name="l00291"></a>00291         <span class="keywordtype">void</span> setReferer(<span class="keyword">const</span> <span class="keywordtype">char</span> *str);
<a name="l00292"></a>00292 
<a name="l00298"></a><a class="code" href="classost_1_1_u_r_l_stream.html#a41fe1fab3e180ab32984558452375864">00298</a>         <span class="keyword">inline</span> <span class="keywordtype">void</span> setHost(<span class="keyword">const</span> <span class="keywordtype">char</span> *str)
<a name="l00299"></a>00299                 {m_host = str;};
<a name="l00300"></a>00300 
<a name="l00306"></a><a class="code" href="classost_1_1_u_r_l_stream.html#ade0f87919bff65f5872f79ef1fb9b250">00306</a>         <span class="keyword">inline</span> <span class="keywordtype">void</span> setAddress(<span class="keyword">const</span> <span class="keywordtype">char</span> *str)
<a name="l00307"></a>00307                 {m_address = str;};
<a name="l00308"></a>00308 
<a name="l00314"></a><a class="code" href="classost_1_1_u_r_l_stream.html#a6ab058ec31630125b4d22874f72b2e5e">00314</a>         <span class="keyword">inline</span> <span class="keywordtype">void</span> setCookie(<span class="keyword">const</span> <span class="keywordtype">char</span> *str)
<a name="l00315"></a>00315                 {cookie = str;};
<a name="l00316"></a>00316 
<a name="l00322"></a><a class="code" href="classost_1_1_u_r_l_stream.html#a8471a2d492c4bb37bbb406965b0d19ea">00322</a>         <span class="keyword">inline</span> <span class="keywordtype">void</span> setUser(<span class="keyword">const</span> <span class="keywordtype">char</span> *str)
<a name="l00323"></a>00323                 {user = str;};
<a name="l00324"></a>00324 
<a name="l00330"></a><a class="code" href="classost_1_1_u_r_l_stream.html#a3a85d06cbfa3206b47ba4623051ccf7c">00330</a>         <span class="keyword">inline</span> <span class="keywordtype">void</span> setPassword(<span class="keyword">const</span> <span class="keywordtype">char</span> *str)
<a name="l00331"></a>00331                 {password = str;};
<a name="l00332"></a>00332 
<a name="l00339"></a>00339         <span class="keywordtype">void</span> setAuthentication(Authentication a, <span class="keyword">const</span> <span class="keywordtype">char</span> *str = NULL);
<a name="l00340"></a>00340 
<a name="l00346"></a><a class="code" href="classost_1_1_u_r_l_stream.html#aab90935c27dd3d5a3987174b085b4769">00346</a>         <span class="keyword">inline</span> <span class="keywordtype">void</span> setProxyUser(<span class="keyword">const</span> <span class="keywordtype">char</span> *str)
<a name="l00347"></a>00347                 {proxyUser = str;};
<a name="l00348"></a>00348 
<a name="l00354"></a><a class="code" href="classost_1_1_u_r_l_stream.html#a14621652a8c864bcebece2155326db3a">00354</a>         <span class="keyword">inline</span> <span class="keywordtype">void</span> setProxyPassword(<span class="keyword">const</span> <span class="keywordtype">char</span> *str)
<a name="l00355"></a>00355                 {proxyPasswd = str;};
<a name="l00356"></a>00356 
<a name="l00363"></a>00363         <span class="keywordtype">void</span> setProxyAuthentication(Authentication a, <span class="keyword">const</span> <span class="keywordtype">char</span> *str = NULL);
<a name="l00364"></a>00364 
<a name="l00370"></a><a class="code" href="classost_1_1_u_r_l_stream.html#a840da2832dc45d5fb500af34d1e7c1d6">00370</a>         <span class="keyword">inline</span> <span class="keywordtype">void</span> setPragma(<span class="keyword">const</span> <span class="keywordtype">char</span> *str)
<a name="l00371"></a>00371                 {pragma = str;};
<a name="l00372"></a>00372 
<a name="l00379"></a>00379         <span class="keywordtype">void</span> setProxy(<span class="keyword">const</span> <span class="keywordtype">char</span> *host, <a class="code" href="namespaceost.html#a3c74a1a40c359fd349f3e3e1b96ebfc7" title="Transport Protocol Ports.">tpport_t</a> port);
<a name="l00380"></a>00380 
<a name="l00386"></a><a class="code" href="classost_1_1_u_r_l_stream.html#a81286e908399824ddc0ddef398850786">00386</a>         <span class="keyword">inline</span> <span class="keywordtype">void</span> setAgent(<span class="keyword">const</span> <span class="keywordtype">char</span> *str)
<a name="l00387"></a>00387                 {agent = str;};
<a name="l00388"></a>00388 
<a name="l00394"></a><a class="code" href="classost_1_1_u_r_l_stream.html#ab1f293e945445bf93183e0670052b00f">00394</a>         <span class="keyword">inline</span> <a class="code" href="classost_1_1_u_r_l_stream.html#a63b25c99eb1c2813d92f52b15be7368a" title="Type of fetch.">Method</a> getMethod(<span class="keywordtype">void</span>)
<a name="l00395"></a>00395                 {<span class="keywordflow">return</span> urlmethod;};
<a name="l00396"></a>00396 
<a name="l00403"></a><a class="code" href="classost_1_1_u_r_l_stream.html#a82863fbf49c6095877c2147a670e3e71">00403</a>         <span class="keyword">inline</span> <span class="keywordtype">void</span> setTimeout(<a class="code" href="thread_8h.html#af412159e5cef839836a5e7b19ee75d1c">timeout_t</a> to)
<a name="l00404"></a>00404                 {timeout = to;};
<a name="l00405"></a>00405 
<a name="l00412"></a><a class="code" href="classost_1_1_u_r_l_stream.html#a9fbf94d5de3e2d293d6ec6101c519055">00412</a>         <span class="keyword">inline</span> <span class="keywordtype">void</span> setFollow(<span class="keywordtype">bool</span> enable)
<a name="l00413"></a>00413                 {follow = enable;};
<a name="l00414"></a>00414 
<a name="l00420"></a><a class="code" href="classost_1_1_u_r_l_stream.html#aec7ab9ffee3a1efd10209f77de75ab3b">00420</a>         <span class="keyword">inline</span> <span class="keywordtype">void</span> setProtocol(<a class="code" href="classost_1_1_u_r_l_stream.html#a368c822b755fd439f9a3293effddab5d" title="http protocol version">Protocol</a> pro)
<a name="l00421"></a>00421                 {protocol = pro;};
<a name="l00427"></a><a class="code" href="classost_1_1_u_r_l_stream.html#a07915e0717ed8670a4a733bc94e8944c">00427</a>         <span class="keyword">inline</span> <span class="keywordtype">void</span> setLocalInterface(<span class="keyword">const</span> <span class="keywordtype">char</span> *intf)
<a name="l00428"></a>00428         {localif=intf;}
<a name="l00429"></a>00429 };
<a name="l00430"></a>00430 
<a name="l00436"></a>00436 <a class="code" href="config_8h.html#ad10ef148ba8327bd530fc6c32c1e181c">__EXPORT</a> <span class="keywordtype">char</span>* urlDecode(<span class="keywordtype">char</span> *source, <span class="keywordtype">char</span> *dest = NULL);
<a name="l00437"></a>00437 
<a name="l00444"></a>00444 <a class="code" href="config_8h.html#ad10ef148ba8327bd530fc6c32c1e181c">__EXPORT</a> <span class="keywordtype">char</span>* urlEncode(<span class="keyword">const</span> <span class="keywordtype">char</span> *source, <span class="keywordtype">char</span> *dest, <span class="keywordtype">size_t</span> size);
<a name="l00445"></a>00445 
<a name="l00456"></a>00456 <a class="code" href="config_8h.html#ad10ef148ba8327bd530fc6c32c1e181c">__EXPORT</a> <span class="keywordtype">char</span>* b64Decode(<span class="keywordtype">char</span> *src, <span class="keywordtype">char</span> *dest = NULL);
<a name="l00457"></a>00457 
<a name="l00469"></a>00469 <a class="code" href="config_8h.html#ad10ef148ba8327bd530fc6c32c1e181c">__EXPORT</a> <span class="keywordtype">char</span>* b64Encode(<span class="keyword">const</span> <span class="keywordtype">char</span> *source, <span class="keywordtype">char</span> *dest, <span class="keywordtype">size_t</span> size);
<a name="l00470"></a>00470 
<a name="l00482"></a>00482 <a class="code" href="config_8h.html#ad10ef148ba8327bd530fc6c32c1e181c">__EXPORT</a> <span class="keywordtype">size_t</span> b64Encode(<span class="keyword">const</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">char</span> *src, <span class="keywordtype">size_t</span> srcsize,
<a name="l00483"></a>00483                <span class="keywordtype">char</span> *dst, <span class="keywordtype">size_t</span> dstsize);
<a name="l00484"></a>00484 
<a name="l00494"></a>00494 <a class="code" href="config_8h.html#ad10ef148ba8327bd530fc6c32c1e181c">__EXPORT</a> <span class="keywordtype">size_t</span> b64Decode(<span class="keyword">const</span> <span class="keywordtype">char</span> *src,
<a name="l00495"></a>00495                 <span class="keywordtype">unsigned</span> <span class="keywordtype">char</span> *dst, <span class="keywordtype">size_t</span> dstsize);
<a name="l00496"></a>00496 
<a name="l00502"></a>00502 <a class="code" href="config_8h.html#ad10ef148ba8327bd530fc6c32c1e181c">__EXPORT</a> String b64Encode(<span class="keyword">const</span> String&amp; src);
<a name="l00503"></a>00503 
<a name="l00511"></a>00511 <a class="code" href="config_8h.html#ad10ef148ba8327bd530fc6c32c1e181c">__EXPORT</a> String b64Decode(<span class="keyword">const</span> String&amp; src);
<a name="l00512"></a>00512 
<a name="l00519"></a>00519 <a class="code" href="config_8h.html#ad10ef148ba8327bd530fc6c32c1e181c">__EXPORT</a> String b64Encode(<span class="keyword">const</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">char</span> *src, <span class="keywordtype">size_t</span> srcsize);
<a name="l00520"></a>00520 
<a name="l00530"></a>00530 <a class="code" href="config_8h.html#ad10ef148ba8327bd530fc6c32c1e181c">__EXPORT</a> <span class="keywordtype">size_t</span> b64Decode(<span class="keyword">const</span> String&amp; src,
<a name="l00531"></a>00531                 <span class="keywordtype">unsigned</span> <span class="keywordtype">char</span> *dst, <span class="keywordtype">size_t</span> dstsize);
<a name="l00532"></a>00532 
<a name="l00533"></a>00533 
<a name="l00534"></a>00534 <span class="preprocessor">#ifdef  CCXX_NAMESPACES</span>
<a name="l00535"></a>00535 <span class="preprocessor"></span>}
<a name="l00536"></a>00536 <span class="preprocessor">#endif</span>
<a name="l00537"></a>00537 <span class="preprocessor"></span>
<a name="l00538"></a>00538 <span class="preprocessor">#endif</span>
<a name="l00539"></a>00539 <span class="preprocessor"></span>
</pre></div></div>
<hr class="footer"/><address style="text-align: right;"><small>Generated on Fri Nov 12 09:57:39 2010 for GNU CommonC++ by&nbsp;
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.6.3 </small></address>
</body>
</html>