Re: MBSE compression transfers
By: Andrew Leary to deon on Wed Jul 05 2023 10:36 am
Howdy,
I was wondering how MBSE handles it? Is the size element of M_FILE the size of the file, or the transfer (I assume the former, which is what the spec implies).
The problem I'm trying to solve, is that there is no "end of file" marker being sent by the sender, and since compression is being used,
I dont know how much data to receive before doing the uncompress.
You're welcome to have a look at the code; it's available from https://sourceforge.net/projects/mbsebbs/ ...
Thought I'd ask, since its hard reading someone else's code :)
How does MBSE handle receiving a compressed file?
IE: The sender advertises the file with M_FILE - but the size is the pre-compressed size. The actual file might be smaller or larger than that.
Since there is no "end of file marker" during the transfer, how does MBSE know it's finished receiving the last block of a compressed file? (Good thing TCP is a reliable transport.) IE: Do you continue uncompressing the received block of data until the resultant uncompressed size = the M_FILE advertised size?
(In my case, Ive found that I cannot uncompress a BZ2 payload until I have all the data, and it seems "testing the de-compression" after each block of data is unnessarily unefficient.)
I know compressed transfers are not that important, but I wanted to implement it for completeness.
...ëîåï
--- SBBSecho 3.20-Linux
* Origin: I'm playing with ANSI+videotex - wanna play too? (21:2/116)