server_8h-source.html 4.66 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/server.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/server.h</h1><a href="server_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 __SERVER_H__</span>
<a name="l00002"></a>00002 <span class="preprocessor"></span><span class="preprocessor">#define __SERVER_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 printf() and fprintf() */</span>
<a name="l00005"></a>00005 <span class="preprocessor">#include &lt;sys/select.h&gt;</span> <span class="comment">/* for select system call and related */</span>
<a name="l00006"></a>00006 
<a name="l00007"></a>00007 <span class="preprocessor">#include "<a class="code" href="client_8h.html">client.h</a>"</span>
<a name="l00008"></a>00008 
<a name="l00009"></a><a class="code" href="structtServer.html">00009</a> <span class="keyword">typedef</span> <span class="keyword">struct </span>{
<a name="l00010"></a><a class="code" href="structtServer.html#0f35110b14ced93ae0c47173e37d707d">00010</a>     <span class="keywordtype">int</span>            servSock;
<a name="l00011"></a><a class="code" href="structtServer.html#1c13c660dcf97444bdeee1f52bace303">00011</a>     <a class="code" href="structtClient.html">tClient</a>        clients[FD_SETSIZE];
<a name="l00012"></a><a class="code" href="structtServer.html#145a672dfaec08ce54c02dbc9f3b11ae">00012</a>     <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span>   maxFd;
<a name="l00013"></a><a class="code" href="structtServer.html#f1e1c8e11bd347994ebc641bcac4c0fb">00013</a>     fd_set         socks;
<a name="l00014"></a><a class="code" href="structtServer.html#17180f100090e101569a3a95934c38aa">00014</a>     <span class="keywordtype">char</span>           logPath[512];
<a name="l00015"></a><a class="code" href="structtServer.html#c932a28b0613bb0276c1ceb6b3fee454">00015</a>     <span class="keywordtype">char</span>           namePat[512];
<a name="l00016"></a><a class="code" href="structtServer.html#8fc3e5e54d17d86d21874d5987a080af">00016</a>     FILE         * wHandle;
<a name="l00017"></a>00017 } <a class="code" href="structtServer.html">tServer</a>;
<a name="l00018"></a>00018 
<a name="l00019"></a>00019 
<a name="l00020"></a>00020 <span class="keywordtype">void</span> <a class="code" href="server_8h.html#50decfdd3550b2490a1b9448a313cbf9">serverShutdown</a>(<a class="code" href="structtServer.html">tServer</a> * server);
<a name="l00021"></a>00021 <span class="keywordtype">void</span> <a class="code" href="server_8h.html#68050069ed3a2e05cb02440090c89a1f">serverInit</a>(
<a name="l00022"></a>00022         <a class="code" href="structtServer.html">tServer</a>      * server,
<a name="l00023"></a>00023         <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span>   port,
<a name="l00024"></a>00024         <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span>   pending,
<a name="l00025"></a>00025         <span class="keyword">const</span> <span class="keywordtype">char</span>   * logPath,
<a name="l00026"></a>00026         <span class="keyword">const</span> <span class="keywordtype">char</span>   * namePat);
<a name="l00027"></a>00027 <span class="keywordtype">void</span> <a class="code" href="server_8h.html#208ea34b5a69f6ff0d48ed85c9a6f9eb">serverRun</a>(<a class="code" href="structtServer.html">tServer</a> * server);
<a name="l00028"></a>00028 
<a name="l00029"></a>00029 <span class="preprocessor">#endif // __SERVER_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>