This is a UDP-based flight reservation system implemented in Rust. The system consists of a server and a client, allowing users to query flight information, reserve seats, and monitor flight updates.
The project is organized into the following main components:
- Server (
src/bin/server.rs
) - Client (
src/bin/client.rs
) - Flight Controller (
src/controller.rs
) - Serialization (
src/serialization.rs
) - Configuration (
src/config.rs
) - Flight Models (
src/flight_models.rs
)
- Query flight IDs based on source and destination
- Query flight details
- Reserve seats on a flight
- Monitor flight updates
The server address is configured using a config.toml
file. Create this file in the project root with the following content:
server = { address = "0.0.0.0:8080" }
To start the server, run:
cargo run --bin server
To start the client, run:
cargo run --bin client