Embedded TCP/IP stack
4.1.0
|
fnet_tftp_cln.h
114 typedef fnet_int32_t(*fnet_tftp_cln_handler_t)(fnet_tftp_request_t request_type, fnet_uint8_t *data, fnet_size_t data_size, fnet_return_t tftp_result, void *handler_param);
fnet_uint32_t fnet_time_t
Unsigned integer type representing time uinits. It can be ticks, seconds or milliseconds.
Definition: fnet_timer.h:66
fnet_tftp_cln_state_t
TFTP-client states. Used mainly for debugging purposes.
Definition: fnet_tftp_cln.h:153
void * handler_param
Optional application-specific parameter. It is passed to the handler callback function as an input p...
Definition: fnet_tftp_cln.h:133
struct fnet_sockaddr server_addr
Socket address of the remote TFTP server to connect to.
Definition: fnet_tftp_cln.h:124
The TFTP-client service is not initialized or released.
Definition: fnet_tftp_cln.h:155
void fnet_tftp_cln_release(void)
Aborts the transfer and releases the TFTP-client service.
unsigned long fnet_size_t
Unsigned integer type representing the size in bytes.
Definition: fnet_stdlib.h:56
Input parameters for the fnet_tftp_cln_init() function.
Definition: fnet_tftp_cln.h:120
Receives or sends DATA packets from/to the remote server.
Definition: fnet_tftp_cln.h:161
The TFTP-client service is initialized. Sends Read/Write request (PRQ).
Definition: fnet_tftp_cln.h:158
fnet_char_t * file_name
Name of the file to retrieve or create on the remote TFTP server.
Definition: fnet_tftp_cln.h:127
fnet_tftp_request_t request_type
Request type (read or write) defined by fnet_tftp_request_t.
Definition: fnet_tftp_cln.h:122
The DATA transfer is completed, or received error, or terminated by the application. Frees the allocated resources.
Definition: fnet_tftp_cln.h:163
fnet_int32_t(* fnet_tftp_cln_handler_t)(fnet_tftp_request_t request_type, fnet_uint8_t *data, fnet_size_t data_size, fnet_return_t tftp_result, void *handler_param)
TFTP-client event handler callback function prototype, that is called when the TFTP client has receiv...
Definition: fnet_tftp_cln.h:114
fnet_return_t fnet_tftp_cln_init(struct fnet_tftp_cln_params *params)
Initializes the file transfer with the TFTP-client service.
fnet_time_t timeout
Timeout for the TFTP server response in seconds. If no response from a TFTP server is received durin...
Definition: fnet_tftp_cln.h:138
fnet_tftp_cln_state_t fnet_tftp_cln_state(void)
Retrieves the current state of the TFTP-client service.
fnet_tftp_request_t
The TFTP request type. It defines a TFTP service behavior, if it will read or write a file from/to a ...
Definition: fnet_tftp.h:52
fnet_tftp_cln_handler_t handler
Pointer to the callback function defined by fnet_tftp_cln_handler_t().
Definition: fnet_tftp_cln.h:130
© 2005-2018 by Andrey Butok. http://fnet.sourceforge.net