smtp-client
SMTP Client C Library
smtp_command Struct Reference

#include <smtp.h>

+ Collaboration diagram for smtp_command:

Data Fields

enum smtp_result_code code
 
int more
 
const char * text
 

Detailed Description

Used for parsing out the responses from the SMTP server.

For example, if the server sends back '250-STARTTLS', then code would get set to 250, more would get set to 1, and text would get set to STARTTLS.

Definition at line 527 of file smtp.h.

Field Documentation

◆ code

enum smtp_result_code smtp_command::code

Result code converted to an integer.

Definition at line 531 of file smtp.h.

Referenced by smtp_parse_cmd_line(), smtp_read_and_parse_code(), and smtp_unit_test_parse_cmd_line().

◆ more

int smtp_command::more

Indicates if more server commands follow.

This will get set to 1 if the fourth character in the response line contains a '-', otherwise this will get set to 0.

Definition at line 539 of file smtp.h.

Referenced by smtp_parse_cmd_line(), smtp_read_and_parse_code(), and smtp_unit_test_parse_cmd_line().

◆ text

const char* smtp_command::text

The text shown after the status code.

Definition at line 544 of file smtp.h.

Referenced by smtp_auth_cram_md5(), smtp_parse_cmd_line(), and smtp_unit_test_parse_cmd_line().


The documentation for this struct was generated from the following file: