Source-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: CVS commit: src/sys/lib/libsa

Chris Gilbert wrote:
It's not very efficient, as it has to read the whole file, and count the
block sizes.  However, this is the only way to work out the size using the
tftp protocol.

Not always true; some servers send a 'tsize' option in the OACK which represents the file size in bytes.

For a reference: specifically the "Transfer Size Option".

You can also have a look at my mtftp server implementation for more information:

You will want to look at specifically mtftpd.c:mtftpd_send_oack()


Home | Main Index | Thread Index | Old Index