📄 smtpc__callbacks_8c.html
字号:
pointer to buffer to which the sender will be stored </td></tr></table></dl><dl compact><dt><b>Returns: </b></dt><dd> <ul><li> -1 - Error <li> >0 - Number of bytes inserted</ul></dl>This callback function is called by SMTP Client when it wants to know the E-mail address of sender. The user is responsible of storing that address to destbuf without NULL termination ('\0') and returning number of bytes on E-mail address. <p>Definition at line <a class="el" href="smtpc__callbacks_8c-source.html#l00139">139</a> of file <a class="el" href="smtpc__callbacks_8c-source.html">smtpc_callbacks.c</a>. </td> </tr></table><a name="a4" doxytag="smtpc_callbacks.c::smtpc_getreceiver"></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"> INT8 smtpc_getreceiver </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">UINT8 * </td> <td class="mdname1" valign="top" nowrap> <em>dbuf</em> </td> <td class="md" valign="top">) </td> <td class="md" nowrap></td> </tr> </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td><p><dl compact><dt><b>Author: </b></dt><dd> <ul><li> Jari Lahti (<a href="mailto:jari.lahti@violasystems.com">jari.lahti@violasystems.com</a>) </ul></dl><dl compact><dt><b>Date: </b></dt><dd>12.08.2002 </dl><dl compact><dt><b>Parameters: </b></dt><dd><table border=0 cellspacing=2 cellpadding=0><tr><td valign=top><em>dbuf</em> </td><td>pointer to buffer to which the receiver will be stored </td></tr></table></dl><dl compact><dt><b>Returns: </b></dt><dd> <ul><li> -1 - Error <li> >0 - Number of bytes inserted</ul></dl>This callback function is called by SMTP Client when it wants to know the E-mail address of receiver. The user is responsible of storing that address to destbuf without NULL termination ('\0') and returning number of bytes on E-mail address. <p>Definition at line <a class="el" href="smtpc__callbacks_8c-source.html#l00159">159</a> of file <a class="el" href="smtpc__callbacks_8c-source.html">smtpc_callbacks.c</a>. </td> </tr></table><a name="a5" doxytag="smtpc_callbacks.c::smtpc_getsubject"></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"> INT8 smtpc_getsubject </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">UINT8 * </td> <td class="mdname1" valign="top" nowrap> <em>dbuf</em> </td> <td class="md" valign="top">) </td> <td class="md" nowrap></td> </tr> </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td><p><dl compact><dt><b>Author: </b></dt><dd> <ul><li> Jari Lahti (<a href="mailto:jari.lahti@violasystems.com">jari.lahti@violasystems.com</a>) </ul></dl><dl compact><dt><b>Date: </b></dt><dd>12.08.2002 </dl><dl compact><dt><b>Parameters: </b></dt><dd><table border=0 cellspacing=2 cellpadding=0><tr><td valign=top><em>dbuf</em> </td><td>pointer to buffer to which the subject will be stored </td></tr></table></dl><dl compact><dt><b>Returns: </b></dt><dd> <ul><li> -1 - Error <li> >0 - Number of bytes inserted</ul></dl>This callback function is called by SMTP Client when it wants to know the subject of E-mail to be sent. The user is responsible of storing subject to destbuf without NULL termination ('\0') and returning number of bytes inserted. <p>Definition at line <a class="el" href="smtpc__callbacks_8c-source.html#l00178">178</a> of file <a class="el" href="smtpc__callbacks_8c-source.html">smtpc_callbacks.c</a>. </td> </tr></table><a name="a6" doxytag="smtpc_callbacks.c::smtpc_getdata"></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"> INT16 smtpc_getdata </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">UINT8 * </td> <td class="mdname" nowrap> <em>dbuf</em>, </td> </tr> <tr> <td></td> <td></td> <td class="md" nowrap>UINT16 </td> <td class="mdname" nowrap> <em>buflen</em></td> </tr> <tr> <td></td> <td class="md">) </td> <td class="md" colspan="2"></td> </tr> </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td><p><dl compact><dt><b>Author: </b></dt><dd> <ul><li> Jari Lahti (<a href="mailto:jari.lahti@violasystems.com">jari.lahti@violasystems.com</a>) </ul></dl><dl compact><dt><b>Date: </b></dt><dd>12.08.2002 </dl><dl compact><dt><b>Parameters: </b></dt><dd><table border=0 cellspacing=2 cellpadding=0><tr><td valign=top><em>dbuf</em> </td><td>pointer to buffer to which the data will be stored </td></tr><tr><td valign=top><em>buflen</em> </td><td>length of data buffer </td></tr></table></dl><dl compact><dt><b>Returns: </b></dt><dd> <ul><li> -1 - Error <li> >0 - Number of bytes inserted</ul></dl>This callback function is called by SMTP Client when it wants to get mail plain data from user. The user is responsible of filling dbuf and returning number of bytes assembled. When data end is reached the function must return (-1) without storing any bytes to buffer (so just send data untill you don't have any bytes to sent when callback is made to that function and return -1). Do not move read pointer of your data forward before SMTP makes callback to smtpc_dataacked! <p>Definition at line <a class="el" href="smtpc__callbacks_8c-source.html#l00203">203</a> of file <a class="el" href="smtpc__callbacks_8c-source.html">smtpc_callbacks.c</a>. </td> </tr></table><a name="a7" doxytag="smtpc_callbacks.c::smtpc_dataacked"></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 smtpc_dataacked </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">void </td> <td class="mdname1" valign="top" nowrap> </td> <td class="md" valign="top">) </td> <td class="md" nowrap></td> </tr> </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td><p><dl compact><dt><b>Author: </b></dt><dd> <ul><li> Jari Lahti (<a href="mailto:jari.lahti@violasystems.com">jari.lahti@violasystems.com</a>) </ul></dl><dl compact><dt><b>Date: </b></dt><dd>12.08.2002</dl>This callback function is called by SMTP Client when TCP has ensured that the last packet was transmitted succesfully and next time when smtpc_getdata callback is made new data should be assembled <p>Definition at line <a class="el" href="smtpc__callbacks_8c-source.html#l00219">219</a> of file <a class="el" href="smtpc__callbacks_8c-source.html">smtpc_callbacks.c</a>. </td> </tr></table><hr><address style="align: right;"><small>Generated on Sun Aug 3 20:33:00 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 + -