libspopc.h | libspopc.h | |||
---|---|---|---|---|
skipping to change at line 98 | skipping to change at line 98 | |||
/************** | /************** | |||
* connecting * | * connecting * | |||
**************/ | **************/ | |||
pop3sock_t pop3_prepare(const char* servername, const int port, struct sock addr_in* connection, struct hostent* server); | pop3sock_t pop3_prepare(const char* servername, const int port, struct sock addr_in* connection, struct hostent* server); | |||
/* prepares the pop session and returns a socket descriptor, or BAD_SOCK on error */ | /* prepares the pop session and returns a socket descriptor, or BAD_SOCK on error */ | |||
char* pop3_connect(pop3sock_t sock, struct sockaddr_in* connection); | char* pop3_connect(pop3sock_t sock, struct sockaddr_in* connection); | |||
/* 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(pop3sock_t sock); | void pop3_disconnect(pop3sock_t sock, struct hostent* server); | |||
/* close socket */ | /* close socket and free server info */ | |||
/**************** | /**************** | |||
* pop3 queries * | * pop3 queries * | |||
****************/ | ****************/ | |||
char* pop3_user(pop3sock_t sock, const char* name); | char* pop3_user(pop3sock_t sock, const char* name); | |||
/* performs "USER" pop query and returns server's <512 bytes response */ | /* performs "USER" pop query and returns server's <512 bytes response */ | |||
char* pop3_pass(pop3sock_t sock, const char* pw); | char* pop3_pass(pop3sock_t sock, const char* pw); | |||
/* performs "PASS" pop query and return server's <512 bytes response */ | /* performs "PASS" pop query and return server's <512 bytes response */ | |||
End of changes. 1 change blocks. | ||||
2 lines changed or deleted | 2 lines changed or added | |||