You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi Toshokan, I grabbed your code and it did not work for me.
I have made it work by finding and fixing 3 simple issues (two times you have forgotten to send ACK after receiving information and also parsing of name of the file to print did not accept space in itself). After my fixes it strted to work.
Here are notes about what I did, and I am including working version of code as well:
Hi Toshokan, I grabbed your code and it did not work for me.
I have made it work by finding and fixing 3 simple issues (two times you have forgotten to send ACK after receiving information and also parsing of name of the file to print did not accept space in itself). After my fixes it strted to work.
Here are notes about what I did, and I am including working version of code as well:
in File: /src/lib.rs
async fn receive_job<P: parse::Parse>(&mut self) -> Result<Option, LpdError>
Missing:
self.positive_ack().await?;
in:
lpd::ReceiveJobSubcommand::ReceiveDataFile(b, _) => {
self.positive_ack().await?;
job.df = Some(self.read_data_file(b).await?);
}
in:
where LpdError: From<P::Error>
{
self.positive_ack().await?;
let mut file = lpd::ControlFile::default();
let mut read_bytes = 0;
....
In file: /src/parse/raw/util.rs
pub fn octet_seq_parser(i: &str) -> IResult<&str, &str> {
is_not("\x0B\t\x0C\n")(i)
// originally is_not(" \x0B\t\x0C\n")(i)
// but there can be space in the name of the file !
}
lpd_fixed.zip
The text was updated successfully, but these errors were encountered: