Andrew Boyson / net

Dependents:   oldheating gps motorhome heating

Committer:
andrewboyson
Date:
Tue Nov 28 17:05:46 2017 +0000
Revision:
57:e0fb648acf48
Child:
59:e0e556c8bd46
Added TFTP

Who changed what in which revision?

UserRevisionLine numberNew 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 57:e0fb648acf48 18 extern int TftpHandlePacketReceived(void (*traceback)(void), int* pSize, void * pPacket);
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