40k
This commit is contained in:
parent
e4b3da692d
commit
b7eff2037f
@ -13,7 +13,7 @@
|
||||
//!
|
||||
//! and in another terminal you can run:
|
||||
//!
|
||||
//! cargo run --example connect 127.0.0.1:8080
|
||||
//! cargo run --example connect 127.0.0.1:40000
|
||||
//!
|
||||
//! Each line you type in to the `connect` terminal should be echo'd back to
|
||||
//! you! If you open up multiple terminals running the `connect` example you
|
||||
@ -33,8 +33,8 @@ use std::net::SocketAddr;
|
||||
fn main() {
|
||||
// Allow passing an address to listen on as the first argument of this
|
||||
// program, but otherwise we'll just set up our TCP listener on
|
||||
// 127.0.0.1:8080 for connections.
|
||||
let addr = env::args().nth(1).unwrap_or("127.0.0.1:8080".to_string());
|
||||
// 127.0.0.1:40000 for connections.
|
||||
let addr = env::args().nth(1).unwrap_or("0.0.0.0:40000".to_string());
|
||||
let addr = addr.parse::<SocketAddr>().unwrap();
|
||||
|
||||
// Next up we create a TCP listener which will listen for incoming
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user