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
udp/tftp.h@59:e0e556c8bd46, 2017-12-14 (annotated)
- Committer:
- andrewboyson
- Date:
- Thu Dec 14 20:55:40 2017 +0000
- Revision:
- 59:e0e556c8bd46
- Parent:
- 57:e0fb648acf48
- Child:
- 61:aad055f1b0d1
Added buffer length to help avoid over runs
Who changed what in which revision?
| User | Revision | Line number | New contents of line |
|---|---|---|---|
| andrewboyson | 57:e0fb648acf48 | 1 | extern bool TftpTrace; |
| andrewboyson | 57:e0fb648acf48 | 2 | |
| andrewboyson | 57:e0fb648acf48 | 3 | extern void TftpMain(); |
| andrewboyson | 57:e0fb648acf48 | 4 | |
| andrewboyson | 57:e0fb648acf48 | 5 | extern char TftpServerName[]; |
| andrewboyson | 57:e0fb648acf48 | 6 | extern char TftpFileName[]; |
| andrewboyson | 57:e0fb648acf48 | 7 | extern int TftpWriteStatus; |
| andrewboyson | 57:e0fb648acf48 | 8 | |
| andrewboyson | 57:e0fb648acf48 | 9 | #define TFTP_WRITE_STATUS_NONE 0 |
| andrewboyson | 57:e0fb648acf48 | 10 | #define TFTP_WRITE_STATUS_REQUEST 1 |
| andrewboyson | 57:e0fb648acf48 | 11 | #define TFTP_WRITE_STATUS_IN_PROGRESS 2 |
| andrewboyson | 57:e0fb648acf48 | 12 | |
| andrewboyson | 57:e0fb648acf48 | 13 | extern uint32_t TftpServerIp4; |
| andrewboyson | 57:e0fb648acf48 | 14 | extern char TftpServerIp6[]; |
| andrewboyson | 57:e0fb648acf48 | 15 | |
| andrewboyson | 57:e0fb648acf48 | 16 | extern int (*TftpGetNextByteFunction)(); |
| andrewboyson | 57:e0fb648acf48 | 17 | |
| andrewboyson | 59:e0e556c8bd46 | 18 | extern int TftpHandlePacketReceived(void (*traceback)(void), int sizeRx, void* pPacketRx, int* pSizeTx, void* pPacketTx); |
| andrewboyson | 57:e0fb648acf48 | 19 | extern int TftpPollForPacketToSend(int type, void* pPacket, int* pSize); |
| andrewboyson | 57:e0fb648acf48 | 20 | |
| andrewboyson | 57:e0fb648acf48 | 21 | #define TFTP_SERVER_PORT 69 |
| andrewboyson | 57:e0fb648acf48 | 22 | #define TFTP_CLIENT_PORT 60690 |