paradigm_3/html/
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
<title>paradigm.cpp File Reference</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
</head><body>
<!-- Generated by Doxygen 1.2.17 -->
<center>
<a class="qindex" href="main.html">Main Page</a> &nbsp; <a class="qindex" href="namespaces.html">Namespace List</a> &nbsp; <a class="qindex" href="classes.html">Alphabetical List</a> &nbsp; <a class="qindex" href="annotated.html">Compound List</a> &nbsp; <a class="qindex" href="files.html">File List</a> &nbsp; <a class="qindex" href="functions.html">Compound Members</a> &nbsp; <a class="qindex" href="globals.html">File Members</a> &nbsp; <a class="qindex" href="pages.html">Related Pages</a> &nbsp; </center>
<hr><h1>paradigm.cpp File Reference</h1><code>#include "<a class="el" href="sysconfig_8h-source.html">sysconfig.h</a>"</code><br>
<code>#include "<a class="el" href="server_8h-source.html">server.h</a>"</code><br>
<code>#include "<a class="el" href="event_8h-source.html">event.h</a>"</code><br>
<code>#include "<a class="el" href="eventqueue_8h-source.html">eventqueue.h</a>"</code><br>
<code>#include "<a class="el" href="user_8h-source.html">user.h</a>"</code><br>
<code>#include &lt;condefs.h&gt;</code><br>

<p>
Include dependency graph for paradigm.cpp:<p><center><img src="paradigm_8cpp__incl.gif" border="0" usemap="#paradigm.cpp_map" alt="Include dependency graph"></center>
<map name="paradigm.cpp_map">
<area href="sysconfig_8h.html" shape="rect" coords="133,0,208,19" alt="">
<area href="server_8h.html" shape="rect" coords="143,93,199,112" alt="">
<area href="eventqueue_8h.html" shape="rect" coords="1,71,84,89" alt="">
<area href="event_8h.html" shape="rect" coords="145,136,196,155" alt="">
<area href="user_8h.html" shape="rect" coords="148,179,193,197" alt="">
</map>

<p>
<a href="paradigm_8cpp-source.html">Go to the source code of this file.</a><table border=0 cellpadding=0 cellspacing=0>
<tr><td></td></tr>
<tr><td colspan=2><br><h2>Functions</h2></td></tr>
<tr><td nowrap align=right valign=top>&nbsp;</td><td valign=bottom><a class="el" href="paradigm_8cpp.html#a3">USEUNIT</a> ("connection.cpp")</td></tr>
<tr><td nowrap align=right valign=top>&nbsp;</td><td valign=bottom><a class="el" href="paradigm_8cpp.html#a4">USEUNIT</a> ("server.cpp")</td></tr>
<tr><td nowrap align=right valign=top>&nbsp;</td><td valign=bottom><a class="el" href="paradigm_8cpp.html#a5">USEUNIT</a> ("socket.cpp")</td></tr>
<tr><td nowrap align=right valign=top>&nbsp;</td><td valign=bottom><a class="el" href="paradigm_8cpp.html#a6">USEUNIT</a> ("log.cpp")</td></tr>
<tr><td nowrap align=right valign=top>&nbsp;</td><td valign=bottom><a class="el" href="paradigm_8cpp.html#a7">USEUNIT</a> ("event.cpp")</td></tr>
<tr><td nowrap align=right valign=top>&nbsp;</td><td valign=bottom><a class="el" href="paradigm_8cpp.html#a8">USEUNIT</a> ("eventqueue.cpp")</td></tr>
<tr><td nowrap align=right valign=top>&nbsp;</td><td valign=bottom><a class="el" href="paradigm_8cpp.html#a9">USEUNIT</a> ("user.cpp")</td></tr>
<tr><td nowrap align=right valign=top>void&nbsp;</td><td valign=bottom><a class="el" href="paradigm_8cpp.html#a10">StartServer</a> (void *parms)</td></tr>
<tr><td nowrap align=right valign=top>void&nbsp;</td><td valign=bottom><a class="el" href="paradigm_8cpp.html#a11">Chat</a> ()</td></tr>
<tr><td nowrap align=right valign=top>int&nbsp;</td><td valign=bottom><a class="el" href="paradigm_8cpp.html#a12">main</a> (int argc, char **argv)</td></tr>
<tr><td colspan=2><br><h2>Variables</h2></td></tr>
<tr><td nowrap align=right valign=top><a class="el" href="classEventQueue.html">EventQueue</a> *&nbsp;</td><td valign=bottom><a class="el" href="paradigm_8cpp.html#a0">g_chat_to_server</a> = 0</td></tr>
<tr><td nowrap align=right valign=top><a class="el" href="classEventQueue.html">EventQueue</a> *&nbsp;</td><td valign=bottom><a class="el" href="paradigm_8cpp.html#a1">g_server_to_chat</a> = 0</td></tr>
<tr><td nowrap align=right valign=top><a class="el" href="classLog.html">Log</a> *&nbsp;</td><td valign=bottom><a class="el" href="paradigm_8cpp.html#a2">g_log</a> = 0</td></tr>
</table>
<hr><a name="_details"></a><h2>Detailed Description</h2>
 This is the main entry point that starts the Paradigm server
