libspopc.h | libspopc.h | |||
---|---|---|---|---|
skipping to change at line 54 | skipping to change at line 54 | |||
/* connects to the server through the sock and returns server's welcome */ | /* connects to the server through the sock and returns server's welcome */ | |||
void pop3_disconnect(int sock); | void pop3_disconnect(int sock); | |||
/* close socket */ | /* close socket */ | |||
/**************** | /**************** | |||
* pop3 queries * | * pop3 queries * | |||
****************/ | ****************/ | |||
char* pop3_user(int sock, const char* name); | char* pop3_user(int sock, const char* name); | |||
/* performs "USER" pop query and returns server's <128 bytes response */ | /* performs "USER" pop query and returns server's <512 bytes response */ | |||
char* pop3_pass(int sock, const char* pw); | char* pop3_pass(int sock, const char* pw); | |||
/* performs "PASS" pop query and return server's <128 bytes response */ | /* performs "PASS" pop query and return server's <512 bytes response */ | |||
char* pop3_quit(int sock); | char* pop3_quit(int sock); | |||
/* performs "QUIT" pop query and returns server's <128 bytes response */ | /* performs "QUIT" pop query and returns server's <512 bytes response */ | |||
char* pop3_stat(int sock); | char* pop3_stat(int sock); | |||
/* performs "STAT" pop query and returns server's <128 bytes response */ | /* performs "STAT" pop query and returns server's <512 bytes response */ | |||
char* pop3_list(int sock, int id); | char* pop3_list(int sock, int id); | |||
/* performs a "LIST" pop query and returns server's (long) response */ | /* performs a "LIST" pop query and returns server's (long) response */ | |||
char* pop3_retr(int sock, int id); | char* pop3_retr(int sock, int id); | |||
/* performs a "RETR" pop query and returns server's (long) response */ | /* performs a "RETR" pop query and returns server's (long) response */ | |||
char* pop3_dele(int sock, int id); | char* pop3_dele(int sock, int id); | |||
/* performs a "DELE" pop query and returns server's <128 bytes response */ | /* performs a "DELE" pop query and returns server's <512 bytes response */ | |||
char* pop3_noop(int sock); | char* pop3_noop(int sock); | |||
/* performs a "NOOP" pop query and returns server's <128 bytes response */ | /* performs a "NOOP" pop query and returns server's <512 bytes response */ | |||
char* pop3_rset(int sock); | char* pop3_rset(int sock); | |||
/* performs a "RSET" pop query and returns server's <128 bytes response */ | /* performs a "RSET" pop query and returns server's <512 bytes response */ | |||
char* pop3_top(int sock, int id, int lines); | char* pop3_top(int sock, int id, int lines); | |||
/* performs a "TOP" pop query and returns server's (long) response */ | /* performs a "TOP" pop query and returns server's (long) response */ | |||
char* pop3_uidl(int sock, int id); | char* pop3_uidl(int sock, int id); | |||
/* performs a "UIDL" pop query and returns server's (long) response */ | /* performs a "UIDL" pop query and returns server's (long) response */ | |||
char* pop3_apop(int sock, const char* name, const char* digest); | char* pop3_apop(int sock, const char* name, const char* digest); | |||
/* performs a "APOP" secure pop query and returns server's <128 bytes respo nse */ | /* performs a "APOP" secure pop query and returns server's <512 bytes respo nse */ | |||
/* this one is not in the API, just for libspopc internal use: */ | /* this one is not in the API, just for libspopc internal use: */ | |||
char* recv_rest(int sock, char* buf, int cs, int bs); | char* recv_rest(int sock, char* buf, int cs, int bs); | |||
/* recv rest of data through sock, given a cs bytes filled buffer of total size bs */ | /* recv rest of data through sock, given a cs bytes filled buffer of total size bs */ | |||
/* end of data is assumed when data has a "\n.\n" or "\n.\0" string */ | /* end of data is assumed when data has a "\n.\n" or "\n.\0" string */ | |||
/********************* | /********************* | |||
* parsing utilities * | * parsing utilities * | |||
*********************/ | *********************/ | |||
#define DOTBEGIN(s) ((s)[0]=='\n'&&(s)[1]=='.') | #define DOTBEGIN(s) ((s)[0]=='\n'&&(s)[1]=='.') | |||
End of changes. 8 change blocks. | ||||
8 lines changed or deleted | 8 lines changed or added | |||