NetBurner 3.5.7
PDF Version
tftp.h
1/*NB_REVISION*/
2
3/*NB_COPYRIGHT*/
4
14#ifndef _NB_TFTP_H
15#define _NB_TFTP_H
16#include <nettypes.h>
17#define IANA_TFTP_PORT (69)
18
30#define TFTP_OK (0)
31#define TFTP_TIMEOUT (1)
32#define TFTP_ERROR (2)
52int GetTFTP(PCSTR fileName, PCSTR mode, puint8_t buffer, int &len, uint32_t timeout, IPADDR4 server, uint16_t port = IANA_TFTP_PORT);
53
73int SendTFTP(PCSTR fileName,
74 PCSTR mode,
75 puint8_t buffer,
76 int len,
77 uint32_t timeout,
78 uint32_t packetTimeout,
79 IPADDR4 server,
80 uint16_t port = IANA_TFTP_PORT);
81
82#endif
83
Used to store and manipulate IPv4 addresses in dual stack mode.
Definition nettypes.h:225
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.