#include <sys/types.h>#include <sys/socket.h>#include <netinet/in.h>#include <netdb.h>

Go to the source code of this file.
Classes | |
| struct | popsession |
Defines | |
| #define | DOTBEGIN(s) ((s)[0]=='\n'&&(s)[1]=='.') |
| #define | popbytes(s) ((s)->bytes) |
| #define | popmsgsize(s, i) ((s)->list[(i)]) |
| #define | popmsguid(s, i) ((s)->uidl[(i)]) |
| #define | popnum(s) ((s)->last) |
| #define | popsetdel(s) ((s)->del=1) |
| #define | popsetundel(s) ((s)->del=0) |
| #define | SOCKET_TIMEOUT 15 |
| #define | TCPBUFLEN 512 |
Enumerations | |
| enum | popstate { AUTHORIZATION, TRANSACTION, UPDATE } |
Functions | |
| int | dotline (char *buf) |
| void | freelistarray (int *array) |
| void | freemsg (char *msg) |
| void | freeuidlarray (char **arrray) |
| int * | list2array (char *poplist) |
| int | listi2size (char *resp) |
| char * | nextline (char *string) |
| char * | pop3_apop (int sock, const char *name, const char *digest) |
| char * | pop3_connect (int sock, struct sockaddr_in *connection) |
| char * | pop3_dele (int sock, int id) |
| void | pop3_disconnect (int sock) |
| int | pop3_error (char *string) |
| char * | pop3_list (int sock, int id) |
| char * | pop3_noop (int sock) |
| char * | pop3_pass (int sock, const char *pw) |
| int | pop3_prepare (const char *servername, const int port, struct sockaddr_in *connection, struct hostent *server) |
| char * | pop3_quit (int sock) |
| char * | pop3_retr (int sock, int id) |
| char * | pop3_rset (int sock) |
| char * | pop3_stat (int sock) |
| char * | pop3_top (int sock, int id, int lines) |
| char * | pop3_uidl (int sock, int id) |
| char * | pop3_user (int sock, const char *name) |
| char * | popbegin (const char *servername, const char *user, const char *pass, popsession **sp) |
| int | popcancel (popsession *session) |
| int | popdelmsg (popsession *session, int id) |
| void | popend (popsession *session) |
| char * | popgethead (popsession *session, int id) |
| char * | popgetmsg (popsession *session, int id) |
| char * | recv_rest (int sock, char *buf, int cs, int bs) |
| char * | retr2msg (char *data) |
| int | stat2bytes (char *resp) |
| int | stat2last (char *resp) |
| char ** | uidl2array (char *resp) |
| char * | uidli2sig (char *resp) |
| #define DOTBEGIN | ( | s | ) | ((s)[0]=='\n'&&(s)[1]=='.') |
Definition at line 99 of file libspopc.h.
| #define popbytes | ( | s | ) | ((s)->bytes) |
Definition at line 181 of file libspopc.h.
| #define popmsgsize | ( | s, | |||
| i | ) | ((s)->list[(i)]) |
Definition at line 197 of file libspopc.h.
| #define popmsguid | ( | s, | |||
| i | ) | ((s)->uidl[(i)]) |
Definition at line 202 of file libspopc.h.
| #define popnum | ( | s | ) | ((s)->last) |
Definition at line 185 of file libspopc.h.
| #define popsetdel | ( | s | ) | ((s)->del=1) |
Definition at line 189 of file libspopc.h.
| #define popsetundel | ( | s | ) | ((s)->del=0) |
Definition at line 193 of file libspopc.h.
| #define SOCKET_TIMEOUT 15 |
Definition at line 27 of file libspopc.h.
| #define TCPBUFLEN 512 |
Definition at line 28 of file libspopc.h.
| enum popstate |
Definition at line 166 of file libspopc.h.
| int dotline | ( | char * | buf | ) |
| void freelistarray | ( | int * | array | ) |
| void freeuidlarray | ( | char ** | arrray | ) |
| int* list2array | ( | char * | poplist | ) |
| int listi2size | ( | char * | resp | ) |
| char* nextline | ( | char * | string | ) |
| char* pop3_apop | ( | int | sock, | |
| const char * | name, | |||
| const char * | digest | |||
| ) |
| char* pop3_connect | ( | int | sock, | |
| struct sockaddr_in * | connection | |||
| ) |
| char* pop3_dele | ( | int | sock, | |
| int | id | |||
| ) |
| void pop3_disconnect | ( | int | sock | ) |
| int pop3_error | ( | char * | string | ) |
| char* pop3_list | ( | int | sock, | |
| int | id | |||
| ) |
| char* pop3_noop | ( | int | sock | ) |
| char* pop3_pass | ( | int | sock, | |
| const char * | pw | |||
| ) |
| int pop3_prepare | ( | const char * | servername, | |
| const int | port, | |||
| struct sockaddr_in * | connection, | |||
| struct hostent * | server | |||
| ) |
| char* pop3_quit | ( | int | sock | ) |
| char* pop3_retr | ( | int | sock, | |
| int | id | |||
| ) |
| char* pop3_rset | ( | int | sock | ) |
| char* pop3_stat | ( | int | sock | ) |
| char* pop3_top | ( | int | sock, | |
| int | id, | |||
| int | lines | |||
| ) |
| char* pop3_uidl | ( | int | sock, | |
| int | id | |||
| ) |
| char* pop3_user | ( | int | sock, | |
| const char * | name | |||
| ) |
| char* popbegin | ( | const char * | servername, | |
| const char * | user, | |||
| const char * | pass, | |||
| popsession ** | sp | |||
| ) |
| int popcancel | ( | popsession * | session | ) |
| int popdelmsg | ( | popsession * | session, | |
| int | id | |||
| ) |
| void popend | ( | popsession * | session | ) |
| char* popgethead | ( | popsession * | session, | |
| int | id | |||
| ) |
| char* popgetmsg | ( | popsession * | session, | |
| int | id | |||
| ) |
| char* recv_rest | ( | int | sock, | |
| char * | buf, | |||
| int | cs, | |||
| int | bs | |||
| ) |
| char* retr2msg | ( | char * | data | ) |
| int stat2bytes | ( | char * | resp | ) |
| int stat2last | ( | char * | resp | ) |
| char** uidl2array | ( | char * | resp | ) |
1.6.3