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>Connection class 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>Connection Class Reference</h1><code>#include &lt;<a class="el" href="connection_8h-source.html">connection.h</a>&gt;</code>
<p>
Collaboration diagram for Connection:<p><center><img src="classConnection__coll__graph.gif" border="0" usemap="#Connection__coll__map" alt="Collaboration graph"></center>
<map name="Connection__coll__map">
<area href="classSocket.html" shape="rect" coords="0,99,48,117" alt="">
<area href="classServer.html" shape="rect" coords="99,99,147,117" alt="">
<area href="classLog.html" shape="rect" coords="55,0,92,19" alt="">
<area href="classEventQueue.html" shape="rect" coords="132,0,209,19" alt="">
</map>
<center><font size="2">[<a target="top" href="graph_legend.html">legend</a>]</font></center><a href="classConnection-members.html">List of all members.</a><table border=0 cellpadding=0 cellspacing=0>
<tr><td></td></tr>
<tr><td colspan=2><br><h2>Public Methods</h2></td></tr>
<tr><td nowrap align=right valign=top>&nbsp;</td><td valign=bottom><a class="el" href="classConnection.html#a0">Connection</a> (SOCKET sock, <a class="el" href="classServer.html">Server</a> *server)</td></tr>
<tr><td nowrap align=right valign=top>virtual&nbsp;</td><td valign=bottom><a class="el" href="classConnection.html#a1">~Connection</a> ()</td></tr>
<tr><td nowrap align=right valign=top>&nbsp;</td><td valign=bottom><a class="el" href="classConnection.html#a2">Connection</a> (const Connection &amp;r_conn)</td></tr>
<tr><td nowrap align=right valign=top>bool&nbsp;</td><td valign=bottom><a class="el" href="classConnection.html#a3">operator==</a> (const Connection &amp;r_conn) const</td></tr>
<tr><td nowrap align=right valign=top>virtual void&nbsp;</td><td valign=bottom><a class="el" href="classConnection.html#a4">HandleInput</a> ()</td></tr>
<tr><td nowrap align=right valign=top>virtual void&nbsp;</td><td valign=bottom><a class="el" href="classConnection.html#a5">HandleOutput</a> ()</td></tr>
<tr><td nowrap align=right valign=top>virtual bool&nbsp;</td><td valign=bottom><a class="el" href="classConnection.html#a6">CanBeDisconnected</a> ()</td></tr>
<tr><td nowrap align=right valign=top>virtual bool&nbsp;</td><td valign=bottom><a class="el" href="classConnection.html#a7">HasOutput</a> ()</td></tr>
<tr><td nowrap align=right valign=top>virtual void&nbsp;</td><td valign=bottom><a class="el" href="classConnection.html#a8">Disconnect</a> ()</td></tr>
<tr><td nowrap align=right valign=top>virtual void&nbsp;</td><td valign=bottom><a class="el" href="classConnection.html#a9">SendMsg</a> (const string &amp;r_msg)</td></tr>
<tr><td nowrap align=right valign=top>virtual string *&nbsp;</td><td valign=bottom><a class="el" href="classConnection.html#a10">ReadMsg</a> ()</td></tr>
<tr><td nowrap align=right valign=top>virtual SOCKET&nbsp;</td><td valign=bottom><a class="el" href="classConnection.html#a11">GetSocket</a> () const</td></tr>
<tr><td colspan=2><br><h2>Protected Methods</h2></td></tr>
<tr><td nowrap align=right valign=top>Connection &amp;&nbsp;</td><td valign=bottom><a class="el" href="classConnection.html#b0">operator=</a> (const Connection &amp;r_conn)</td></tr>
<tr><td colspan=2><br><h2>Protected Attributes</h2></td></tr>
<tr><td nowrap align=right valign=top><a class="el" href="classServer.html">Server</a> *&nbsp;</td><td valign=bottom><a class="el" href="classConnection.html#n0">mServer</a></td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em><a class="el" href="classServer.html">Server</a> serving this connection.</em> <a href="#n0"></a><em></em></font><br><br></td></tr>
<tr><td nowrap align=right valign=top><a class="el" href="classSocket.html">Socket</a> *&nbsp;</td><td valign=bottom><a class="el" href="classConnection.html#n1">mSock</a></td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>Network <a class="el" href="classSocket.html">Socket</a> stream.</em> <a href="#n1"></a><em></em></font><br><br></td></tr>
<tr><td nowrap align=right valign=top>bool&nbsp;</td><td valign=bottom><a class="el" href="classConnection.html#n2">mDisconnectable</a></td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>Indicates connection is to be disconnected.</em> <a href="#n2"></a><em></em></font><br><br></td></tr>
<tr><td nowrap align=right valign=top>list&lt; string &gt;&nbsp;</td><td valign=bottom><a class="el" href="classConnection.html#n3">mInBuffer</a></td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>Buffered input waiting to be processed.</em> <a href="#n3"></a><em></em></font><br><br></td></tr>
<tr><td nowrap align=right valign=top>list&lt; string &gt;&nbsp;</td><td valign=bottom><a class="el" href="classConnection.html#n4">mOutBuffer</a></td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>Buffered output waiting to be sent.</em> <a href="#n4"></a><em></em></font><br><br></td></tr>
<tr><td nowrap align=right valign=top>string&nbsp;</td><td valign=bottom><a class="el" href="classConnection.html#n5">mPendingInput</a></td></tr>
<tr><td>&nbsp;</td><td><font size=-1><em>Partially processed or formed input.</em> <a href="#n5"></a><em></em></font><br><br></td></tr>
</table>
<hr><h2>Constructor &amp; Destructor Documentation</h2>
<a name="a0" doxytag="Connection::Connection"></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"> Connection::Connection </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top">SOCKET&nbsp;</td>
          <td class="mdname" nowrap>&nbsp; <em>sock</em>, </td>
        </tr>
        <tr>
          <td></td>
          <td></td>
          <td class="md" nowrap><a class="el" href="classServer.html">Server</a> *&nbsp;</td>
          <td class="mdname" nowrap>&nbsp; <em>server</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>
