Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: oldheating gps motorhome heating
Diff: udp/tftp.h
- Revision:
- 57:e0fb648acf48
- Child:
- 59:e0e556c8bd46
diff -r 35117a8b5c65 -r e0fb648acf48 udp/tftp.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/udp/tftp.h Tue Nov 28 17:05:46 2017 +0000 @@ -0,0 +1,22 @@ +extern bool TftpTrace; + +extern void TftpMain(); + +extern char TftpServerName[]; +extern char TftpFileName[]; +extern int TftpWriteStatus; + +#define TFTP_WRITE_STATUS_NONE 0 +#define TFTP_WRITE_STATUS_REQUEST 1 +#define TFTP_WRITE_STATUS_IN_PROGRESS 2 + +extern uint32_t TftpServerIp4; +extern char TftpServerIp6[]; + +extern int (*TftpGetNextByteFunction)(); + +extern int TftpHandlePacketReceived(void (*traceback)(void), int* pSize, void * pPacket); +extern int TftpPollForPacketToSend(int type, void* pPacket, int* pSize); + +#define TFTP_SERVER_PORT 69 +#define TFTP_CLIENT_PORT 60690