|
ReactOS 0.4.16-dev-1946-g52006dd
|
#include <tftp_common.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) |
| void(* | error )(void *handle, int err, const char *msg, int size) |
TFTP context containing callback functions for TFTP transfers
Definition at line 56 of file tftp_common.h.
Close file handle
Definition at line 69 of file tftp_common.h.
Error indication from client or response from server
| handle | File handle set by open()/tftp_get()/tftp_put() |
| err | error code from client or server |
| msg | error message from client or server |
| size | size of msg |
Definition at line 94 of file tftp_common.h.
Open file for read/write (server mode only).
| fname | Filename |
| mode | Mode string from TFTP RFC 1350 (netascii, octet, mail) |
| write | Flag indicating read (0) or write (!= 0) access |
Definition at line 64 of file tftp_common.h.
Read from file
| handle | File handle returned by open()/tftp_put()/tftp_get() |
| buf | Target buffer to copy read data to |
| bytes | Number of bytes to copy to buf |
Definition at line 77 of file tftp_common.h.
Write to file
| handle | File handle returned by open()/tftp_put()/tftp_get() |
| 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 86 of file tftp_common.h.