Constructor for Connection. There is no default constructor as all connections must be constructed with a SOCKET. 
<p>
Definition at line <a class="el" href="connection_8cpp-source.html#l00018">18</a> of file <a class="el" href="connection_8cpp-source.html">connection.cpp</a>.
<p>
References <a class="el" href="connection_8h-source.html#l00041">mSock</a>.    </td>
  </tr>
</table>
<a name="a1" doxytag="Connection::~Connection"></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"> Connection::~Connection </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><code> [virtual]</code></td>
        </tr>

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

<p>
Destructor for Connection 
<p>
Definition at line <a class="el" href="connection_8cpp-source.html#l00026">26</a> of file <a class="el" href="connection_8cpp-source.html">connection.cpp</a>.
<p>
References <a class="el" href="connection_8h-source.html#l00041">mSock</a>.    </td>
  </tr>
</table>
<a name="a2" doxytag="Connection::Connection"></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"> Connection::Connection </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top">const Connection &amp;&nbsp;</td>
          <td class="mdname1" valign="top" nowrap>&nbsp; <em>r_conn</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>
Copy Constructor for Connection 
<p>
Definition at line <a class="el" href="connection_8cpp-source.html#l00033">33</a> of file <a class="el" href="connection_8cpp-source.html">connection.cpp</a>.
<p>
References <a class="el" href="connection_8h-source.html#l00041">mSock</a>.    </td>
  </tr>
</table>
<hr><h2>Member Function Documentation</h2>
<a name="a6" doxytag="Connection::CanBeDisconnected"></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"> bool Connection::CanBeDisconnected </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><code> [virtual]</code></td>
        </tr>

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

<p>
CanBeDisconnected is called to query the Connection in order to check whether it has been scheduled for disconnection. Currently this status is set only when there is an error.
<p>
<dl compact><dt><b>Returns :</b></dt><dd>
a boolean value indicating whether the connection is to be disconnected. </dl>
<p>
Definition at line <a class="el" href="connection_8cpp-source.html#l00202">202</a> of file <a class="el" href="connection_8cpp-source.html">connection.cpp</a>.
<p>
References <a class="el" href="connection_8h-source.html#l00042">mDisconnectable</a>.    </td>
  </tr>
</table>
<a name="a8" doxytag="Connection::Disconnect"></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 Connection::Disconnect </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><code> [virtual]</code></td>
        </tr>

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

<p>
Disconnect is called to shutdown a Connection's socket. 
<p>
Definition at line <a class="el" href="connection_8cpp-source.html#l00162">162</a> of file <a class="el" href="connection_8cpp-source.html">connection.cpp</a>.
<p>
References <a class="el" href="socket_8cpp-source.html#l00240">Socket::Close</a>(), <a class="el" href="connection_8cpp-source.html#l00211">GetSocket</a>(), <a class="el" href="connection_8h-source.html#l00040">mServer</a>, <a class="el" href="connection_8h-source.html#l00041">mSock</a>, <a class="el" href="server_8cpp-source.html#l00314">Server::ServerLog</a>(), and <a class="el" href="log_8cpp-source.html#l00089">Log::Write</a>().    </td>
  </tr>
