diff options
author | hozan23 <hozan23@proton.me> | 2023-12-02 05:10:33 +0300 |
---|---|---|
committer | hozan23 <hozan23@proton.me> | 2023-12-02 05:10:33 +0300 |
commit | 8cdc44b24724acf7dd458e59f5ceed4af04574be (patch) | |
tree | 1e0aad5a905508c54f7d9be4d4b800b7e8f7d532 /p2p/examples | |
parent | 5111a3d5749625c3d8e26a24a5a32c4da58f18d3 (diff) |
Ensure uniform usage of the name `karyon` across all files
Diffstat (limited to 'p2p/examples')
-rw-r--r-- | p2p/examples/chat.rs | 6 | ||||
-rwxr-xr-x | p2p/examples/chat_simulation.sh | 18 | ||||
-rw-r--r-- | p2p/examples/monitor.rs | 6 | ||||
-rwxr-xr-x | p2p/examples/net_simulation.sh | 64 | ||||
-rw-r--r-- | p2p/examples/peer.rs | 6 | ||||
-rw-r--r-- | p2p/examples/shared/mod.rs | 2 |
6 files changed, 51 insertions, 51 deletions
diff --git a/p2p/examples/chat.rs b/p2p/examples/chat.rs index 99cde7b..cc822d9 100644 --- a/p2p/examples/chat.rs +++ b/p2p/examples/chat.rs @@ -7,10 +7,10 @@ use async_trait::async_trait; use clap::Parser; use smol::{channel, Executor}; -use karyons_core::crypto::{KeyPair, KeyPairType}; -use karyons_net::{Endpoint, Port}; +use karyon_core::crypto::{KeyPair, KeyPairType}; +use karyon_net::{Endpoint, Port}; -use karyons_p2p::{ +use karyon_p2p::{ protocol::{ArcProtocol, Protocol, ProtocolEvent, ProtocolID}, ArcPeer, Backend, Config, P2pError, Version, }; diff --git a/p2p/examples/chat_simulation.sh b/p2p/examples/chat_simulation.sh index 82bbe96..0cc63cc 100755 --- a/p2p/examples/chat_simulation.sh +++ b/p2p/examples/chat_simulation.sh @@ -3,23 +3,23 @@ # build cargo build --release --example chat -tmux new-session -d -s karyons_chat +tmux new-session -d -s karyon_chat -tmux send-keys -t karyons_chat "../../target/release/examples/chat --username 'user1'\ +tmux send-keys -t karyon_chat "../../target/release/examples/chat --username 'user1'\ -l 'tcp://127.0.0.1:40000' -d '40010'" Enter -tmux split-window -h -t karyons_chat -tmux send-keys -t karyons_chat "../../target/release/examples/chat --username 'user2'\ +tmux split-window -h -t karyon_chat +tmux send-keys -t karyon_chat "../../target/release/examples/chat --username 'user2'\ -l 'tcp://127.0.0.1:40001' -d '40011' -b 'tcp://127.0.0.1:40010 ' " Enter -tmux split-window -h -t karyons_chat -tmux send-keys -t karyons_chat "../../target/release/examples/chat --username 'user3'\ +tmux split-window -h -t karyon_chat +tmux send-keys -t karyon_chat "../../target/release/examples/chat --username 'user3'\ -l 'tcp://127.0.0.1:40002' -d '40012' -b 'tcp://127.0.0.1:40010'" Enter -tmux split-window -h -t karyons_chat -tmux send-keys -t karyons_chat "../../target/release/examples/chat --username 'user4'\ +tmux split-window -h -t karyon_chat +tmux send-keys -t karyon_chat "../../target/release/examples/chat --username 'user4'\ -b 'tcp://127.0.0.1:40010'" Enter tmux select-layout tiled -tmux attach -t karyons_chat +tmux attach -t karyon_chat diff --git a/p2p/examples/monitor.rs b/p2p/examples/monitor.rs index 0b6571c..b074352 100644 --- a/p2p/examples/monitor.rs +++ b/p2p/examples/monitor.rs @@ -5,10 +5,10 @@ use std::sync::Arc; use clap::Parser; use smol::{channel, Executor}; -use karyons_core::crypto::{KeyPair, KeyPairType}; -use karyons_net::{Endpoint, Port}; +use karyon_core::crypto::{KeyPair, KeyPairType}; +use karyon_net::{Endpoint, Port}; -use karyons_p2p::{Backend, Config}; +use karyon_p2p::{Backend, Config}; use shared::run_executor; diff --git a/p2p/examples/net_simulation.sh b/p2p/examples/net_simulation.sh index dd489e5..7cb8410 100755 --- a/p2p/examples/net_simulation.sh +++ b/p2p/examples/net_simulation.sh @@ -3,71 +3,71 @@ # build cargo build --release --example peer -tmux new-session -d -s karyons_p2p +tmux new-session -d -s karyon_p2p -tmux send-keys -t karyons_p2p "../../target/release/examples/peer\ +tmux send-keys -t karyon_p2p "../../target/release/examples/peer\ -l 'tcp://127.0.0.1:30000' -d '30010'" Enter -tmux split-window -h -t karyons_p2p -tmux send-keys -t karyons_p2p "../../target/release/examples/peer\ +tmux split-window -h -t karyon_p2p +tmux send-keys -t karyon_p2p "../../target/release/examples/peer\ -l 'tcp://127.0.0.1:30001' -d '30011' -b 'tcp://127.0.0.1:30010 ' " Enter -tmux split-window -h -t karyons_p2p -tmux send-keys -t karyons_p2p "../../target/release/examples/peer\ +tmux split-window -h -t karyon_p2p +tmux send-keys -t karyon_p2p "../../target/release/examples/peer\ -l 'tcp://127.0.0.1:30002' -d '30012' -b 'tcp://127.0.0.1:30010'" Enter -tmux split-window -h -t karyons_p2p -tmux send-keys -t karyons_p2p "../../target/release/examples/peer\ +tmux split-window -h -t karyon_p2p +tmux send-keys -t karyon_p2p "../../target/release/examples/peer\ -l 'tcp://127.0.0.1:30003' -d '30013' -b 'tcp://127.0.0.1:30010'" Enter -tmux split-window -h -t karyons_p2p -tmux send-keys -t karyons_p2p "../../target/release/examples/peer\ +tmux split-window -h -t karyon_p2p +tmux send-keys -t karyon_p2p "../../target/release/examples/peer\ -l 'tcp://127.0.0.1:30004' -d '30014' -b 'tcp://127.0.0.1:30010'" Enter -tmux split-window -h -t karyons_p2p -tmux send-keys -t karyons_p2p "../../target/release/examples/peer\ +tmux split-window -h -t karyon_p2p +tmux send-keys -t karyon_p2p "../../target/release/examples/peer\ -l 'tcp://127.0.0.1:30005' -d '30015' -b 'tcp://127.0.0.1:30010'" Enter tmux select-layout even-horizontal sleep 3; -tmux select-pane -t karyons_p2p:0.0 +tmux select-pane -t karyon_p2p:0.0 -tmux split-window -v -t karyons_p2p -tmux send-keys -t karyons_p2p "../../target/release/examples/peer\ +tmux split-window -v -t karyon_p2p +tmux send-keys -t karyon_p2p "../../target/release/examples/peer\ -b 'tcp://127.0.0.1:30010' -b 'tcp://127.0.0.1:30011'" Enter -tmux select-pane -t karyons_p2p:0.2 +tmux select-pane -t karyon_p2p:0.2 -tmux split-window -v -t karyons_p2p -tmux send-keys -t karyons_p2p "../../target/release/examples/peer\ +tmux split-window -v -t karyon_p2p +tmux send-keys -t karyon_p2p "../../target/release/examples/peer\ -b 'tcp://127.0.0.1:30010' -b 'tcp://127.0.0.1:30012' -p 'tcp://127.0.0.1:30005'" Enter -tmux select-pane -t karyons_p2p:0.4 +tmux select-pane -t karyon_p2p:0.4 -tmux split-window -v -t karyons_p2p -tmux send-keys -t karyons_p2p "../../target/release/examples/peer\ +tmux split-window -v -t karyon_p2p +tmux send-keys -t karyon_p2p "../../target/release/examples/peer\ -b 'tcp://127.0.0.1:30010' -b 'tcp://127.0.0.1:30013'" Enter -tmux select-pane -t karyons_p2p:0.6 +tmux select-pane -t karyon_p2p:0.6 -tmux split-window -v -t karyons_p2p -tmux send-keys -t karyons_p2p "../../target/release/examples/peer\ +tmux split-window -v -t karyon_p2p +tmux send-keys -t karyon_p2p "../../target/release/examples/peer\ -b 'tcp://127.0.0.1:30010' -b 'tcp://127.0.0.1:30014'" Enter -tmux select-pane -t karyons_p2p:0.8 +tmux select-pane -t karyon_p2p:0.8 -tmux split-window -v -t karyons_p2p -tmux send-keys -t karyons_p2p "../../target/release/examples/peer\ +tmux split-window -v -t karyon_p2p +tmux send-keys -t karyon_p2p "../../target/release/examples/peer\ -b 'tcp://127.0.0.1:30010' -b 'tcp://127.0.0.1:30015'" Enter -tmux select-pane -t karyons_p2p:0.10 +tmux select-pane -t karyon_p2p:0.10 -tmux split-window -v -t karyons_p2p -tmux send-keys -t karyons_p2p "../../target/release/examples/peer\ +tmux split-window -v -t karyon_p2p +tmux send-keys -t karyon_p2p "../../target/release/examples/peer\ -b 'tcp://127.0.0.1:30010' -b 'tcp://127.0.0.1:30015' -b 'tcp://127.0.0.1:30011'" Enter -# tmux set-window-option -t karyons_p2p synchronize-panes on +# tmux set-window-option -t karyon_p2p synchronize-panes on -tmux attach -t karyons_p2p +tmux attach -t karyon_p2p diff --git a/p2p/examples/peer.rs b/p2p/examples/peer.rs index c0b05c6..06586b6 100644 --- a/p2p/examples/peer.rs +++ b/p2p/examples/peer.rs @@ -5,10 +5,10 @@ use std::sync::Arc; use clap::Parser; use smol::{channel, Executor}; -use karyons_core::crypto::{KeyPair, KeyPairType}; -use karyons_net::{Endpoint, Port}; +use karyon_core::crypto::{KeyPair, KeyPairType}; +use karyon_net::{Endpoint, Port}; -use karyons_p2p::{Backend, Config}; +use karyon_p2p::{Backend, Config}; use shared::run_executor; diff --git a/p2p/examples/shared/mod.rs b/p2p/examples/shared/mod.rs index 9a8e387..aad40d7 100644 --- a/p2p/examples/shared/mod.rs +++ b/p2p/examples/shared/mod.rs @@ -3,7 +3,7 @@ use std::{num::NonZeroUsize, thread}; use easy_parallel::Parallel; use smol::{channel, future, future::Future}; -use karyons_core::Executor; +use karyon_core::Executor; /// Returns an estimate of the default amount of parallelism a program should use. /// see `std::thread::available_parallelism` |