39#ifndef _TFTPFS_INTERACTIONS_H
40#define _TFTPFS_INTERACTIONS_H
46#define NO_BLOCK_SIZE_OPTION 0
47#define NO_WINDOW_SIZE_OPTION 0
48#define DO_NOT_WAIT_FOR_ANY_TIMEOUT UINT32_MAX
77void _Tftp_Add_interaction_socket(
84void _Tftp_Add_interaction_close(
int fd,
int result );
86void _Tftp_Add_interaction_bind(
int fd,
int family,
int result );
88void _Tftp_Add_interaction_send_rrq(
92 const char *dest_addr_str,
98void _Tftp_Add_interaction_send_wrq(
100 const char *filename,
102 const char *dest_addr_str,
104 uint16_t window_size,
108void _Tftp_Add_interaction_send_ack(
112 const char *dest_addr_str,
116void _Tftp_Add_interaction_send_data(
121 uint8_t (*get_data)(
size_t pos ),
123 const char *dest_addr_str,
127void _Tftp_Add_interaction_send_error(
131 const char *dest_addr_str,
142void _Tftp_Add_interaction_recv_data(
146 const char *src_addr_str,
150 uint8_t (*get_data)(
size_t pos ),
154void _Tftp_Add_interaction_recv_ack(
158 const char *src_addr_str,
163void _Tftp_Add_interaction_recv_oack(
167 const char *src_addr_str,
173void _Tftp_Add_interaction_recv_error(
177 const char *src_addr_str,
192void _Tftp_Add_interaction_recv_raw(
196 const char *src_addr_str,
198 const uint8_t *bytes,
202void _Tftp_Add_interaction_recv_nothing(