church_controller_rust/src/main.rs

20 lines
304 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};
const SERVER_ADDRESS: &str = "localhost:5000";
2021-12-10 15:16:05 -08:00
fn main() {
let listener = make_listener(SERVER_ADDRESS);
2021-12-17 12:39:11 -08:00
drop(listener);
}
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
}