Home |
Function ftp_server_daemon Function cb_ftp_check_user_name_fnc |
Function ftp_server_daemonThis function is the FTP server. int ftp_server_daemon(void); Parametersreturn valueOn failure, the function returns SOCKET_ERROR and xn_getlasterror and xn_geterror_string return the error value. Error Codes further describes each error. If the function succeeds, it never returns. The server loops forever processing FTP client requests. The FTP Server listens for connection requests on port 21. For each established valid connection, a thread is spawned to process the request. The server will return only if an error is detected. One TCP socket is allocated to listen for requests and one TCP socket is allocated to process each request. The socket is closed after the request has been processed. vf_init must be called before the FTP Server can be executed. Function cb_ftp_check_user_name_fnc
|