DHT bencode protocol more or less done

This commit is contained in:
Igor Katson 2021-07-10 12:26:37 +01:00
parent 3090f1f5bb
commit 1b0047a4a4
5 changed files with 471 additions and 11 deletions

View file

@ -146,7 +146,7 @@ mod tests {
#[test]
fn test_deserialize_torrent_dyn() {
let mut buf = Vec::new();
let filename = "resources/ubuntu-21.04-desktop-amd64.iso.torrent";
let filename = "../librqbit/resources/ubuntu-21.04-desktop-amd64.iso.torrent";
std::fs::File::open(filename)
.unwrap()
.read_to_end(&mut buf)
@ -161,7 +161,7 @@ mod tests {
#[test]
fn test_serialize_torrent_dyn() {
let mut buf = Vec::new();
let filename = "resources/ubuntu-21.04-desktop-amd64.iso.torrent";
let filename = "../librqbit/resources/ubuntu-21.04-desktop-amd64.iso.torrent";
std::fs::File::open(filename)
.unwrap()
.read_to_end(&mut buf)