|
Prusa MINI Firmware overview
|
#include <tftp_server.h>

Public Attributes | |
| void *(* | open )(const char *fname, const char *mode, u8_t write) |
| void(* | close )(void *handle) |
| int(* | read )(void *handle, void *buf, int bytes) |
| int(* | write )(void *handle, struct pbuf *p) |
TFTP context containing callback functions for TFTP transfers
Open file for read/write.
| fname | Filename |
| mode | Mode string from TFTP RFC 1350 (netascii, octet, mail) |
| write | Flag indicating read (0) or write (!= 0) access |
Close file handle
| handle | File handle returned by open() |
Read from file
| handle | File handle returned by open() |
| buf | Target buffer to copy read data to |
| bytes | Number of bytes to copy to buf |