![]() |
| Home |
|
|
Function xn_pop_clientFunction xn_pop_client connects and authenticates with a POP3 server.
int xn_pop_client(pop_context * context,
BYTE * pop_server_ip,
char * username,
char * password);
ParameterscontextPointer to a pop_context structure allocated by the application. Applications do not need to set or retrieve any values in this structure. pop_server_ipThe POP3 server's IP address in network byte order. usernameUsername to log in to the POP3 server. passwordPassword to log in to the POP3 server. return valueReturns 0 if successful, otherwise SOCKET_ERROR. If an error occurred, call xn_getlasterror and xn_geterror_string to return the error value. Section Error Codes further describes each error. Possible values for this function are:
This function connects to a POP3 server. The function xn_pop_QUIT needs to be called to close the connection.
|