</table>
<a name="a11" doxytag="Connection::GetSocket"></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"> SOCKET Connection::GetSocket </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> const<code> [virtual]</code></td>
        </tr>

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

<p>
GetSocket
<p>
<dl compact><dt><b>Returns :</b></dt><dd>
the Connection's SOCKET value. </dl>
<p>
Definition at line <a class="el" href="connection_8cpp-source.html#l00211">211</a> of file <a class="el" href="connection_8cpp-source.html">connection.cpp</a>.
<p>
References <a class="el" href="socket_8cpp-source.html#l00233">Socket::GetSocket</a>(), and <a class="el" href="connection_8h-source.html#l00041">mSock</a>.
<p>
Referenced by <a class="el" href="server_8cpp-source.html#l00174">Server::AcceptConnection</a>(), <a class="el" href="connection_8cpp-source.html#l00162">Disconnect</a>(), <a class="el" href="connection_8cpp-source.html#l00073">HandleInput</a>(), <a class="el" href="connection_8cpp-source.html#l00135">HandleOutput</a>(), and <a class="el" href="connection_8cpp-source.html#l00059">operator==</a>().    </td>
  </tr>
</table>
<a name="a4" doxytag="Connection::HandleInput"></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 Connection::HandleInput </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><code> [virtual]</code></td>
        </tr>

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

<p>
HandleInput is called to order a connection to process any input waiting on its socket. Input is parsed into lines based on the occurance of the CRLF terminator, which is stripped and pushed into a buffer which is a list of lines. The buffer expands dynamically as input is processed. Input that has yet to see a CRLF terminator is left in the Connection's pPendingInput array.
<p>
<dl compact><dt><b>See also: </b></dt><dd>
<a class="el" href="classServer.html#a3">Server::Run</a> </dl>
<p>
Definition at line <a class="el" href="connection_8cpp-source.html#l00073">73</a> of file <a class="el" href="connection_8cpp-source.html">connection.cpp</a>.
<p>
References <a class="el" href="connection_8cpp-source.html#l00211">GetSocket</a>(), <a class="el" href="connection_8h-source.html#l00042">mDisconnectable</a>, <a class="el" href="connection_8h-source.html#l00043">mInBuffer</a>, <a class="el" href="connection_8h-source.html#l00045">mPendingInput</a>, <a class="el" href="connection_8h-source.html#l00040">mServer</a>, <a class="el" href="connection_8h-source.html#l00041">mSock</a>, <a class="el" href="socket_8cpp-source.html#l00069">Socket::Read</a>(), <a class="el" href="server_8cpp-source.html#l00314">Server::ServerLog</a>(), and <a class="el" href="log_8cpp-source.html#l00089">Log::Write</a>().    </td>
  </tr>
</table>
<a name="a5" doxytag="Connection::HandleOutput"></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 Connection::HandleOutput </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><code> [virtual]</code></td>
        </tr>

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

<p>
HandleOutput is called to order a connection to process any output waiting on its socket.
<p>
<dl compact><dt><b>Note: </b></dt><dd>
 Unix/BSD portability notes:<ul>
<li>Either send() or write() may be used.<li>Winsock errors are prepended with WSA modify accordingly.<li>WSAGetLastError() should be replaced with global errno variable.</ul>
</dl><dl compact><dt><b>See also: </b></dt><dd>
<a class="el" href="classServer.html#a3">Server::Run</a> </dl>
<p>
Definition at line <a class="el" href="connection_8cpp-source.html#l00135">135</a> of file <a class="el" href="connection_8cpp-source.html">connection.cpp</a>.
<p>
References <a class="el" href="socket_8cpp-source.html#l00203">Socket::Flush</a>(), <a class="el" href="connection_8cpp-source.html#l00211">GetSocket</a>(), <a class="el" href="connection_8h-source.html#l00042">mDisconnectable</a>, <a class="el" href="connection_8h-source.html#l00044">mOutBuffer</a>, <a class="el" href="connection_8h-source.html#l00040">mServer</a>, <a class="el" href="connection_8h-source.html#l00041">mSock</a>, <a class="el" href="server_8cpp-source.html#l00314">Server::ServerLog</a>(), <a class="el" href="log_8cpp-source.html#l00089">Log::Write</a>(), and <a class="el" href="socket_8cpp-source.html#l00106">Socket::Write</a>().    </td>
  </tr>
