Function tftp_server_daemon
This function is the TFTP Server.
int tftp_server_daemon(void);
Parametersreturn valueReturns 0 if successful, otherwise SOCKET_ERROR. If an error occurred, call xn_getlasterror and xn_geterror_string to return the error value. In addition to the error values listed below, all errors returned by socket, bind, connect, recvfrom, recv, and select may also be set. Section Error Codes further describes each error. Possible values for this function are:
Value |
Meaning |
EREQNOTSUPPORT |
Request from client unrecognized or not supported (i.e. not a Read or Write request). |
EBADREQ |
Request from client had format error. |
EMODENOTSUPPORT |
Mode in request from client was unrecognized or not supported. |
EIOERR |
File system error. |
ESENDFAILED |
Send did not send the requested number of bytes. |
ECLIERROR |
Client sent an error response. |
ETIMEDOUT |
Operation timed out. |
The TFTP Server processes one incoming TFTP request (either put or get) and then returns. vf_init must be called before tftp_server_daemon can be used.
TFTP Server
Configuration
|