1Use open() and read() so we can check EIO. 2 3Right now short reads from e.g., pipes, are treated as EOF and there are no 4retries. With better retries this could be used as a filter for socket 5transfers. A buffer layer could be used (i.e., blah | buffer | vdmfec -d). 6However, there are already much better libraries and apps available for that 7(FEC was originally developed for network packet recovery). 8 9Handle out of order and missing blocks? 10