</table>
<a name="a7" doxytag="Connection::HasOutput"></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"> bool Connection::HasOutput </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><code> [virtual]</code></td>
        </tr>

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

<p>
HasOutput is called to query whether the Connection has output ready to send.
<p>
<dl compact><dt><b>Returns :</b></dt><dd>
a boolean value indicating whether output is pending. </dl>
<p>
Definition at line <a class="el" href="connection_8cpp-source.html#l00221">221</a> of file <a class="el" href="connection_8cpp-source.html">connection.cpp</a>.
<p>
References <a class="el" href="connection_8h-source.html#l00044">mOutBuffer</a>.    </td>
  </tr>
</table>
<a name="b0" doxytag="Connection::operator="></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"> Connection &amp; Connection::operator= </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top">const Connection &amp;&nbsp;</td>
          <td class="mdname1" valign="top" nowrap>&nbsp; <em>r_conn</em>          </td>
          <td class="md" valign="top">)&nbsp;</td>
          <td class="md" nowrap><code> [protected]</code></td>
        </tr>

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

<p>
Assignment operator for Connection 
<p>
Definition at line <a class="el" href="connection_8cpp-source.html#l00043">43</a> of file <a class="el" href="connection_8cpp-source.html">connection.cpp</a>.
<p>
References <a class="el" href="connection_8h-source.html#l00043">mInBuffer</a>, <a class="el" href="connection_8h-source.html#l00044">mOutBuffer</a>, <a class="el" href="connection_8h-source.html#l00045">mPendingInput</a>, <a class="el" href="connection_8h-source.html#l00040">mServer</a>, and <a class="el" href="connection_8h-source.html#l00041">mSock</a>.    </td>
  </tr>
</table>
<a name="a3" doxytag="Connection::operator=="></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"> bool Connection::operator== </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top">const Connection &amp;&nbsp;</td>
          <td class="mdname1" valign="top" nowrap>&nbsp; <em>r_conn</em>          </td>
          <td class="md" valign="top">)&nbsp;</td>
          <td class="md" nowrap> const</td>
        </tr>

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

<p>
Equality operator for Connection. If the SOCKET is the same they are equal. 
<p>
Definition at line <a class="el" href="connection_8cpp-source.html#l00059">59</a> of file <a class="el" href="connection_8cpp-source.html">connection.cpp</a>.
<p>
References <a class="el" href="connection_8cpp-source.html#l00211">GetSocket</a>().    </td>
  </tr>
</table>
<a name="a10" doxytag="Connection::ReadMsg"></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"> string * Connection::ReadMsg </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><code> [virtual]</code></td>
        </tr>

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

<p>
ReadMsg removes a message from the Connection's input buffer.
<p>
<dl compact><dt><b>Returns :</b></dt><dd>
the message, a new string or NULL if no messages</dl><dl compact><dt><b>Warning: </b></dt><dd>
The caller is responsible for deleting this string! This can return an empty string, which indicates a CRLF only was sent. </dl>
<p>
Definition at line <a class="el" href="connection_8cpp-source.html#l00185">185</a> of file <a class="el" href="connection_8cpp-source.html">connection.cpp</a>.
<p>
References <a class="el" href="connection_8h-source.html#l00043">mInBuffer</a>.    </td>
  </tr>
</table>
<a name="a9" doxytag="Connection::SendMsg"></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 Connection::SendMsg </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top">const string &amp;&nbsp;</td>
          <td class="mdname1" valign="top" nowrap>&nbsp; <em>r_msg</em>          </td>
          <td class="md" valign="top">)&nbsp;</td>
          <td class="md" nowrap><code> [virtual]</code></td>
        </tr>

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

<p>
SendMsg places a message on the Connection's output buffer.<dl compact><dt><b>Parameters: </b></dt><dd>
<table border=0 cellspacing=2 cellpadding=0>
<tr><td valign=top><em>r_msg</em>&nbsp;</td><td>
the message, a reference to a string </td></tr>
</table>
</dl>
<p>
Definition at line <a class="el" href="connection_8cpp-source.html#l00173">173</a> of file <a class="el" href="connection_8cpp-source.html">connection.cpp</a>.
<p>
References <a class="el" href="connection_8h-source.html#l00044">mOutBuffer</a>.    </td>
  </tr>
</table>
<hr><h2>Member Data Documentation</h2>
<a name="n2" doxytag="Connection::mDisconnectable"></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"> bool Connection::mDisconnectable<code> [protected]</code>
      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Indicates connection is to be disconnected.
<p>

