NetBurner 3.5.0
PDF Version |
|
Topics | |
TFTP Return Codes | |
Functions | |
int | GetTFTP (PCSTR fileName, PCSTR mode, puint8_t buffer, int &len, uint32_t timeout, IPADDR4 server, uint16_t port=IANA_TFTP_PORT) |
Get a file from a TFTP server. | |
int | SendTFTP (PCSTR fileName, PCSTR mode, puint8_t buffer, int len, uint32_t timeout, uint32_t packetTimeout, IPADDR4 server, uint16_t port=IANA_TFTP_PORT) |
Send a file to a TFTP server. | |
#include< tftp.h >
The NetBurner TFTP Group
int GetTFTP | ( | PCSTR | fileName, |
PCSTR | mode, | ||
puint8_t | buffer, | ||
int & | len, | ||
uint32_t | timeout, | ||
IPADDR4 | server, | ||
uint16_t | port = IANA_TFTP_PORT ) |
#include <tftp.h>
Get a file from a TFTP server.
fileName | Name of file to retrieve |
mode | Transfer mode. 'b' = binary, 't' = text |
buffer | Data destination buffer |
len | Maximum length when function is called, bytes read upon function return. |
timeout | Total amount of time for file transfer, in system TimeTicks |
server | IPv4 address of TFTP server |
port | Optional TFTP server port number. If not specified the default TFTP port number 69 will be used. |
int SendTFTP | ( | PCSTR | fileName, |
PCSTR | mode, | ||
puint8_t | buffer, | ||
int | len, | ||
uint32_t | timeout, | ||
uint32_t | packetTimeout, | ||
IPADDR4 | server, | ||
uint16_t | port = IANA_TFTP_PORT ) |
#include <tftp.h>
Send a file to a TFTP server.
fileName | Name of file to retrieve |
mode | Transfer mode. 'b' = binary, 't' = text |
buffer | Data destination buffer |
len | Length of file to transfer, in bytes |
timeout | Total amount of time for file transfer, in system TimeTicks |
packetTimeout | Timeout for any single UDP packet to successfully transfer and be acknowledged, in system Time Ticks |
server | IPv4 address of TFTP server |
port | Optional TFTP server port number. If not specified the default TFTP port number 69 will be used. |