NetBurner 3.5.0
PDF Version
 
tftp.h
Go to the documentation of this file.
1/*NB_REVISION*/
2
3/*NB_COPYRIGHT*/
4
15#ifndef _NB_TFTP_H
16#define _NB_TFTP_H
17#include <nettypes.h>
18#define IANA_TFTP_PORT (69)
19
24#define TFTP_OK (0)
25#define TFTP_TIMEOUT (1)
26#define TFTP_ERROR (2)
46int GetTFTP(PCSTR fileName, PCSTR mode, puint8_t buffer, int &len, uint32_t timeout, IPADDR4 server, uint16_t port = IANA_TFTP_PORT);
47
67int SendTFTP(PCSTR fileName,
68 PCSTR mode,
69 puint8_t buffer,
70 int len,
71 uint32_t timeout,
72 uint32_t packetTimeout,
73 IPADDR4 server,
74 uint16_t port = IANA_TFTP_PORT);
75
76#endif
77
Used to store and manipulate IPv4 addresses in dual stack mode.
Definition nettypes.h:208
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.
NetBurner IPADDR4 Class. See the IPADDR4 Class page for complete documentation.