Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

Unable to render {include} The included page could not be found.
Unable to render {include} The included page could not be found.

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

See section 3-3 “µC/TFTPcExample Code” on page 9.

  • No labels