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@61:aad055f1b0d1, 2018-01-11 (annotated)
- Committer:
- andrewboyson
- Date:
- Thu Jan 11 17:38:21 2018 +0000
- Revision:
- 61:aad055f1b0d1
- Parent:
- 59:e0e556c8bd46
- Child:
- 83:08c983006a6e
Removed dependence on Mbed OS
Who changed what in which revision?
| User | Revision | Line number | New contents of line |
|---|---|---|---|
| andrewboyson | 61:aad055f1b0d1 | 1 | #include <stdint.h> |
| andrewboyson | 61:aad055f1b0d1 | 2 | #include <stdbool.h> |
| andrewboyson | 61:aad055f1b0d1 | 3 | |
| andrewboyson | 57:e0fb648acf48 | 4 | extern bool TftpTrace; |
| andrewboyson | 57:e0fb648acf48 | 5 | |
| andrewboyson | 61:aad055f1b0d1 | 6 | extern void TftpMain(void); |
| andrewboyson | 57:e0fb648acf48 | 7 | |
| andrewboyson | 57:e0fb648acf48 | 8 | extern char TftpServerName[]; |
| andrewboyson | 57:e0fb648acf48 | 9 | extern char TftpFileName[]; |
| andrewboyson | 57:e0fb648acf48 | 10 | extern int TftpWriteStatus; |
| andrewboyson | 57:e0fb648acf48 | 11 | |
| andrewboyson | 57:e0fb648acf48 | 12 | #define TFTP_WRITE_STATUS_NONE 0 |
| andrewboyson | 57:e0fb648acf48 | 13 | #define TFTP_WRITE_STATUS_REQUEST 1 |
| andrewboyson | 57:e0fb648acf48 | 14 | #define TFTP_WRITE_STATUS_IN_PROGRESS 2 |
| andrewboyson | 57:e0fb648acf48 | 15 | |
| andrewboyson | 57:e0fb648acf48 | 16 | extern uint32_t TftpServerIp4; |
| andrewboyson | 57:e0fb648acf48 | 17 | extern char TftpServerIp6[]; |
| andrewboyson | 57:e0fb648acf48 | 18 | |
| andrewboyson | 57:e0fb648acf48 | 19 | extern int (*TftpGetNextByteFunction)(); |
| andrewboyson | 57:e0fb648acf48 | 20 | |
| andrewboyson | 59:e0e556c8bd46 | 21 | extern int TftpHandlePacketReceived(void (*traceback)(void), int sizeRx, void* pPacketRx, int* pSizeTx, void* pPacketTx); |
| andrewboyson | 57:e0fb648acf48 | 22 | extern int TftpPollForPacketToSend(int type, void* pPacket, int* pSize); |
| andrewboyson | 57:e0fb648acf48 | 23 | |
| andrewboyson | 57:e0fb648acf48 | 24 | #define TFTP_SERVER_PORT 69 |
| andrewboyson | 57:e0fb648acf48 | 25 | #define TFTP_CLIENT_PORT 60690 |