Embedded TCP/IP stack
4.1.0
|
fnet_tftp_srv.h
fnet_tftp_srv_desc_t fnet_tftp_srv_init(struct fnet_tftp_srv_params *params)
Initializes the TFTP-server service.
fnet_bool_t fnet_tftp_srv_is_enabled(fnet_tftp_srv_desc_t desc)
Detects if the TFTP Server service is enabled or disabled.
TFTP server is waiting for a request from a TFTP client.
Definition: fnet_tftp_srv.h:227
fnet_time_t timeout
Timeout for the TFTP client response in seconds. If no response from a TFTP client is received durin...
Definition: fnet_tftp_srv.h:197
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_return_t(* fnet_tftp_srv_request_handler_t)(fnet_tftp_request_t request_type, const struct fnet_sockaddr *address, fnet_char_t *filename, fnet_char_t *mode, fnet_tftp_error_t *error_code, fnet_char_t **error_message, void *handler_param)
Prototype of the TFTP-server callback function that is called when the TFTP server has received a new...
Definition: fnet_tftp_srv.h:87
fnet_tftp_srv_request_handler_t request_handler
Pointer to the callback function defined by fnet_tftp_srv_request_handler_t().
Definition: fnet_tftp_srv.h:181
Input parameters for the fnet_tftp_srv_init() function.
Definition: fnet_tftp_srv.h:174
unsigned long fnet_size_t
Unsigned integer type representing the size in bytes.
Definition: fnet_stdlib.h:56
fnet_index_t retransmit_max
Maximum number of retransmissions. If no response from a TFTP client is received till maximum retran...
Definition: fnet_tftp_srv.h:203
void fnet_tftp_srv_release(fnet_tftp_srv_desc_t desc)
Releases the TFTP-server service.
The TFTP server is not initialized or released.
Definition: fnet_tftp_srv.h:224
void * handler_param
Optional application-specific parameter. It is passed to the request_handler, data_handler and compl...
Definition: fnet_tftp_srv.h:191
fnet_tftp_srv_data_handler_t data_handler
Pointer to the callback function defined by fnet_tftp_srv_data_handler_t().
Definition: fnet_tftp_srv.h:184
fnet_tftp_srv_complete_handler_t complete_handler
Pointer to the optional callback function defined by fnet_tftp_srv_complete_handler_t(). This parameter is optional and can be set to zero.
Definition: fnet_tftp_srv.h:187
fnet_tftp_srv_state_t
TFTP server states. Used mainly for debugging purposes.
Definition: fnet_tftp_srv.h:222
The DATA transfer is completed, or received error, or terminated by the application.
Definition: fnet_tftp_srv.h:232
void(* fnet_tftp_srv_complete_handler_t)(fnet_tftp_request_t request, fnet_return_t status, void *handler_param)
Prototype of the TFTP-server callback function that is called when the TFTP server has completed file...
Definition: fnet_tftp_srv.h:167
fnet_int32_t(* fnet_tftp_srv_data_handler_t)(fnet_tftp_request_t request, fnet_uint8_t *data, fnet_size_t data_size, fnet_tftp_error_t *error_code, fnet_char_t **error_message, void *handler_param)
Prototype of the TFTP-server callback function prototype that is called when the TFTP server has rece...
Definition: fnet_tftp_srv.h:146
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
Sends or receives DATA packets to the remote TFTP client.
Definition: fnet_tftp_srv.h:230
fnet_tftp_error_t
TFTP error codes indicating the nature of the error according to RFC 1350.
Definition: fnet_tftp.h:67
© 2005-2018 by Andrey Butok. http://fnet.sourceforge.net