diff options
author | Bryan Newbold <bnewbold@robocracy.org> | 2018-01-21 23:47:14 -0800 |
---|---|---|
committer | Bryan Newbold <bnewbold@robocracy.org> | 2018-01-21 23:52:35 -0800 |
commit | 375836cf6322bc31828c5e2be47e5f0aa5f99099 (patch) | |
tree | 405fd8fd5f4421ebaba0717e7b9aee1ac1a9d1b8 /src/bin | |
parent | 0069b123b9bf787af46b01517aa27b1fb7ade9d2 (diff) | |
download | geniza-375836cf6322bc31828c5e2be47e5f0aa5f99099.tar.gz geniza-375836cf6322bc31828c5e2be47e5f0aa5f99099.zip |
procol cleanups: nodelay, from_tcp, tosocketaddr
Diffstat (limited to 'src/bin')
-rw-r--r-- | src/bin/geniza-net.rs | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/src/bin/geniza-net.rs b/src/bin/geniza-net.rs index 99ebdb5..4b3fa30 100644 --- a/src/bin/geniza-net.rs +++ b/src/bin/geniza-net.rs @@ -24,13 +24,6 @@ fn run() -> Result<()> { .arg_from_usage("<dat_key> 'dat key (public key) to register with'"), ) .subcommand( - SubCommand::with_name("receive-some") - .about("Connects to a peer, pulls some metadata and content") - .arg_from_usage("<host_port> 'peer host:port to connect to'") - .arg_from_usage("<dat_key> 'dat key (public key) to register with'") - .arg_from_usage("<count> 'how many entries to pull'"), - ) - .subcommand( SubCommand::with_name("discovery-key") .about("Prints (in hex) the discovery key for a dat archive") .arg_from_usage("<dat_key> 'dat key (public key) to convert (in hex)'"), @@ -69,16 +62,6 @@ fn run() -> Result<()> { DatConnection::connect(host_port, &key_bytes, false)?; println!("Done!"); } - ("receive-some", Some(subm)) => { - let host_port = subm.value_of("host_port").unwrap(); - let dat_key = subm.value_of("dat_key").unwrap(); - let count: u64 = subm.value_of("count").unwrap().parse().unwrap(); - let key_bytes = parse_dat_address(&dat_key)?; - let mut dc = DatConnection::connect(host_port, &key_bytes, false)?; - dc.receive_some(0, count)?; - dc.receive_some(1, count)?; - println!("Done!"); - } ("discovery-key", Some(subm)) => { let dat_key = subm.value_of("dat_key").unwrap(); let key_bytes = parse_dat_address(&dat_key)?; |