NetBurner 3.5.8
PDF Version
Toggle main menu visibility
tftp.h
1
/*NB_REVISION*/
2
3
/*NB_COPYRIGHT*/
4
8
13
14
#ifndef _NB_TFTP_H
15
#define _NB_TFTP_H
16
#include <nettypes.h>
17
#define IANA_TFTP_PORT (69)
18
24
25
30
#define TFTP_OK (0)
31
#define TFTP_TIMEOUT (1)
32
#define TFTP_ERROR (2)
34
52
int
GetTFTP
(PCSTR fileName, PCSTR mode, puint8_t buffer,
int
&len, uint32_t timeout,
IPADDR4
server, uint16_t port = IANA_TFTP_PORT);
53
73
int
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
85
IPADDR4
Used to store and manipulate IPv4 addresses in dual stack mode.
Definition
nettypes.h:225
GetTFTP
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.
SendTFTP
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.
nbrtos
include
tftp.h
Generated by
1.18.0