Mistake on this page?
Report an issue in GitHub or email us
Data Fields
smtp_send_request Struct Reference

This structure is used as argument for smtp_send_mail_int(), which in turn can be used with tcpip_callback() to send mail from interrupt context, e.g. More...

#include <smtp.h>

Data Fields

u8_t static_data
 If this is != 0, data is not copied into an extra buffer but used from the pointers supplied in this struct. More...
 

Detailed Description

This structure is used as argument for smtp_send_mail_int(), which in turn can be used with tcpip_callback() to send mail from interrupt context, e.g.

like this: struct smtp_send_request req; (to be filled) tcpip_try_callback(smtp_send_mail_int, (void)req);

For member description, see parameter description of smtp_send_mail(). When using with tcpip_callback, this structure has to stay allocated (e.g. using mem_malloc/mem_free) until its 'callback_fn' is called.

Definition at line 54 of file smtp.h.

Field Documentation

u8_t static_data

If this is != 0, data is not copied into an extra buffer but used from the pointers supplied in this struct.

This means less memory usage, but data must stay untouched until the callback function is called.

Definition at line 65 of file smtp.h.

Important Information for this Arm website

This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies. If you are not happy with the use of these cookies, please review our Cookie Policy to learn how they can be disabled. By disabling cookies, some features of the site will not work.