U16 tftp_fread (void *file, U8 *buf, U16 len) {
/* Read 'len' bytes from file to buffer 'buf'. Return number of bytes */
/* copied. The file will be closed, when the return value is < 'len' */
return (fread (buf, 1, len, file));
}
U16 tftp_fwrite (void *file, U8 *buf, U16 len) {
/* Write data to file. Return number of bytes actually written. */
return (fwrite (buf, 1, len, file));
}
/*--------------------------- tftp_accept_host ------------------------------*/
#if 0
BOOL tftp_accept_host (U8 *rem_ip, U16 rem_port) {
/* This function checks if a connection from remote host is accepted or */
/* not. If this function is missing, all remote hosts are accepted. */
/*----------------------------------------------------------------------------
* end of file
*---------------------------------------------------------------------------*/
U16 tftp_fread (void *file, U8 *buf, U16 len) {
/* Read 'len' bytes from file to buffer 'buf'. Return number of bytes */
/* copied. The file will be closed, when the return value is < 'len' */
return (fread (buf, 1, len, file));
}
U16 tftp_fwrite (void *file, U8 *buf, U16 len) {
/* Write data to file. Return number of bytes actually written. */
return (fwrite (buf, 1, len, file));
}
/*--------------------------- tftp_accept_host ------------------------------*/
#if 0
BOOL tftp_accept_host (U8 *rem_ip, U16 rem_port) {
/* This function checks if a connection from remote host is accepted or */
/* not. If this function is missing, all remote hosts are accepted. */
/*----------------------------------------------------------------------------
* end of file
*---------------------------------------------------------------------------*/