client_8h-source.html 6.67 KB
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
<title>xmlrpc: include/client.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.5.8 -->
<div class="navigation" id="top">
  <div class="tabs">
    <ul>
      <li><a href="main.html"><span>Main&nbsp;Page</span></a></li>
      <li><a href="annotated.html"><span>Data&nbsp;Structures</span></a></li>
      <li class="current"><a href="files.html"><span>Files</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>Globals</span></a></li>
    </ul>
  </div>
<h1>include/client.h</h1><a href="client_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="preprocessor">#ifndef __CLIENT_H__</span>
<a name="l00002"></a>00002 <span class="preprocessor"></span><span class="preprocessor">#define __CLIENT_H__</span>
<a name="l00003"></a>00003 <span class="preprocessor"></span>
<a name="l00004"></a>00004 <span class="preprocessor">#include &lt;stdio.h&gt;</span> <span class="comment">/* for FILE */</span>
<a name="l00005"></a>00005 
<a name="l00006"></a>00006 <span class="preprocessor">#include &lt;expat.h&gt;</span>
<a name="l00007"></a>00007 
<a name="l00008"></a>00008 <span class="preprocessor">#include "<a class="code" href="httpRequest_8h.html">httpRequest.h</a>"</span>
<a name="l00009"></a>00009 
<a name="l00010"></a><a class="code" href="client_8h.html#a0534241791f23ec8098503582406166">00010</a> <span class="preprocessor">#define READBUFSIZE    2048  </span><span class="comment">/* Size of receive readBuffer */</span>
<a name="l00011"></a><a class="code" href="client_8h.html#eefa2efc8515c7f8334de344e8a07fbf">00011</a> <span class="preprocessor">#define CLIENTMULTMAX  512U   </span><span class="comment">/* 1MB maximum size the readbuffer may grow */</span>
<a name="l00012"></a>00012 
<a name="l00013"></a><a class="code" href="client_8h.html#f150df8f008146f177d67862d2569834">00013</a> <span class="preprocessor">#define READ_ERR_LONGLINE   -2</span>
<a name="l00014"></a><a class="code" href="client_8h.html#4f090ce41ed48b83e309d8fce71db4ab">00014</a> <span class="preprocessor"></span><span class="preprocessor">#define READ_ERR_MEMORY     -3</span>
<a name="l00015"></a>00015 <span class="preprocessor"></span>
<a name="l00016"></a>00016 <span class="keyword">extern</span> <span class="keywordtype">int</span> <a class="code" href="client_8h.html#0b2caeb4b6f130be43e5a2f0267dd453">verbose</a>;
<a name="l00017"></a>00017 
<a name="l00018"></a><a class="code" href="structtClient.html">00018</a> <span class="keyword">typedef</span> <span class="keyword">struct </span>{
<a name="l00019"></a><a class="code" href="structtClient.html#fdcb6fae6d4162315adc430dc34e3df0">00019</a>     <span class="keywordtype">int</span>          socket;
<a name="l00020"></a><a class="code" href="structtClient.html#70a954f8e1e6df925d78b34b9f2f162a">00020</a>     <span class="keywordtype">char</span> *       readBuffer;
<a name="l00021"></a><a class="code" href="structtClient.html#99d73b0cba75199cb16952751fdcc52d">00021</a>     <span class="keywordtype">char</span> *       <a class="code" href="writeBuffer_8h.html#a947cab623514e5a9c9700bca074b77e">writeBuffer</a>;
<a name="l00022"></a><a class="code" href="structtClient.html#0948ef13430298f28cb48199119136c1">00022</a>     <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> readPos;
<a name="l00023"></a><a class="code" href="structtClient.html#97da33ce83548b5900f11e29d5cec8d1">00023</a>     <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> writePos;
<a name="l00024"></a><a class="code" href="structtClient.html#c55c66265d03aec3d760a0ed54b08a1f">00024</a>     <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> readBufMult;
<a name="l00025"></a><a class="code" href="structtClient.html#e23a04145b9c0cc1262721432a43c947">00025</a>     <span class="keywordtype">char</span>         remoteAddr[16];
<a name="l00026"></a>00026 
<a name="l00027"></a><a class="code" href="structtClient.html#33623f89815acd8a2822a1f04cafe844">00027</a>     <a class="code" href="structtHttpHeader.html">tHttpHeader</a>  httpHeader;
<a name="l00028"></a><a class="code" href="structtClient.html#00e4a47041701700d5d9e418773b01a1">00028</a>     <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> bodyLenRemaining;
<a name="l00029"></a>00029 
<a name="l00030"></a><a class="code" href="structtClient.html#b8f8ab3f31d6cf8fd4b3b527ef9c0107">00030</a>     XML_Parser   parser;
<a name="l00031"></a>00031 } <a class="code" href="structtClient.html">tClient</a>;
<a name="l00032"></a>00032 
<a name="l00033"></a>00033 
<a name="l00034"></a>00034 <span class="keywordtype">void</span>   <a class="code" href="client_8h.html#a9dad65338aa78062b23a924ae1d2b59">clientClose</a>(<a class="code" href="structtClient.html">tClient</a> * client);
<a name="l00035"></a>00035 <span class="keywordtype">int</span>    <a class="code" href="client_8h.html#6504ff36553f8008b9ee1d52aa977740">clientRead</a>(<a class="code" href="structtClient.html">tClient</a> * client);
<a name="l00036"></a>00036 <span class="keywordtype">int</span>    <a class="code" href="client_8h.html#ab1a321bfd432ac9ec8818ad3eb6e591">clientWrite</a>(<a class="code" href="structtClient.html">tClient</a> * client);
<a name="l00037"></a>00037 <span class="keywordtype">char</span> * <a class="code" href="client_8h.html#9741eb2a0853766868828c722e67c068">clientGetLine</a>(<a class="code" href="structtClient.html">tClient</a> *, <span class="keyword">const</span> <span class="keywordtype">char</span> *, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> *);
<a name="l00038"></a>00038 <span class="keywordtype">char</span> * <a class="code" href="client_8h.html#a920588f9122184bad211ae912d1dbc4">clientRemoveLine</a>(<a class="code" href="structtClient.html">tClient</a> *, <span class="keyword">const</span> <span class="keywordtype">char</span> *, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> *);
<a name="l00039"></a>00039 
<a name="l00040"></a>00040 <span class="preprocessor">#endif // __CLIENT_H__</span>
</pre></div></div>
<hr size="1"><address style="text-align: right;"><small>Generated on Sun Oct 10 01:24:35 2010 for xmlrpc by&nbsp;
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.8 </small></address>
</body>
</html>