structServer.html 15 KB
<!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>server: Server Struct Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/search.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript">
$(document).ready(initResizable);
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
</head>
<body onload='searchBox.OnSelectItem(0);'>
<!-- Generated by Doxygen 1.7.3 -->
<script type="text/javascript"><!--
var searchBox = new SearchBox("searchBox", "search",false,'Search');
--></script>
<div id="top">
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">server&#160;<span id="projectnumber">0.0.1</span></div>
   <div id="projectbrief">basicserverinfrastructure</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li class="current"><a href="annotated.html"><span>Data&#160;Structures</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
      <li id="searchli">
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>Data&#160;Structures</span></a></li>
      <li><a href="classes.html"><span>Data&#160;Structure&#160;Index</span></a></li>
      <li><a href="functions.html"><span>Data&#160;Fields</span></a></li>
    </ul>
  </div>
</div>
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
  initNavTree('structServer.html','');
</script>
<div id="doc-content">
<div class="header">
  <div class="summary">
<a href="#pub-attribs">Data Fields</a>  </div>
  <div class="headertitle">
<h1>Server Struct Reference</h1>  </div>
</div>
<div class="contents">
<!-- doxytag: class="Server" -->
<p><code>#include &lt;<a class="el" href="server_8h_source.html">server.h</a>&gt;</code></p>
<div class="dynheader">
Collaboration diagram for Server:</div>
<div class="dyncontent">
<div class="center"><img src="structServer__coll__graph.png" border="0" usemap="#Server_coll__map" alt="Collaboration graph"/></div>
<map name="Server_coll__map" id="Server_coll__map">
<area shape="rect" id="node2" href="structSock.html" title="{Sock\n|+ log\l+ port\l+ handle\l|}" alt="" coords="76,153,148,266"/><area shape="rect" id="node4" href="structLogger.html" title="{Logger\n|+ min_level\l|}" alt="" coords="5,6,93,87"/></map>
<center><span class="legend">[<a target="top" href="graph_legend.html">legend</a>]</span></center></div>
<table class="memberdecls">
<tr><td colspan="2"><h2><a name="pub-attribs"></a>
Data Fields</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="structLogger.html">Logger</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structServer.html#ab50b5b20130564ba7e9a12032070882f">logger</a></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="structSock.html">Sock</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structServer.html#a4cdc9c048a3a1846683fdedc2269c0f8">sock</a></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structServer.html#a241c1cbc117f318453934fa10c2c4a23">reader</a></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">nfds_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structServer.html#a156e386a6d4c73e6233531706a091fb3">nfds</a></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">nfds_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structServer.html#a88eb6b108b1d22967076fc1d9e21c4d4">ndel</a></td></tr>
<tr><td class="memItemLeft" >struct {</td></tr>
<tr><td class="memItemLeft" >&#160;&#160;&#160;<a class="el" href="structSock.html">Sock</a>&#160;&#160;&#160;<a class="el" href="structServer.html#a4cdc9c048a3a1846683fdedc2269c0f8">sock</a></td></tr>
<tr><td class="memItemLeft" >&#160;&#160;&#160;void *&#160;&#160;&#160;<a class="el" href="structServer.html#a241c1cbc117f318453934fa10c2c4a23">reader</a></td></tr>
<tr><td class="memItemLeft" >&#160;&#160;&#160;char&#160;&#160;&#160;<a class="el" href="structServer.html#a8914561393eb8d570a2cfb5348b6aeb7">wbuf</a> [2048]</td></tr>
<tr><td class="memItemLeft" >&#160;&#160;&#160;char *&#160;&#160;&#160;<a class="el" href="structServer.html#a898e067058a6db3a8d5cf3968fc79c8a">rbuf</a></td></tr>
<tr><td class="memItemLeft" >&#160;&#160;&#160;unsigned int&#160;&#160;&#160;<a class="el" href="structServer.html#af39a8d40450b5c6a947be2c1a95c0943">rpos</a></td></tr>
<tr><td class="memItemLeft" >&#160;&#160;&#160;unsigned int&#160;&#160;&#160;<a class="el" href="structServer.html#a95e4cdf2ef584a6709f794d58d9190b3">wpos</a></td></tr>
<tr><td class="memItemLeft" valign="top">}&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structServer.html#a269c01ae6736206cdd9a5e1d5ad2398b">conns</a> [POLL_FD_NSIZE]</td></tr>
</table>
<hr/><a name="_details"></a><h2>Detailed Description</h2>
<div class="textblock">
<p>Definition at line <a class="el" href="server_8h_source.html#l00024">24</a> of file <a class="el" href="server_8h_source.html">server.h</a>.</p>
</div><hr/><h2>Field Documentation</h2>
<a class="anchor" id="a269c01ae6736206cdd9a5e1d5ad2398b"></a><!-- doxytag: member="Server::conns" ref="a269c01ae6736206cdd9a5e1d5ad2398b" args="[POLL_FD_NSIZE]" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">struct { ... }   <a class="el" href="structServer.html#a269c01ae6736206cdd9a5e1d5ad2398b">Server::conns</a>[POLL_FD_NSIZE]</td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="ab50b5b20130564ba7e9a12032070882f"></a><!-- doxytag: member="Server::logger" ref="ab50b5b20130564ba7e9a12032070882f" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="structLogger.html">Logger</a> <a class="el" href="structServer.html#ab50b5b20130564ba7e9a12032070882f">Server::logger</a></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Definition at line <a class="el" href="server_8h_source.html#l00060">60</a> of file <a class="el" href="server_8h_source.html">server.h</a>.</p>

