TFTPc_Put()
Puts a file from the TFTP server.
Files
tftp-c.h/tftp-c.c
Prototype
TFTPc_ERR TFTPc_Put (NET_IP_ADDR server_ip, NET_PORT_NBR server_port, CPU_CHAR *pfilename_local, CPU_CHAR *pfilename_remote, TFTPc_MODE mode); |
Arguments
server_ip Server IP address.
server_port Server port.
pfilename_local Pointer to name of the file to be read from the client.
pfilename_remote Pointer to name of the file to be written to the server.
mode FTP transfer mode:
FTPc_MODE_NETASCII ASCII mode
FTPc_MODE_OCTET Binary mode
Returned Values
TFTPc_ERR_NONE, No error;
Specific transfer error code, otherwise.
Required Configuration
None.
Notes / Warnings
None.
Example Usage