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

📄 smtp__client_8h-source.html

📁 Freescale mcu OpenTCP-1.0.4.doc.html.zip 文档
💻 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>/opentcp/include/inet/smtp/smtp_client.h Source File</title><link href="doxygen.css" rel="stylesheet" type="text/css"></head><body><!-- Generated by Doxygen 1.2.18 --><center><a class="qindex" href="main.html">Main Page</a> &nbsp; <a class="qindex" href="modules.html">Modules</a> &nbsp; <a class="qindex" href="annotated.html">Data Structures</a> &nbsp; <a class="qindex" href="files.html">File List</a> &nbsp; <a class="qindex" href="functions.html">Data Fields</a> &nbsp; <a class="qindex" href="globals.html">Globals</a> &nbsp; <a class="qindex" href="pages.html">Related Pages</a> &nbsp; <a class="qindex" href="examples.html">Examples</a> &nbsp; </center><hr><h1>/opentcp/include/inet/smtp/smtp_client.h</h1><a href="smtp__client_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre>00001 <span class="comment">/*</span>00002 <span class="comment"> *Copyright (c) 2000-2002 Viola Systems Ltd.</span>00003 <span class="comment"> *All rights reserved.</span>00004 <span class="comment"> *</span>00005 <span class="comment"> *Redistribution and use in source and binary forms, with or without </span>00006 <span class="comment"> *modification, are permitted provided that the following conditions </span>00007 <span class="comment"> *are met:</span>00008 <span class="comment"> *</span>00009 <span class="comment"> *1. Redistributions of source code must retain the above copyright </span>00010 <span class="comment"> *notice, this list of conditions and the following disclaimer.</span>00011 <span class="comment"> *</span>00012 <span class="comment"> *2. Redistributions in binary form must reproduce the above copyright </span>00013 <span class="comment"> *notice, this list of conditions and the following disclaimer in the </span>00014 <span class="comment"> *documentation and/or other materials provided with the distribution.</span>00015 <span class="comment"> *</span>00016 <span class="comment"> *3. The end-user documentation included with the redistribution, if </span>00017 <span class="comment"> *any, must include the following acknowledgment:</span>00018 <span class="comment"> *      "This product includes software developed by Viola </span>00019 <span class="comment"> *      Systems (http://www.violasystems.com/)."</span>00020 <span class="comment"> *</span>00021 <span class="comment"> *Alternately, this acknowledgment may appear in the software itself, </span>00022 <span class="comment"> *if and wherever such third-party acknowledgments normally appear.</span>00023 <span class="comment"> *</span>00024 <span class="comment"> *4. The names "OpenTCP" and "Viola Systems" must not be used to </span>00025 <span class="comment"> *endorse or promote products derived from this software without prior </span>00026 <span class="comment"> *written permission. For written permission, please contact </span>00027 <span class="comment"> *opentcp@opentcp.org.</span>00028 <span class="comment"> *</span>00029 <span class="comment"> *5. Products derived from this software may not be called "OpenTCP", </span>00030 <span class="comment"> *nor may "OpenTCP" appear in their name, without prior written </span>00031 <span class="comment"> *permission of the Viola Systems Ltd.</span>00032 <span class="comment"> *</span>00033 <span class="comment"> *THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESSED OR IMPLIED </span>00034 <span class="comment"> *WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF </span>00035 <span class="comment"> *MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. </span>00036 <span class="comment"> *IN NO EVENT SHALL VIOLA SYSTEMS LTD. OR ITS CONTRIBUTORS BE LIABLE </span>00037 <span class="comment"> *FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR </span>00038 <span class="comment"> *CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF </span>00039 <span class="comment"> *SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR </span>00040 <span class="comment"> *BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, </span>00041 <span class="comment"> *WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE </span>00042 <span class="comment"> *OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, </span>00043 <span class="comment"> *EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.</span>00044 <span class="comment"> *====================================================================</span>00045 <span class="comment"> *</span>00046 <span class="comment"> *OpenTCP is the unified open source TCP/IP stack available on a series </span>00047 <span class="comment"> *of 8/16-bit microcontrollers, please see &lt;http://www.opentcp.org&gt;.</span>00048 <span class="comment"> *</span>00049 <span class="comment"> *For more information on how to network-enable your devices, or how to </span>00050 <span class="comment"> *obtain commercial technical support for OpenTCP, please see </span>00051 <span class="comment"> *&lt;http://www.violasystems.com/&gt;.</span>00052 <span class="comment"> */</span>00053 00064 <span class="preprocessor">#ifndef INCLUDE_SMTP_CLIENT_H</span>00065 <span class="preprocessor"></span><span class="preprocessor">#define INCLUDE_SMTP_CLIENT_H</span>00066 <span class="preprocessor"></span>00067 <span class="preprocessor">#include&lt;<a class="code" href="datatypes_8h.html">inet/datatypes.h</a>&gt;</span> 00068 00069 <span class="comment">/* SMTPC timeout                */</span>00070 <a name="l00071"></a><a class="code" href="smtp__client_8h.html#a0">00071</a> <span class="preprocessor">#define SMTPC_TOUT              20                              </span>00075 <span class="preprocessor"></span><span class="comment">/* States of SMTP state machine */</span>00076 00077 <a name="l00078"></a><a class="code" href="smtp__client_8h.html#a1">00078</a> <span class="preprocessor">#define SMTP_UNINITIALIZED                      1       </span><a name="l00079"></a><a class="code" href="smtp__client_8h.html#a2">00079</a> <span class="preprocessor">#define SMTP_CLOSED                                     2       </span><a name="l00080"></a><a class="code" href="smtp__client_8h.html#a3">00080</a> <span class="preprocessor">#define SMTP_OPEN_REQUESTED                     3       </span><a name="l00081"></a><a class="code" href="smtp__client_8h.html#a4">00081</a> <span class="preprocessor">#define SMTP_CONNECTIONOPEN_SENT        4       </span><a name="l00082"></a><a class="code" href="smtp__client_8h.html#a5">00082</a> <span class="preprocessor">#define SMTP_CONNECTION_OPENED          5       </span><a name="l00083"></a><a class="code" href="smtp__client_8h.html#a6">00083</a> <span class="preprocessor">#define SMTP_SERVER_READY                       6       </span><a name="l00084"></a><a class="code" href="smtp__client_8h.html#a7">00084</a> <span class="preprocessor">#define SMTP_HELO_SENT                          7       </span><a name="l00085"></a><a class="code" href="smtp__client_8h.html#a8">00085</a> <span class="preprocessor">#define SMTP_HELO_ACKED                         8       </span><a name="l00086"></a><a class="code" href="smtp__client_8h.html#a9">00086</a> <span class="preprocessor">#define SMTP_MAILFROM_SENT                      9       </span><a name="l00087"></a><a class="code" href="smtp__client_8h.html#a10">00087</a> <span class="preprocessor">#define SMTP_MAILFROM_ACKED                     10      </span><a name="l00088"></a><a class="code" href="smtp__client_8h.html#a11">00088</a> <span class="preprocessor">#define SMTP_RCPTTO_SENT                        11      </span><a name="l00089"></a><a class="code" href="smtp__client_8h.html#a12">00089</a> <span class="preprocessor">#define SMTP_RCPTTO_ACKED                       12      </span><a name="l00090"></a><a class="code" href="smtp__client_8h.html#a13">00090</a> <span class="preprocessor">#define SMTP_DATAREQ_SENT                       13      </span><a name="l00091"></a><a class="code" href="smtp__client_8h.html#a14">00091</a> <span class="preprocessor">#define SMTP_DATAREQ_ACKED                      14      </span><a name="l00092"></a><a class="code" href="smtp__client_8h.html#a15">00092</a> <span class="preprocessor">#define SMTP_BODY_SENT                          15      </span><a name="l00093"></a><a class="code" href="smtp__client_8h.html#a16">00093</a> <span class="preprocessor">#define SMTP_SENDING_DATA                       16      </span><a name="l00094"></a><a class="code" href="smtp__client_8h.html#a17">00094</a> <span class="preprocessor">#define SMTP_DATAEND_REACHED            17      </span><a name="l00095"></a><a class="code" href="smtp__client_8h.html#a18">00095</a> <span class="preprocessor">#define SMTP_DATAEND_SENT                       18      </span><a name="l00096"></a><a class="code" href="smtp__client_8h.html#a19">00096</a> <span class="preprocessor">#define SMTP_DATAEND_ACKED                      19      </span><a name="l00097"></a><a class="code" href="smtp__client_8h.html#a20">00097</a> <span class="preprocessor">#define SMTP_QUIT_SENT                          20      </span><a name="l00098"></a><a class="code" href="smtp__client_8h.html#a21">00098</a> <span class="preprocessor">#define SMTP_QUIT_ACKED                         21      </span>00101 <span class="preprocessor"></span><span class="comment">/* SMTP Server replies  */</span>00102 <a name="l00103"></a><a class="code" href="smtp__client_8h.html#a22">00103</a> <span class="preprocessor">#define SMTP_CMD_SERVER_READY   '2' + '2' + '0'         </span><a name="l00104"></a><a class="code" href="smtp__client_8h.html#a23">00104</a> <span class="preprocessor">#define SMTP_CMD_OK                             '2' + '5' + '0'         </span><a name="l00105"></a><a class="code" href="smtp__client_8h.html#a24">00105</a> <span class="preprocessor">#define SMTP_CMD_DATAOK                 '3' + '5' + '4'         </span><a name="l00106"></a><a class="code" href="smtp__client_8h.html#a25">00106</a> <span class="preprocessor">#define SMTP_CMD_QUITOK                 '2' + '2' + '1'         </span>00110 <span class="preprocessor"></span><span class="comment">/* Function prototypes  (internal)      */</span>00111 00112 INT8 <a class="code" href="smtp__client_8c.html#a9">smtpc_connect</a>(UINT32, UINT16);00113 <span class="keywordtype">void</span> <a class="code" href="smtp__client_8c.html#a27">smtpc_init</a>(<span class="keywordtype">void</span>);00114 INT32 smtpc_eventlistener(INT8, UINT8, UINT32, UINT32);00115 <span class="keywordtype">void</span> smtpc_run(<span class="keywordtype">void</span>);00116 UINT8 <a class="code" href="smtp__client_8c.html#a30">smtpc_getstate</a>(<span class="keywordtype">void</span>);00117 <span class="keywordtype">void</span> smtpc_sendhelo(<span class="keywordtype">void</span>);00118 <span class="keywordtype">void</span> smtpc_sendmailfrom(<span class="keywordtype">void</span>);00119 <span class="keywordtype">void</span> smtpc_sendrcptto(<span class="keywordtype">void</span>);00120 <span class="keywordtype">void</span> smtpc_senddatareq(<span class="keywordtype">void</span>);00121 <span class="keywordtype">void</span> smtpc_sendbody(<span class="keywordtype">void</span>);00122 <span class="keywordtype">void</span> smtpc_senddataend(<span class="keywordtype">void</span>);00123 <span class="keywordtype">void</span> smtpc_sendquit(<span class="keywordtype">void</span>);00124 INT16 smtpc_senddata(<span class="keywordtype">void</span>);00125 <span class="keywordtype">void</span> smtpc_changestate(UINT8);00126 00127 00128 <span class="comment">/* Function prototypes (callbacks)      */</span>00129 INT8 <a class="code" href="smtpc__callbacks_8c.html#a2">smtpc_getdomain</a>(UINT8*);00130 INT8 <a class="code" href="smtpc__callbacks_8c.html#a3">smtpc_getsender</a>(UINT8*);00131 INT8 <a class="code" href="smtpc__callbacks_8c.html#a4">smtpc_getreceiver</a>(UINT8*);00132 INT8 <a class="code" href="smtpc__callbacks_8c.html#a5">smtpc_getsubject</a>(UINT8*);00133 INT16 <a class="code" href="smtpc__callbacks_8c.html#a6">smtpc_getdata</a>(UINT8*, UINT16);00134 <span class="keywordtype">void</span> <a class="code" href="smtpc__callbacks_8c.html#a45">smtpc_dataacked</a>(<span class="keywordtype">void</span>);00135 <span class="keywordtype">void</span> <a class="code" href="smtpc__callbacks_8c.html#a46">smtpc_error</a>(<span class="keywordtype">void</span>);00136 <span class="keywordtype">void</span> <a class="code" href="smtpc__callbacks_8c.html#a47">smtpc_allok</a>(<span class="keywordtype">void</span>);00137 00138 00139 <span class="preprocessor">#endif</span></pre></div><hr><address style="align: right;"><small>Generated on Sun Aug 3 20:32:59 2003 for OpenTCP 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 + -