<p>
<dl compact><dt><b>Author: </b></dt><dd>
Jon A. Lambert </dl><dl compact><dt><b>Date: </b></dt><dd>
05/02/2003 </dl><dl compact><dt><b>Version: </b></dt><dd>
0.30</dl><dl compact><dt><b>Note: </b></dt><dd>
 Commands<br>
<ul>
<li>@shutdown - shuts down the server</ul>
</dl>
<p>
Definition in file <a class="el" href="paradigm_8cpp-source.html">paradigm.cpp</a>.<hr><h2>Function Documentation</h2>
<a name="a11" doxytag="paradigm.cpp::Chat"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
  <tr>
    <td class="md">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> void Chat </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="mdname1" valign="top" nowrap>&nbsp;          </td>
          <td class="md" valign="top">)&nbsp;</td>
          <td class="md" nowrap></td>
        </tr>

      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>

<p>
Definition at line <a class="el" href="paradigm_8cpp-source.html#l00237">237</a> of file <a class="el" href="paradigm_8cpp-source.html">paradigm.cpp</a>.
<p>
References <a class="el" href="event_8h.html#a5a1">CONNECT_E</a>, <a class="el" href="event_8h.html#a5a2">DISCONNECT_E</a>, <a class="el" href="user_8cpp-source.html#l00078">User::Id</a>(), <a class="el" href="event_8h-source.html#l00040">Event::mClientId</a>, <a class="el" href="event_8h-source.html#l00041">Event::mDataLen</a>, <a class="el" href="event_8h.html#a5a3">MESSAGE_E</a>, <a class="el" href="event_8h-source.html#l00039">Event::mEventType</a>, <a class="el" href="event_8h-source.html#l00042">Event::mpData</a>, <a class="el" href="event_8h.html#a5a0">NONE_E</a>, <a class="el" href="eventqueue_8cpp-source.html#l00068">EventQueue::Pop</a>(), <a class="el" href="eventqueue_8cpp-source.html#l00052">EventQueue::Push</a>(), and <a class="el" href="event_8h.html#a5a4">SHUTDOWN_E</a>.
<p>
Referenced by <a class="el" href="paradigm_8cpp-source.html#l00175">main</a>().    </td>
  </tr>
</table>
<a name="a12" doxytag="paradigm.cpp::main"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
  <tr>
    <td class="md">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> int main </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top">int&nbsp;</td>
          <td class="mdname" nowrap>&nbsp; <em>argc</em>, </td>
        </tr>
        <tr>
          <td></td>
          <td></td>
          <td class="md" nowrap>char **&nbsp;</td>
          <td class="mdname" nowrap>&nbsp; <em>argv</em></td>
        </tr>
        <tr>
          <td></td>
          <td class="md">)&nbsp;</td>
          <td class="md" colspan="2"></td>
        </tr>

      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>

<p>
Definition at line <a class="el" href="paradigm_8cpp-source.html#l00175">175</a> of file <a class="el" href="paradigm_8cpp-source.html">paradigm.cpp</a>.
<p>
References <a class="el" href="server_8cpp-source.html#l00041">Server::Boot</a>(), <a class="el" href="paradigm_8cpp-source.html#l00237">Chat</a>(), <a class="el" href="eventqueue_8cpp-source.html#l00099">EventQueue::IsOk</a>(), <a class="el" href="paradigm_8cpp-source.html#l00224">StartServer</a>(), <a class="el" href="sysconfig_8h-source.html#l00126">StartThread</a>, <a class="el" href="sysconfig_8h-source.html#l00125">THREADHANDLE_T</a>, and <a class="el" href="log_8cpp-source.html#l00089">Log::Write</a>().    </td>
  </tr>
</table>
<a name="a10" doxytag="paradigm.cpp::StartServer"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
  <tr>
    <td class="md">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> void StartServer </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top">void *&nbsp;</td>
          <td class="mdname1" valign="top" nowrap>&nbsp; <em>parms</em>          </td>
          <td class="md" valign="top">)&nbsp;</td>
          <td class="md" nowrap></td>
        </tr>

      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
