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

📄 classpsmtp.html

📁 pwlib开发文档
💻 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>PSMTP class Reference</title><link href="doxygen.css" rel="stylesheet" type="text/css"></head><body><!-- Generated by Doxygen 1.2.18 --><center><a class="qindex" href="index.html">Main Page</a> &nbsp; <a class="qindex" href="namespaces.html">Namespace List</a> &nbsp; <a class="qindex" href="hierarchy.html">Class Hierarchy</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; </center><hr><h1>PSMTP Class Reference</h1><code>#include &lt;<a class="el" href="inetmail_8h-source.html">inetmail.h</a>&gt;</code><p><p>Inheritance diagram for PSMTP:<p><center><img src="classPSMTP.png" usemap="#PSMTP_map" border="0" alt=""></center><map name="PSMTP_map"><area href="classPInternetProtocol.html" alt="PInternetProtocol" shape="rect" coords="59,168,168,192"><area href="classPIndirectChannel.html" alt="PIndirectChannel" shape="rect" coords="59,112,168,136"><area href="classPChannel.html" alt="PChannel" shape="rect" coords="59,56,168,80"><area href="classPObject.html" alt="PObject" shape="rect" coords="59,0,168,24"><area href="classPSMTPClient.html" alt="PSMTPClient" shape="rect" coords="0,280,109,304"><area href="classPSMTPServer.html" alt="PSMTPServer" shape="rect" coords="119,280,228,304"></map><a href="classPSMTP-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 Types</h2></td></tr><tr><td nowrap align=right valign=top>enum &nbsp;</td><td valign=bottom><a class="el" href="classPSMTP.html#s17">Commands</a> { <br>&nbsp;&nbsp;<a class="el" href="classPSMTP.html#s17s0">HELO</a>, <a class="el" href="classPSMTP.html#s17s1">EHLO</a>, <a class="el" href="classPSMTP.html#s17s2">QUIT</a>, <a class="el" href="classPSMTP.html#s17s3">HELP</a>, <br>&nbsp;&nbsp;<a class="el" href="classPSMTP.html#s17s4">NOOP</a>, <a class="el" href="classPSMTP.html#s17s5">TURN</a>, <a class="el" href="classPSMTP.html#s17s6">RSET</a>, <a class="el" href="classPSMTP.html#s17s7">VRFY</a>, <br>&nbsp;&nbsp;<a class="el" href="classPSMTP.html#s17s8">EXPN</a>, <a class="el" href="classPSMTP.html#s17s9">RCPT</a>, <a class="el" href="classPSMTP.html#s17s10">MAIL</a>, <a class="el" href="classPSMTP.html#s17s11">SEND</a>, <br>&nbsp;&nbsp;<a class="el" href="classPSMTP.html#s17s12">SAML</a>, <a class="el" href="classPSMTP.html#s17s13">SOML</a>, <a class="el" href="classPSMTP.html#s17s14">DATA</a>, <a class="el" href="classPSMTP.html#s17s15">AUTH</a>, <br>&nbsp;&nbsp;<a class="el" href="classPSMTP.html#s17s16">NumCommands</a><br> }</td></tr><tr><td colspan=2><br><h2>Protected Methods</h2></td></tr><tr><td nowrap align=right valign=top>&nbsp;</td><td valign=bottom><a class="el" href="classPSMTP.html#b0">PSMTP</a> ()</td></tr></table><hr><a name="_details"></a><h2>Detailed Description</h2>A TCP/IP socket for the Simple Mail Transfer Protocol.<p>When acting as a client, the procedure is to make the connection to a remote server, then to send a message using the following procedure: <pre><code>      <a class="el" href="classPSMTPClient.html">PSMTPClient</a> mail("mailserver");      if (mail.IsOpen()) {        mail.BeginMessage("<a href="mailto:Me@here.com.au">Me@here.com.au</a>", "<a href="mailto:Fred@somwhere.com">Fred@somwhere.com</a>");        mail.Write(myMessage);        if (!mail.EndMessage())          PError &lt;&lt; "Mail send failed." &lt;&lt; endl;      }      else         PError &lt;&lt; "Mail conection failed." &lt;&lt; endl;      </pre></code><p>When acting as a server, a descendant class would be created to override at least the &lt;A&gt;LookUpName() and &lt;A&gt;HandleMessage() functions. Other functions may be overridden for further enhancement to the sockets capabilities, but these two will give a basic SMTP server functionality.<p>The server socket thread would continuously call the &lt;A&gt;ProcessMessage() function until it returns FALSE. This will then call the appropriate virtual function on parsing the SMTP protocol. <p><hr><h2>Member Enumeration Documentation</h2><a name="s17" doxytag="PSMTP::Commands"></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"> enum PSMTP::Commands      </table>    </td>  </tr></table><table cellspacing=5 cellpadding=0 border=0>  <tr>    <td>      &nbsp;    </td>    <td><p><dl compact><dt><b>Enumeration values: </b></dt><dd><table border=0 cellspacing=2 cellpadding=0><tr><td valign=top><em><a name="s17s0" doxytag="HELO"></a><em>HELO</em></em>&nbsp;</td><td></td></tr><tr><td valign=top><em><a name="s17s1" doxytag="EHLO"></a><em>EHLO</em></em>&nbsp;</td><td></td></tr><tr><td valign=top><em><a name="s17s2" doxytag="QUIT"></a><em>QUIT</em></em>&nbsp;</td><td></td></tr><tr><td valign=top><em><a name="s17s3" doxytag="HELP"></a><em>HELP</em></em>&nbsp;</td><td></td></tr><tr><td valign=top><em><a name="s17s4" doxytag="NOOP"></a><em>NOOP</em></em>&nbsp;</td><td></td></tr><tr><td valign=top><em><a name="s17s5" doxytag="TURN"></a><em>TURN</em></em>&nbsp;</td><td></td></tr><tr><td valign=top><em><a name="s17s6" doxytag="RSET"></a><em>RSET</em></em>&nbsp;</td><td></td></tr><tr><td valign=top><em><a name="s17s7" doxytag="VRFY"></a><em>VRFY</em></em>&nbsp;</td><td></td></tr><tr><td valign=top><em><a name="s17s8" doxytag="EXPN"></a><em>EXPN</em></em>&nbsp;</td><td></td></tr><tr><td valign=top><em><a name="s17s9" doxytag="RCPT"></a><em>RCPT</em></em>&nbsp;</td><td></td></tr><tr><td valign=top><em><a name="s17s10" doxytag="MAIL"></a><em>MAIL</em></em>&nbsp;</td><td></td></tr><tr><td valign=top><em><a name="s17s11" doxytag="SEND"></a><em>SEND</em></em>&nbsp;</td><td></td></tr><tr><td valign=top><em><a name="s17s12" doxytag="SAML"></a><em>SAML</em></em>&nbsp;</td><td></td></tr><tr><td valign=top><em><a name="s17s13" doxytag="SOML"></a><em>SOML</em></em>&nbsp;</td><td></td></tr><tr><td valign=top><em><a name="s17s14" doxytag="DATA"></a><em>DATA</em></em>&nbsp;</td><td></td></tr><tr><td valign=top><em><a name="s17s15" doxytag="AUTH"></a><em>AUTH</em></em>&nbsp;</td><td></td></tr><tr><td valign=top><em><a name="s17s16" doxytag="NumCommands"></a><em>NumCommands</em></em>&nbsp;</td><td></td></tr></table></dl>    </td>  </tr></table><hr><h2>Constructor &amp; Destructor Documentation</h2><a name="b0" doxytag="PSMTP::PSMTP"></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"> PSMTP::PSMTP </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> [protected]</code></td>        </tr>      </table>    </td>  </tr></table><table cellspacing=5 cellpadding=0 border=0>  <tr>    <td>      &nbsp;    </td>    <td><p>    </td>  </tr></table><hr>The documentation for this class was generated from the following file:<ul><li><a class="el" href="inetmail_8h-source.html">inetmail.h</a></ul><hr><address style="align: right;"><small>Generated on Wed Sep 29 22:44:19 2004 for PWLib 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.18 </small></address></body></html>

⌨️ 快捷键说明

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