RTEMS 6.1-rc1
|
This header file provides interfaces and functions used to implement the TFTP file system. More...
Go to the source code of this file.
Data Structures | |
struct | tftp_options |
This structure represents TFTP options negotiated between client and server. More... | |
struct | tftp_net_config |
This structure represents configuration value used by the TFTP client. More... | |
Macros | |
#define | TFTP_RFC1350_BLOCK_SIZE 512 |
This block size meets RFC 1350 and avoids the sending of the blksize option to the TFTP server. | |
#define | TFTP_RFC1350_WINDOW_SIZE 1 |
This window size avoids the sending of the windowsize option to the TFTP server. More... | |
#define | TFTP_DEFAULT_BLOCK_SIZE 1456 |
This block size is suggested in RFC 2348 and is used as default if no different block size is provided. | |
#define | TFTP_DEFAULT_WINDOW_SIZE 8 |
This window size is suggested in RFC 2348 and is used as default if no different window size is provided. | |
Typedefs | |
typedef struct tftp_options | tftp_options |
This structure represents TFTP options negotiated between client and server. More... | |
typedef struct tftp_net_config | tftp_net_config |
This structure represents configuration value used by the TFTP client. More... | |
Functions | |
int | rtems_tftpfs_initialize (rtems_filesystem_mount_table_entry_t *mt_entry, const void *data) |
Do not call directly, use mount(). More... | |
void | tftp_initialize_net_config (tftp_net_config *config) |
Set all members of a tftp_net_config structure to their default values. More... | |
int | tftp_open (const char *hostname, const char *path, bool is_for_reading, const tftp_net_config *config, void **tftp_handle) |
Opens and starts a TFTP client session to read or write a single file. More... | |
ssize_t | tftp_read (void *tftp_handle, void *buffer, size_t count) |
Read data from a TFTP server. More... | |
ssize_t | tftp_write (void *tftp_handle, const void *buffer, size_t count) |
Write data to a TFTP server. More... | |
int | tftp_close (void *tftp_handle) |
Close a TFTP client connection. More... | |
This header file provides interfaces and functions used to implement the TFTP file system.
This file declares the public functions of the Trivial File Transfer Protocol (TFTP) file system.