church_controller_rust/src/main.rs

18 lines
274 B
Rust
Raw Normal View History

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-10 15:16:05 -08:00
fn main() {
2021-12-17 12:39:11 -08:00
let listener = make_listener(String::from("localhost:5000"));
drop(listener);
}
fn make_listener(address: String) -> TcpListener {
TcpListener::bind(address).unwrap()
2021-12-10 15:16:05 -08:00
}