⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 classclientdemo.html

📁 C++ TCPIP and UDPIP library of classes
💻 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>clientDemo class Reference</title><link href="doxygen.css" rel="stylesheet" type="text/css"></head><body bgcolor="#ffffff"><!-- Generated by Doxygen 1.2.13.1 --><h1>clientDemo  Class Reference</h1>Class implements chat client. <a href="#_details">More...</a><p><code>#include &lt;<a class="el" href="clientDemo_8h-source.html">clientDemo.h</a>&gt;</code><p>Inheritance diagram for clientDemo:<p><center><img src="classclientDemo__inherit__graph.gif" border="0" usemap="#clientDemo__inherit__map" alt="Inheritance graph"></center><map name="clientDemo__inherit__map"><area href="classclient.html" shape="rect" coords="31,84,71,103" alt=""><area href="classtcpip.html" shape="rect" coords="31,15,71,33" alt=""></map><center><font size="2">[<a target="top" href="graph_legend.html">legend</a>]</font></center>Collaboration diagram for clientDemo:<p><center><img src="classclientDemo__coll__graph.gif" border="0" usemap="#clientDemo__coll__map" alt="Collaboration graph"></center><map name="clientDemo__coll__map"><area href="classclient.html" shape="rect" coords="111,203,151,221" alt=""><area href="classtcpip.html" shape="rect" coords="50,105,90,124" alt=""></map><center><font size="2">[<a target="top" href="graph_legend.html">legend</a>]</font></center><table border=0 cellpadding=0 cellspacing=0><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="classclientDemo.html#a0">clientDemo</a> (char *<a class="el" href="classclientDemo.html#o0">service</a>, char *<a class="el" href="classclientDemo.html#o1">host</a>)</td></tr><tr><td>&nbsp;</td><td><font size=-1><em>Default constructor.</em> <a href="#a0">More...</a><em></em></font><br><br></td></tr><tr><td nowrap align=right valign=top>&nbsp;</td><td valign=bottom><a class="el" href="classclientDemo.html#a1">~clientDemo</a> ()</td></tr><tr><td>&nbsp;</td><td><font size=-1><em>Default destructor.</em> <a href="#a1">More...</a><em></em></font><br><br></td></tr><tr><td nowrap align=right valign=top>void&nbsp;</td><td valign=bottom><a class="el" href="classclientDemo.html#a2">start</a> ()</td></tr><tr><td>&nbsp;</td><td><font size=-1><em>Starts the client.</em> <a href="#a2">More...</a><em></em></font><br><br></td></tr><tr><td colspan=2><br><h2>Private Attributes</h2></td></tr><tr><td nowrap align=right valign=top>char *&nbsp;</td><td valign=bottom><a class="el" href="classclientDemo.html#o0">service</a></td></tr><tr><td>&nbsp;</td><td><font size=-1><em>Port number.</em> <a href="#o0">More...</a><em></em></font><br><br></td></tr><tr><td nowrap align=right valign=top>char *&nbsp;</td><td valign=bottom><a class="el" href="classclientDemo.html#o1">host</a></td></tr><tr><td>&nbsp;</td><td><font size=-1><em>Hostname.</em> <a href="#o1">More...</a><em></em></font><br><br></td></tr></table><hr><a name="_details"></a><h2>Detailed Description</h2>Class implements chat client.<p><dl compact><dt><b>Author: </b><dd>Borys Wisniewski </dl><dl compact><dt><b>Date: </b><dd>Mon Jan 28 19:25:28 2002 </dl><p><p>Definition at line <a class="el" href="clientDemo_8h-source.html#l00040">40</a> of file <a class="el" href="clientDemo_8h-source.html">clientDemo.h</a>.<hr><h2>Constructor &amp; Destructor Documentation</h2><a name="a0" doxytag="clientDemo::clientDemo"></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"> clientDemo::clientDemo </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">char *&nbsp;</td>          <td class="mdname" nowrap>&nbsp; <em>service</em>, </td>        </tr>        <tr>          <td></td>          <td></td>          <td class="md" nowrap>char *&nbsp;</td>          <td class="mdname" nowrap>&nbsp; <em>host</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>Default constructor.<p>Does nothing special. <dl compact><dt><b>Parameters: </b><dd><table border=0 cellspacing=2 cellpadding=0><tr><td valign=top><em>service</em>&nbsp;</td><td>port number </td></tr><tr><td valign=top><em>host</em>&nbsp;</td><td>hostname or IP address </td></tr></table></dl><dl compact><dt><b>Author: </b><dd>Borys Wisniewski </dl><dl compact><dt><b>Date: </b><dd>Mon Jan 28 19:25:28 2002 </dl><p>Definition at line <a class="el" href="clientDemo_8cc-source.html#l00048">48</a> of file <a class="el" href="clientDemo_8cc-source.html">clientDemo.cc</a>.<p>References <a class="el" href="clientDemo_8h-source.html#l00077">host</a>, and <a class="el" href="clientDemo_8h-source.html#l00073">service</a>.    </td>  </tr></table><a name="a1" doxytag="clientDemo::~clientDemo"></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"> clientDemo::~clientDemo </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>Default destructor.<p>Does nothing special. <dl compact><dt><b>Author: </b><dd>Borys Wisniewski </dl><dl compact><dt><b>Date: </b><dd>Mon Jan 28 19:25:28 2002 </dl><p>Definition at line <a class="el" href="clientDemo_8cc-source.html#l00054">54</a> of file <a class="el" href="clientDemo_8cc-source.html">clientDemo.cc</a>.    </td>  </tr></table><hr><h2>Member Function Documentation</h2><a name="a2" doxytag="clientDemo::start"></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 clientDemo::start </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>Starts the client.<p>Runs two threads: one for reading from keyboard and sending messages, second for reciving replays from server and displaying them on the screen. <dl compact><dt><b><a class="el" href="bug.html#_bug000002">Bug: </a></b><dd>one of threads has no terminal to display messages</dl> <dl compact><dt><b>Author: </b><dd>Borys Wisniewski </dl><dl compact><dt><b>Date: </b><dd>Mon Jan 28 19:25:28 2002 </dl><p>Definition at line <a class="el" href="clientDemo_8cc-source.html#l00058">58</a> of file <a class="el" href="clientDemo_8cc-source.html">clientDemo.cc</a>.<p>References <a class="el" href="client_8cc-source.html#l00112">client::get_recived</a>(), <a class="el" href="clientDemo_8h-source.html#l00077">host</a>, <a class="el" href="client_8cc-source.html#l00068">client::recive</a>(), <a class="el" href="client_8cc-source.html#l00060">client::send</a>(), and <a class="el" href="clientDemo_8h-source.html#l00073">service</a>.<p>Referenced by <a class="el" href="main_8cc-source.html#l00047">main</a>().    </td>  </tr></table><hr><h2>Field Documentation</h2><a name="o1" doxytag="clientDemo::host"></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"> char* clientDemo::host<code> [private]</code>      </table>    </td>  </tr></table><table cellspacing=5 cellpadding=0 border=0>  <tr>    <td>      &nbsp;    </td>    <td><p>Hostname.<p><p>Definition at line <a class="el" href="clientDemo_8h-source.html#l00077">77</a> of file <a class="el" href="clientDemo_8h-source.html">clientDemo.h</a>.<p>Referenced by <a class="el" href="clientDemo_8cc-source.html#l00048">clientDemo</a>(), and <a class="el" href="clientDemo_8cc-source.html#l00058">start</a>().    </td>  </tr></table><a name="o0" doxytag="clientDemo::service"></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"> char* clientDemo::service<code> [private]</code>      </table>    </td>  </tr></table><table cellspacing=5 cellpadding=0 border=0>  <tr>    <td>      &nbsp;    </td>    <td><p>Port number.<p><p>Definition at line <a class="el" href="clientDemo_8h-source.html#l00073">73</a> of file <a class="el" href="clientDemo_8h-source.html">clientDemo.h</a>.<p>Referenced by <a class="el" href="clientDemo_8cc-source.html#l00048">clientDemo</a>(), and <a class="el" href="clientDemo_8cc-source.html#l00058">start</a>().    </td>  </tr></table><hr><address><small>&copy; 2002 &nbsp; Marcin Caban 'Cabko' and Borys Wisniewski 'Boria'</small></address></body></html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -