Definition in file pop3_client.h.
Go to the source code of this file.
Data Structures | |
struct | pop3c_struct |
POP3 client structure. More... | |
Defines | |
#define | POP3C_SENDERMAXLEN 30 |
#define | POP3C_SUBJECTMAXLEN 30 |
#define | POP3C_TOUT 20 |
#define | POP3C_UNINITIALIZED 1 |
#define | POP3C_CLOSED 2 |
#define | POP3C_OPEN_REQUESTED 3 |
#define | POP3C_CONNECTIONOPEN_SENT 4 |
#define | POP3C_CONNECTION_OPENED 5 |
#define | POP3C_SERVER_READY 6 |
#define | POP3C_USERNAME_SENT 7 |
#define | POP3C_USERNAME_ACKED 8 |
#define | POP3C_PASSWORD_SENT 9 |
#define | POP3C_PASSWORD_ACKED 10 |
#define | POP3C_STAT_SENT 11 |
#define | POP3C_STAT_GET 12 |
#define | POP3C_LIST_SENT 13 |
#define | POP3C_LIST_GET 14 |
#define | POP3C_TOP0_SENT 15 |
#define | POP3C_RECEIVING_HEADER 16 |
#define | POP3C_RECEIVING_HDR_FROM 17 |
#define | POP3C_RECEIVING_HDR_SUBJ 18 |
#define | POP3C_TOP0_GET 19 |
#define | POP3C_RETR_SENT 20 |
#define | POP3C_RECEIVING_MSG_HEADER 21 |
#define | POP3C_RECEIVING_MSG 22 |
#define | POP3C_MESSAGE_RECEIVED 23 |
#define | POP3C_DELE_SENT 24 |
#define | POP3C_DELE_ACKED 25 |
#define | POP3C_QUIT_SENT 26 |
#define | POP3C_QUIT_ACKED 27 |
Functions | |
INT8 | pop3c_connect (UINT32, UINT16) |
Start E-mail reading procedure. | |
void | pop3c_init (void) |
Initialize POP3 client. | |
UINT8 | pop3c_getstate (void) |
Get current POP3 client state. | |
void | pop3c_error (void) |
POP3 client error handler. | |
void | pop3c_data (UINT8) |
Receives E-mail data. | |
void | pop3c_allok (void) |
Indicates succesfull reading of E-mails. | |
void | pop3c_messages (UINT16) |
Invoked to inform user app about the number of new e-mails. | |
INT16 | pop3c_msgoffer (UINT16, UINT32, UINT8 *, UINT8 *) |
Offers e-mail message to the user app. | |
INT8 | pop3c_getusername (UINT8 *) |
Get user name that is to be used for loging to the server. | |
INT8 | pop3c_getpassword (UINT8 *) |
Get password that is to be used for loging to the server. |
|
Maximum length for senders' e-mail address including '\0' Definition at line 69 of file pop3_client.h. |
|
Maximum length of the subject field including '\0' Definition at line 72 of file pop3_client.h. |
|
POP3 client timeout in secs Definition at line 76 of file pop3_client.h. |
|
POP3 state: Not initialized yet Definition at line 107 of file pop3_client.h. |
|
POP3 state: TCP connection closed Definition at line 108 of file pop3_client.h. Referenced by pop3c_connect(), and pop3c_init(). |
|
POP3 state: User has requested mail read Definition at line 109 of file pop3_client.h. Referenced by pop3c_connect(). |
|
POP3 state: TCP connection request sent Definition at line 110 of file pop3_client.h. |
|
POP3 state: TCP Connection opened Definition at line 111 of file pop3_client.h. |
|
POP3 state: POP3 server has indicated +OK Definition at line 112 of file pop3_client.h. |
|
POP3 state: USER sent by us Definition at line 113 of file pop3_client.h. |
|
POP3 state: Server answered username +OK Definition at line 114 of file pop3_client.h. |
|
POP3 state: PASS sent by us Definition at line 115 of file pop3_client.h. |
|
POP3 state: Server answered password +OK Definition at line 116 of file pop3_client.h. |
|
POP3 state: STAT sent by us Definition at line 117 of file pop3_client.h. |
|
POP3 state: Server has answered how many messages Definition at line 118 of file pop3_client.h. |
|
POP3 state: LIST sent by us Definition at line 119 of file pop3_client.h. |
|
POP3 state: Server has repld. with the len of msg Definition at line 120 of file pop3_client.h. |
|
POP3 state: TOP x 0 sent by us Definition at line 121 of file pop3_client.h. |
|
POP3 state: We are receiving header Definition at line 122 of file pop3_client.h. |
|
POP3 state: We are parsing 'from:' Definition at line 123 of file pop3_client.h. |
|
POP3 state: We are parsing 'subject:' Definition at line 124 of file pop3_client.h. |
|
POP3 state: Server has replied with header Definition at line 125 of file pop3_client.h. |
|
POP3 state: RETR sent by us Definition at line 126 of file pop3_client.h. |
|
POP3 state: We are reading the message header Definition at line 127 of file pop3_client.h. |
|
POP3 state: Receiving the message Definition at line 128 of file pop3_client.h. |
|
POP3 state: Received the message Definition at line 129 of file pop3_client.h. |
|
POP3 state: DELE sent by us Definition at line 130 of file pop3_client.h. |
|
POP3 state: Server has replied dele +OK Definition at line 131 of file pop3_client.h. |
|
POP3 state: QUIT sent by us Definition at line 132 of file pop3_client.h. |
|
POP3 state: Server has replied quit +OK Definition at line 133 of file pop3_client.h. |
|
Definition at line 114 of file pop3_client.c. References POP3C_CLOSED, POP3C_OPEN_REQUESTED, pop3c_struct::remip, pop3c_struct::remport, pop3c_struct::sochandle, and pop3c_struct::state. |
|
Definition at line 148 of file pop3_client.c. References pop3c_struct::charsinheaderbuf, pop3c_struct::curmsghlen, pop3c_struct::curmsgindex, pop3c_struct::curmsgtotlen, pop3c_struct::from, get_timer(), pop3c_struct::headerbuf, pop3c_struct::msgtotal, POP3C_CLOSED, pop3c_init_done, pop3c_struct::remip, pop3c_struct::remport, RESET_SYSTEM, pop3c_struct::sochandle, pop3c_struct::subject, TCP_DEF_TOUT, tcp_getsocket(), TCP_TOS_NORMAL, TCP_TYPE_CLIENT, pop3c_struct::tmrhandle, and pop3c_struct::unacked. |
|
Definition at line 194 of file pop3_client.c. References pop3c_struct::state. |
|
Definition at line 82 of file pop3c_callbacks.c. |
|
Definition at line 183 of file pop3c_callbacks.c. |
|
Definition at line 169 of file pop3c_callbacks.c. |
|
Definition at line 96 of file pop3c_callbacks.c. |
|
Definition at line 117 of file pop3c_callbacks.c. |
|
Definition at line 135 of file pop3c_callbacks.c. |
|
Definition at line 155 of file pop3c_callbacks.c. |