8 lines
194 B
Rust
8 lines
194 B
Rust
|
|
use std::net::TcpListener;
|
||
|
|
fn main(){
|
||
|
|
match TcpListener::bind("0.0.0.0:8082") {
|
||
|
|
Ok(_) => println!("std TcpListener bind ok"),
|
||
|
|
Err(e) => println!("std TcpListener bind failed: {}", e),
|
||
|
|
}
|
||
|
|
}
|