This is the thread that starts and runs the <a class="el" href="classServer.html">Server</a>. 
<p>
Definition at line <a class="el" href="paradigm_8cpp-source.html#l00224">224</a> of file <a class="el" href="paradigm_8cpp-source.html">paradigm.cpp</a>.
<p>
References <a class="el" href="server_8cpp-source.html#l00103">Server::Run</a>().
<p>
Referenced by <a class="el" href="paradigm_8cpp-source.html#l00175">main</a>().    </td>
  </tr>
</table>
<a name="a9" doxytag="paradigm.cpp::USEUNIT"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
  <tr>
    <td class="md">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> USEUNIT </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top">"user.cpp"&nbsp;</td>
          <td class="mdname1" valign="top" nowrap>&nbsp;          </td>
          <td class="md" valign="top">)&nbsp;</td>
          <td class="md" nowrap></td>
        </tr>

      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
    </td>
  </tr>
</table>
<a name="a8" doxytag="paradigm.cpp::USEUNIT"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
  <tr>
    <td class="md">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> USEUNIT </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top">"eventqueue.cpp"&nbsp;</td>
          <td class="mdname1" valign="top" nowrap>&nbsp;          </td>
          <td class="md" valign="top">)&nbsp;</td>
          <td class="md" nowrap></td>
        </tr>

      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
    </td>
  </tr>
</table>
<a name="a7" doxytag="paradigm.cpp::USEUNIT"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
  <tr>
    <td class="md">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> USEUNIT </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top">"event.cpp"&nbsp;</td>
          <td class="mdname1" valign="top" nowrap>&nbsp;          </td>
          <td class="md" valign="top">)&nbsp;</td>
          <td class="md" nowrap></td>
        </tr>

      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
    </td>
  </tr>
</table>
<a name="a6" doxytag="paradigm.cpp::USEUNIT"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
  <tr>
    <td class="md">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> USEUNIT </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top">"log.cpp"&nbsp;</td>
          <td class="mdname1" valign="top" nowrap>&nbsp;          </td>
          <td class="md" valign="top">)&nbsp;</td>
          <td class="md" nowrap></td>
        </tr>

      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
    </td>
  </tr>
</table>
<a name="a5" doxytag="paradigm.cpp::USEUNIT"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
  <tr>
    <td class="md">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> USEUNIT </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top">"socket.cpp"&nbsp;</td>
          <td class="mdname1" valign="top" nowrap>&nbsp;          </td>
          <td class="md" valign="top">)&nbsp;</td>
          <td class="md" nowrap></td>
        </tr>

      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
    </td>
  </tr>
</table>
<a name="a4" doxytag="paradigm.cpp::USEUNIT"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
  <tr>
    <td class="md">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> USEUNIT </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top">"server.cpp"&nbsp;</td>
          <td class="mdname1" valign="top" nowrap>&nbsp;          </td>
          <td class="md" valign="top">)&nbsp;</td>
          <td class="md" nowrap></td>
        </tr>

      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
    </td>
  </tr>
</table>
<a name="a3" doxytag="paradigm.cpp::USEUNIT"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
  <tr>
    <td class="md">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> USEUNIT </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top">"connection.cpp"&nbsp;</td>
          <td class="mdname1" valign="top" nowrap>&nbsp;          </td>
          <td class="md" valign="top">)&nbsp;</td>
          <td class="md" nowrap></td>
        </tr>

      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
    </td>
  </tr>
</table>
<hr><h2>Variable Documentation</h2>
<a name="a0" doxytag="paradigm.cpp::g_chat_to_server"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
  <tr>
    <td class="md">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> <a class="el" href="classEventQueue.html">EventQueue</a>* g_chat_to_server = 0
      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>

<p>
Definition at line <a class="el" href="paradigm_8cpp-source.html#l00162">162</a> of file <a class="el" href="paradigm_8cpp-source.html">paradigm.cpp</a>.    </td>
  </tr>
</table>
<a name="a2" doxytag="paradigm.cpp::g_log"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
  <tr>
    <td class="md">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> <a class="el" href="classLog.html">Log</a>* g_log = 0
      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>

<p>
Definition at line <a class="el" href="paradigm_8cpp-source.html#l00164">164</a> of file <a class="el" href="paradigm_8cpp-source.html">paradigm.cpp</a>.    </td>
  </tr>
</table>
<a name="a1" doxytag="paradigm.cpp::g_server_to_chat"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
  <tr>
    <td class="md">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top"> <a class="el" href="classEventQueue.html">EventQueue</a>* g_server_to_chat = 0
      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>

<p>
Definition at line <a class="el" href="paradigm_8cpp-source.html#l00163">163</a> of file <a class="el" href="paradigm_8cpp-source.html">paradigm.cpp</a>.    </td>
  </tr>
</table>
<hr><address style="align: right;"><small>Generated on Mon Mar 29 23:12:55 2004 for Paradigm by
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border=0 
width=110 height=53></a>1.2.17 </small></address>
</body>
</html>