classRakNet_1_1ConsoleServer.html 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml">
  3. <head>
  4. <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
  5. <meta http-equiv="X-UA-Compatible" content="IE=9"/>
  6. <title>RakNet: RakNet::ConsoleServer Class Reference</title>
  7. <link href="tabs.css" rel="stylesheet" type="text/css"/>
  8. <script type="text/javascript" src="jquery.js"></script>
  9. <script type="text/javascript" src="dynsections.js"></script>
  10. <link href="doxygen.css" rel="stylesheet" type="text/css" />
  11. </head>
  12. <body>
  13. <div id="top"><!-- do not remove this div, it is closed by doxygen! -->
  14. <div id="titlearea">
  15. <table cellspacing="0" cellpadding="0">
  16. <tbody>
  17. <tr style="height: 56px;">
  18. <td style="padding-left: 0.5em;">
  19. <div id="projectname">RakNet
  20. &#160;<span id="projectnumber">4.0</span>
  21. </div>
  22. </td>
  23. </tr>
  24. </tbody>
  25. </table>
  26. </div>
  27. <!-- end header part -->
  28. <!-- Generated by Doxygen 1.8.2 -->
  29. <div id="navrow1" class="tabs">
  30. <ul class="tablist">
  31. <li><a href="index.html"><span>Main&#160;Page</span></a></li>
  32. <li><a href="pages.html"><span>Related&#160;Pages</span></a></li>
  33. <li><a href="modules.html"><span>Modules</span></a></li>
  34. <li><a href="namespaces.html"><span>Namespaces</span></a></li>
  35. <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
  36. <li><a href="files.html"><span>Files</span></a></li>
  37. </ul>
  38. </div>
  39. <div id="navrow2" class="tabs2">
  40. <ul class="tablist">
  41. <li><a href="annotated.html"><span>Class&#160;List</span></a></li>
  42. <li><a href="classes.html"><span>Class&#160;Index</span></a></li>
  43. <li><a href="hierarchy.html"><span>Class&#160;Hierarchy</span></a></li>
  44. <li><a href="functions.html"><span>Class&#160;Members</span></a></li>
  45. </ul>
  46. </div>
  47. <div id="nav-path" class="navpath">
  48. <ul>
  49. <li class="navelem"><a class="el" href="namespaceRakNet.html">RakNet</a></li><li class="navelem"><a class="el" href="classRakNet_1_1ConsoleServer.html">ConsoleServer</a></li> </ul>
  50. </div>
  51. </div><!-- top -->
  52. <div class="header">
  53. <div class="summary">
  54. <a href="#pub-methods">Public Member Functions</a> &#124;
  55. <a href="classRakNet_1_1ConsoleServer-members.html">List of all members</a> </div>
  56. <div class="headertitle">
  57. <div class="title">RakNet::ConsoleServer Class Reference</div> </div>
  58. </div><!--header-->
  59. <div class="contents">
  60. <p>The main entry point for the server portion of your remote console application support.
  61. <a href="classRakNet_1_1ConsoleServer.html#details">More...</a></p>
  62. <p><code>#include &lt;ConsoleServer.h&gt;</code></p>
  63. <table class="memberdecls">
  64. <tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
  65. Public Member Functions</h2></td></tr>
  66. <tr class="memitem:ac1238ba7c7120fb15a4858878534b0dd"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classRakNet_1_1ConsoleServer.html#ac1238ba7c7120fb15a4858878534b0dd">SetTransportProvider</a> (<a class="el" href="classRakNet_1_1TransportInterface.html">TransportInterface</a> *transportInterface, unsigned short port)</td></tr>
  67. <tr class="memdesc:ac1238ba7c7120fb15a4858878534b0dd"><td class="mdescLeft">&#160;</td><td class="mdescRight">Call this with a derivation of <a class="el" href="classRakNet_1_1TransportInterface.html" title="Defines an interface that is used to send and receive null-terminated strings.">TransportInterface</a> so that the console server can send and receive commands. <a href="#ac1238ba7c7120fb15a4858878534b0dd"></a><br/></td></tr>
  68. <tr class="separator:ac1238ba7c7120fb15a4858878534b0dd"><td class="memSeparator" colspan="2">&#160;</td></tr>
  69. <tr class="memitem:a755ea170bf41c054f934297dfe1cc53a"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classRakNet_1_1ConsoleServer.html#a755ea170bf41c054f934297dfe1cc53a">AddCommandParser</a> (<a class="el" href="classRakNet_1_1CommandParserInterface.html">CommandParserInterface</a> *commandParserInterface)</td></tr>
  70. <tr class="memdesc:a755ea170bf41c054f934297dfe1cc53a"><td class="mdescLeft">&#160;</td><td class="mdescRight">Add an implementation of <a class="el" href="classRakNet_1_1CommandParserInterface.html" title="The interface used by command parsers.">CommandParserInterface</a> to the list of command parsers. <a href="#a755ea170bf41c054f934297dfe1cc53a"></a><br/></td></tr>
  71. <tr class="separator:a755ea170bf41c054f934297dfe1cc53a"><td class="memSeparator" colspan="2">&#160;</td></tr>
  72. <tr class="memitem:a9f2b0fc23ce507683a96b9ab7276bdc4"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classRakNet_1_1ConsoleServer.html#a9f2b0fc23ce507683a96b9ab7276bdc4">RemoveCommandParser</a> (<a class="el" href="classRakNet_1_1CommandParserInterface.html">CommandParserInterface</a> *commandParserInterface)</td></tr>
  73. <tr class="memdesc:a9f2b0fc23ce507683a96b9ab7276bdc4"><td class="mdescLeft">&#160;</td><td class="mdescRight">Remove an implementation of <a class="el" href="classRakNet_1_1CommandParserInterface.html" title="The interface used by command parsers.">CommandParserInterface</a> previously added with <a class="el" href="classRakNet_1_1ConsoleServer.html#a755ea170bf41c054f934297dfe1cc53a" title="Add an implementation of CommandParserInterface to the list of command parsers.">AddCommandParser()</a>. <a href="#a9f2b0fc23ce507683a96b9ab7276bdc4"></a><br/></td></tr>
  74. <tr class="separator:a9f2b0fc23ce507683a96b9ab7276bdc4"><td class="memSeparator" colspan="2">&#160;</td></tr>
  75. <tr class="memitem:a59a56966e60b3b719cb9f477fc9d0c80"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a59a56966e60b3b719cb9f477fc9d0c80"></a>
  76. void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classRakNet_1_1ConsoleServer.html#a59a56966e60b3b719cb9f477fc9d0c80">Update</a> (void)</td></tr>
  77. <tr class="memdesc:a59a56966e60b3b719cb9f477fc9d0c80"><td class="mdescLeft">&#160;</td><td class="mdescRight">Call update to read packet sent from your <a class="el" href="classRakNet_1_1TransportInterface.html" title="Defines an interface that is used to send and receive null-terminated strings.">TransportInterface</a>. You should do this fairly frequently. <br/></td></tr>
  78. <tr class="separator:a59a56966e60b3b719cb9f477fc9d0c80"><td class="memSeparator" colspan="2">&#160;</td></tr>
  79. <tr class="memitem:a284a506fd9eed751651ea6bae77c60b5"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classRakNet_1_1ConsoleServer.html#a284a506fd9eed751651ea6bae77c60b5">SetPrompt</a> (const char *_prompt)</td></tr>
  80. <tr class="memdesc:a284a506fd9eed751651ea6bae77c60b5"><td class="mdescLeft">&#160;</td><td class="mdescRight">Sets a prompt to show when waiting for user input. <a href="#a284a506fd9eed751651ea6bae77c60b5"></a><br/></td></tr>
  81. <tr class="separator:a284a506fd9eed751651ea6bae77c60b5"><td class="memSeparator" colspan="2">&#160;</td></tr>
  82. </table>
  83. <a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
  84. <div class="textblock"><p>The main entry point for the server portion of your remote console application support. </p>
  85. <p><a class="el" href="classRakNet_1_1ConsoleServer.html" title="The main entry point for the server portion of your remote console application support.">ConsoleServer</a> takes one <a class="el" href="classRakNet_1_1TransportInterface.html" title="Defines an interface that is used to send and receive null-terminated strings.">TransportInterface</a> and one or more <a class="el" href="classRakNet_1_1CommandParserInterface.html" title="The interface used by command parsers.">CommandParserInterface</a> (s) The <a class="el" href="classRakNet_1_1TransportInterface.html" title="Defines an interface that is used to send and receive null-terminated strings.">TransportInterface</a> will be used to send data between the server and the client. The connecting client must support the protocol used by your derivation of <a class="el" href="classRakNet_1_1TransportInterface.html" title="Defines an interface that is used to send and receive null-terminated strings.">TransportInterface</a> . <a class="el" href="classRakNet_1_1TelnetTransport.html" title="Use TelnetTransport to easily allow windows telnet to connect to your ConsoleServer.">TelnetTransport</a> and RakNetTransport are two such derivations . When a command is sent by a remote console, it will be processed by your implementations of <a class="el" href="classRakNet_1_1CommandParserInterface.html" title="The interface used by command parsers.">CommandParserInterface</a> </p>
  86. </div><h2 class="groupheader">Member Function Documentation</h2>
  87. <a class="anchor" id="a755ea170bf41c054f934297dfe1cc53a"></a>
  88. <div class="memitem">
  89. <div class="memproto">
  90. <table class="memname">
  91. <tr>
  92. <td class="memname">void RakNet::ConsoleServer::AddCommandParser </td>
  93. <td>(</td>
  94. <td class="paramtype"><a class="el" href="classRakNet_1_1CommandParserInterface.html">CommandParserInterface</a> *&#160;</td>
  95. <td class="paramname"><em>commandParserInterface</em></td><td>)</td>
  96. <td></td>
  97. </tr>
  98. </table>
  99. </div><div class="memdoc">
  100. <p>Add an implementation of <a class="el" href="classRakNet_1_1CommandParserInterface.html" title="The interface used by command parsers.">CommandParserInterface</a> to the list of command parsers. </p>
  101. <dl class="params"><dt>Parameters</dt><dd>
  102. <table class="params">
  103. <tr><td class="paramdir">[in]</td><td class="paramname">commandParserInterface</td><td>The command parser referred to </td></tr>
  104. </table>
  105. </dd>
  106. </dl>
  107. </div>
  108. </div>
  109. <a class="anchor" id="a9f2b0fc23ce507683a96b9ab7276bdc4"></a>
  110. <div class="memitem">
  111. <div class="memproto">
  112. <table class="memname">
  113. <tr>
  114. <td class="memname">void RakNet::ConsoleServer::RemoveCommandParser </td>
  115. <td>(</td>
  116. <td class="paramtype"><a class="el" href="classRakNet_1_1CommandParserInterface.html">CommandParserInterface</a> *&#160;</td>
  117. <td class="paramname"><em>commandParserInterface</em></td><td>)</td>
  118. <td></td>
  119. </tr>
  120. </table>
  121. </div><div class="memdoc">
  122. <p>Remove an implementation of <a class="el" href="classRakNet_1_1CommandParserInterface.html" title="The interface used by command parsers.">CommandParserInterface</a> previously added with <a class="el" href="classRakNet_1_1ConsoleServer.html#a755ea170bf41c054f934297dfe1cc53a" title="Add an implementation of CommandParserInterface to the list of command parsers.">AddCommandParser()</a>. </p>
  123. <dl class="params"><dt>Parameters</dt><dd>
  124. <table class="params">
  125. <tr><td class="paramdir">[in]</td><td class="paramname">commandParserInterface</td><td>The command parser referred to </td></tr>
  126. </table>
  127. </dd>
  128. </dl>
  129. </div>
  130. </div>
  131. <a class="anchor" id="a284a506fd9eed751651ea6bae77c60b5"></a>
  132. <div class="memitem">
  133. <div class="memproto">
  134. <table class="memname">
  135. <tr>
  136. <td class="memname">void RakNet::ConsoleServer::SetPrompt </td>
  137. <td>(</td>
  138. <td class="paramtype">const char *&#160;</td>
  139. <td class="paramname"><em>_prompt</em></td><td>)</td>
  140. <td></td>
  141. </tr>
  142. </table>
  143. </div><div class="memdoc">
  144. <p>Sets a prompt to show when waiting for user input. </p>
  145. <p>Pass an empty string to clear the prompt Defaults to no prompt </p>
  146. <dl class="params"><dt>Parameters</dt><dd>
  147. <table class="params">
  148. <tr><td class="paramdir">[in]</td><td class="paramname">_prompt</td><td>Null-terminated string of the prompt to use. If you want a newline, be sure to use /r/n </td></tr>
  149. </table>
  150. </dd>
  151. </dl>
  152. </div>
  153. </div>
  154. <a class="anchor" id="ac1238ba7c7120fb15a4858878534b0dd"></a>
  155. <div class="memitem">
  156. <div class="memproto">
  157. <table class="memname">
  158. <tr>
  159. <td class="memname">void RakNet::ConsoleServer::SetTransportProvider </td>
  160. <td>(</td>
  161. <td class="paramtype"><a class="el" href="classRakNet_1_1TransportInterface.html">TransportInterface</a> *&#160;</td>
  162. <td class="paramname"><em>transportInterface</em>, </td>
  163. </tr>
  164. <tr>
  165. <td class="paramkey"></td>
  166. <td></td>
  167. <td class="paramtype">unsigned short&#160;</td>
  168. <td class="paramname"><em>port</em>&#160;</td>
  169. </tr>
  170. <tr>
  171. <td></td>
  172. <td>)</td>
  173. <td></td><td></td>
  174. </tr>
  175. </table>
  176. </div><div class="memdoc">
  177. <p>Call this with a derivation of <a class="el" href="classRakNet_1_1TransportInterface.html" title="Defines an interface that is used to send and receive null-terminated strings.">TransportInterface</a> so that the console server can send and receive commands. </p>
  178. <dl class="params"><dt>Parameters</dt><dd>
  179. <table class="params">
  180. <tr><td class="paramdir">[in]</td><td class="paramname">transportInterface</td><td>Your interface to use. </td></tr>
  181. <tr><td class="paramdir">[in]</td><td class="paramname">port</td><td>The port to host on. Telnet uses port 23 by default. <a class="el" href="namespaceRakNet.html" title="Simple class to send changes between directories. In essence, a simple autopatcher that can be used f...">RakNet</a> can use whatever you want. </td></tr>
  182. </table>
  183. </dd>
  184. </dl>
  185. </div>
  186. </div>
  187. <hr/>The documentation for this class was generated from the following file:<ul>
  188. <li>D:/temp/RakNet_PC/Source/<a class="el" href="ConsoleServer_8h.html">ConsoleServer.h</a></li>
  189. </ul>
  190. </div><!-- contents -->
  191. <!-- start footer part -->
  192. <hr class="footer"/><address class="footer"><small>
  193. Generated on Mon Jun 2 2014 20:10:28 for RakNet by &#160;<a href="http://www.doxygen.org/index.html">
  194. <img class="footer" src="doxygen.png" alt="doxygen"/>
  195. </a> 1.8.2
  196. </small></address>
  197. </body>
  198. </html>
粤ICP备19079148号