2021-12-10 15:16:05 -08:00
|
|
|
|
|
|
|
mod tests;
|
|
|
|
mod modules;
|
|
|
|
|
2021-12-17 12:39:11 -08:00
|
|
|
use std::net::{TcpListener, TcpStream, Shutdown};
|
|
|
|
|
2021-12-17 12:55:00 -08:00
|
|
|
const SERVER_ADDRESS: &str = "localhost:5000";
|
|
|
|
|
2021-12-10 15:16:05 -08:00
|
|
|
fn main() {
|
2021-12-17 12:55:00 -08:00
|
|
|
let listener = make_listener(SERVER_ADDRESS);
|
2021-12-17 12:39:11 -08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
drop(listener);
|
|
|
|
}
|
|
|
|
|
2021-12-17 12:55:00 -08:00
|
|
|
fn make_listener(address: &str) -> TcpListener {
|
2021-12-17 12:39:11 -08:00
|
|
|
TcpListener::bind(address).unwrap()
|
2021-12-10 15:16:05 -08:00
|
|
|
}
|