SMTPc_Disconnect()
Disconnect from a SMTP server.
Files
smtp-c.h/smtp-c.c
Prototype
void SMTPc_Disconnect (NET_SOCK_ID sock_id, SMTPc_ERR *p_err);
Arguments
sock_id
Socket descriptor/handle identifier.
p_err
Pointer to variable that will receive the return error code from this function.
Returned Values
none.
Required Configuration
Notes / Warnings
- The receiver (client) MUST NOT intentionally close the transmission channel until it receives and replies to a QUIT command.
- The receiver of the QUIT command MUST send an OK reply, and then close the transmission channel.
Example Usage
none.