A stack which works with or without an Mbed os library. Provides IPv4 or IPv6 with a full 1500 byte buffer.
Dependents: oldheating gps motorhome heating
udp/tftp/tftp.h
- Committer:
- andrewboyson
- Date:
- 2020-04-02
- Revision:
- 167:3ba4e3c49631
- Parent:
- 115:5c003909bcf3
- Child:
- 184:ad80a63e3002
File content as of revision 167:3ba4e3c49631:
#include <stdint.h> #include <stdbool.h> extern bool TftpTrace; 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 bool TftpSendRequestsViaIp4; extern uint32_t TftpServerIp4; extern char TftpServerIp6[]; extern int (*TftpGetNextByteFunction)(); extern int TftpHandlePacketReceived(void (*traceback)(void), int sizeRx, void* pPacketRx, int* pSizeTx, void* pPacketTx); extern int TftpPollForPacketToSend(int type, void* pPacket, int* pSize); #define TFTP_SERVER_PORT 69 #define TFTP_CLIENT_PORT 60690