yuk1ty / learning-systems-programming-in-rust

「Rustでもわかるシステムプログラミング」
433 stars 23 forks source link

7.2の実装を追加する #87

Closed yuk1ty closed 3 years ago

yuk1ty commented 3 years ago

対象の Issue

76

動作確認結果

サーバーを起動する

❯ cargo run -p chapter7 --bin 7_2_1
    Finished dev [unoptimized + debuginfo] target(s) in 0.02s
     Running `target/debug/7_2_1`
The server is running at localhost:8888

クライアントを起動する

❯ cargo run -p chapter7 --bin 7_2_2
    Finished dev [unoptimized + debuginfo] target(s) in 0.02s
     Running `target/debug/7_2_2`
Sending to the server
Received: Hello from Server

サーバー側のログを確認する

"Received from" のメッセージが増えている。

❯ cargo run -p chapter7 --bin 7_2_1
    Finished dev [unoptimized + debuginfo] target(s) in 0.02s
     Running `target/debug/7_2_1`
The server is running at localhost:8888
Received from [::1]:61155: Hello from client