|
UbixOS V2
2.0
|
#include <tftp_server.h>

Data Fields | |
| void(* | close )(void *handle) |
| void *(* | open )(const char *fname, const char *mode, u8_t write) |
| int(* | read )(void *handle, void *buf, int bytes) |
| int(* | write )(void *handle, struct pbuf *p) |
TFTP context containing callback functions for TFTP transfers
Definition at line 55 of file tftp_server.h.
| void(* tftp_context::close) (void *handle) |
Close file handle
| handle | File handle returned by open() |
Definition at line 68 of file tftp_server.h.
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 |
Definition at line 63 of file tftp_server.h.
| int(* tftp_context::read) (void *handle, void *buf, int bytes) |
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 |
Definition at line 76 of file tftp_server.h.
| int(* tftp_context::write) (void *handle, struct pbuf *p) |
Write to file
| handle | File handle returned by open() |
| pbuf | PBUF adjusted such that payload pointer points to the beginning of write data. In other words, TFTP headers are stripped off. |
Definition at line 85 of file tftp_server.h.