NetBurner 3.1
tftp.h
Go to the documentation of this file.
1 /*NB_REVISION*/
2 
3 /*NB_COPYRIGHT*/
4 
14 #ifndef _NB_TFTP_H
15 #define _NB_TFTP_H
16 
17 #define IANA_TFTP_PORT (69)
18 
22 #define TFTP_OK (0)
23 #define TFTP_TIMEOUT (1)
24 #define TFTP_ERROR (2)
25 
27 
44 int GetTFTP(PCSTR fileName, PCSTR mode, puint8_t buffer, int &len, uint32_t timeout, IPADDR4 server, uint16_t port = IANA_TFTP_PORT);
45 
65 int SendTFTP(PCSTR fileName,
66  PCSTR mode,
67  puint8_t buffer,
68  int len,
69  uint32_t timeout,
70  uint32_t packetTimeout,
71  IPADDR4 server,
72  uint16_t port = IANA_TFTP_PORT);
73 
74 #endif
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.
Definition: tftp.cpp:28
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.
Definition: tftp.cpp:145