<p>
Definition at line <a class="el" href="connection_8h-source.html#l00042">42</a> of file <a class="el" href="connection_8h-source.html">connection.h</a>.
<p>
Referenced by <a class="el" href="connection_8cpp-source.html#l00202">CanBeDisconnected</a>(), <a class="el" href="connection_8cpp-source.html#l00073">HandleInput</a>(), and <a class="el" href="connection_8cpp-source.html#l00135">HandleOutput</a>().    </td>
  </tr>
</table>
<a name="n3" doxytag="Connection::mInBuffer"></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"> list&lt;string&gt; Connection::mInBuffer<code> [protected]</code>
      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Buffered input waiting to be processed.
<p>

<p>
Definition at line <a class="el" href="connection_8h-source.html#l00043">43</a> of file <a class="el" href="connection_8h-source.html">connection.h</a>.
<p>
Referenced by <a class="el" href="connection_8cpp-source.html#l00073">HandleInput</a>(), <a class="el" href="connection_8cpp-source.html#l00043">operator=</a>(), and <a class="el" href="connection_8cpp-source.html#l00185">ReadMsg</a>().    </td>
  </tr>
</table>
<a name="n4" doxytag="Connection::mOutBuffer"></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"> list&lt;string&gt; Connection::mOutBuffer<code> [protected]</code>
      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Buffered output waiting to be sent.
<p>

<p>
Definition at line <a class="el" href="connection_8h-source.html#l00044">44</a> of file <a class="el" href="connection_8h-source.html">connection.h</a>.
<p>
Referenced by <a class="el" href="connection_8cpp-source.html#l00135">HandleOutput</a>(), <a class="el" href="connection_8cpp-source.html#l00221">HasOutput</a>(), <a class="el" href="connection_8cpp-source.html#l00043">operator=</a>(), and <a class="el" href="connection_8cpp-source.html#l00173">SendMsg</a>().    </td>
  </tr>
</table>
<a name="n5" doxytag="Connection::mPendingInput"></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"> string Connection::mPendingInput<code> [protected]</code>
      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Partially processed or formed input.
<p>

<p>
Definition at line <a class="el" href="connection_8h-source.html#l00045">45</a> of file <a class="el" href="connection_8h-source.html">connection.h</a>.
<p>
Referenced by <a class="el" href="connection_8cpp-source.html#l00073">HandleInput</a>(), and <a class="el" href="connection_8cpp-source.html#l00043">operator=</a>().    </td>
  </tr>
</table>
<a name="n0" doxytag="Connection::mServer"></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="classServer.html">Server</a>* Connection::mServer<code> [protected]</code>
      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
<a class="el" href="classServer.html">Server</a> serving this connection.
<p>

<p>
Definition at line <a class="el" href="connection_8h-source.html#l00040">40</a> of file <a class="el" href="connection_8h-source.html">connection.h</a>.
<p>
Referenced by <a class="el" href="connection_8cpp-source.html#l00162">Disconnect</a>(), <a class="el" href="connection_8cpp-source.html#l00073">HandleInput</a>(), <a class="el" href="connection_8cpp-source.html#l00135">HandleOutput</a>(), and <a class="el" href="connection_8cpp-source.html#l00043">operator=</a>().    </td>
  </tr>
</table>
<a name="n1" doxytag="Connection::mSock"></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="classSocket.html">Socket</a>* Connection::mSock<code> [protected]</code>
      </table>
    </td>
  </tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
Network <a class="el" href="classSocket.html">Socket</a> stream.
<p>

<p>
Definition at line <a class="el" href="connection_8h-source.html#l00041">41</a> of file <a class="el" href="connection_8h-source.html">connection.h</a>.
<p>
Referenced by <a class="el" href="connection_8cpp-source.html#l00018">Connection</a>(), <a class="el" href="connection_8cpp-source.html#l00162">Disconnect</a>(), <a class="el" href="connection_8cpp-source.html#l00211">GetSocket</a>(), <a class="el" href="connection_8cpp-source.html#l00073">HandleInput</a>(), <a class="el" href="connection_8cpp-source.html#l00135">HandleOutput</a>(), <a class="el" href="connection_8cpp-source.html#l00043">operator=</a>(), and <a class="el" href="connection_8cpp-source.html#l00026">~Connection</a>().    </td>
  </tr>
</table>
<hr>The documentation for this class was generated from the following files:<ul>
<li><a class="el" href="connection_8h-source.html">connection.h</a><li><a class="el" href="connection_8cpp-source.html">connection.cpp</a></ul>
<hr><address style="align: right;"><small>Generated on Mon Mar 29 23:12:57 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>