You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

1234567891011
  1. use std::net::TcpListener;
  2. fn main() {
  3. let listener = TcpListener::bind("127.0.0.1:26382").unwrap();
  4. for stream in listener.incoming() {
  5. let stream = stream.unwrap();
  6. println!("Connection established!");
  7. }
  8. }