</div>
</div>
<a class="anchor" id="a88eb6b108b1d22967076fc1d9e21c4d4"></a><!-- doxytag: member="Server::ndel" ref="a88eb6b108b1d22967076fc1d9e21c4d4" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">nfds_t <a class="el" href="structServer.html#a88eb6b108b1d22967076fc1d9e21c4d4">Server::ndel</a></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Definition at line <a class="el" href="server_8h_source.html#l00073">73</a> of file <a class="el" href="server_8h_source.html">server.h</a>.</p>

</div>
</div>
<a class="anchor" id="a156e386a6d4c73e6233531706a091fb3"></a><!-- doxytag: member="Server::nfds" ref="a156e386a6d4c73e6233531706a091fb3" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">nfds_t <a class="el" href="structServer.html#a156e386a6d4c73e6233531706a091fb3">Server::nfds</a></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>loeschen: fds[i].event auf 0 dann nfds um die anzahl der geloeschten elemente verkleinern. die in close pending stehenden socket schliessen. vor jedem poll qsort auf fds ueber event. nach dem poll qsort auf fds ueber revent und reuckgebewert von poll beruecksichtigen. </p>

<p>Definition at line <a class="el" href="server_8h_source.html#l00072">72</a> of file <a class="el" href="server_8h_source.html">server.h</a>.</p>

</div>
</div>
<a class="anchor" id="a898e067058a6db3a8d5cf3968fc79c8a"></a><!-- doxytag: member="Server::rbuf" ref="a898e067058a6db3a8d5cf3968fc79c8a" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">char* <a class="el" href="structServer.html#a898e067058a6db3a8d5cf3968fc79c8a">Server::rbuf</a></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Definition at line <a class="el" href="server_8h_source.html#l00081">81</a> of file <a class="el" href="server_8h_source.html">server.h</a>.</p>

</div>
</div>
<a class="anchor" id="a241c1cbc117f318453934fa10c2c4a23"></a><!-- doxytag: member="Server::reader" ref="a241c1cbc117f318453934fa10c2c4a23" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void* <a class="el" href="structServer.html#a241c1cbc117f318453934fa10c2c4a23">Server::reader</a></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Definition at line <a class="el" href="server_8h_source.html#l00062">62</a> of file <a class="el" href="server_8h_source.html">server.h</a>.</p>

</div>
</div>
<a class="anchor" id="af39a8d40450b5c6a947be2c1a95c0943"></a><!-- doxytag: member="Server::rpos" ref="af39a8d40450b5c6a947be2c1a95c0943" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">unsigned int <a class="el" href="structServer.html#af39a8d40450b5c6a947be2c1a95c0943">Server::rpos</a></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Definition at line <a class="el" href="server_8h_source.html#l00082">82</a> of file <a class="el" href="server_8h_source.html">server.h</a>.</p>

</div>
</div>
<a class="anchor" id="a4cdc9c048a3a1846683fdedc2269c0f8"></a><!-- doxytag: member="Server::sock" ref="a4cdc9c048a3a1846683fdedc2269c0f8" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="structSock.html">Sock</a> <a class="el" href="structServer.html#a4cdc9c048a3a1846683fdedc2269c0f8">Server::sock</a></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Definition at line <a class="el" href="server_8h_source.html#l00061">61</a> of file <a class="el" href="server_8h_source.html">server.h</a>.</p>

</div>
</div>
<a class="anchor" id="a8914561393eb8d570a2cfb5348b6aeb7"></a><!-- doxytag: member="Server::wbuf" ref="a8914561393eb8d570a2cfb5348b6aeb7" args="[2048]" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">char <a class="el" href="structServer.html#a8914561393eb8d570a2cfb5348b6aeb7">Server::wbuf</a>[2048]</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Definition at line <a class="el" href="server_8h_source.html#l00080">80</a> of file <a class="el" href="server_8h_source.html">server.h</a>.</p>

</div>
</div>
<a class="anchor" id="a95e4cdf2ef584a6709f794d58d9190b3"></a><!-- doxytag: member="Server::wpos" ref="a95e4cdf2ef584a6709f794d58d9190b3" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">unsigned int <a class="el" href="structServer.html#a95e4cdf2ef584a6709f794d58d9190b3">Server::wpos</a></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Definition at line <a class="el" href="server_8h_source.html#l00083">83</a> of file <a class="el" href="server_8h_source.html">server.h</a>.</p>

</div>
</div>
<hr/>The documentation for this struct was generated from the following file:<ul>
<li>include/<a class="el" href="server_8h_source.html">server.h</a></li>
</ul>
</div>
</div>
  <div id="nav-path" class="navpath">
    <ul>
      <li class="navelem"><a class="el" href="structServer.html">Server</a>      </li>
      <li class="footer">Generated on Wed Feb 8 2012 13:04:40 for server by&#160;
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.7.3 </li>
    </ul>
  </div>
<!--- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Data Structures</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Typedefs</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&#160;</span>Enumerator</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(8)"><span class="SelectionMark">&#160;</span>Defines</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>


</body>
</html>