This is a simple socket program to simulate an airline reservation system using python2.
- Gaurav Peswani
- Hardik Mahipal Surana
- Install dependencies
pip2 install -r requirements.txt
- Start client on 1 system(s) / terminal(s)
python2 client_flight_booking.py
- Start server on another system / terminal
python2 server_flight_booking.py
The following features are available:
- Login
- Choosing option from menu
- Entering booking requirements
- Viewing available options
- Booking a specific flight with PNR number
- Handling multiple clients for booking of same seats
- Getting a success/failure acknowledgement from server
- Viewing currently booked flights
- Cancelling already booked flights
- Logout
PS:
- The functionalities of booking and cancelling flights can be done only one at a time in a session.
- Upto 5 clients can simultaneously ping the server. The setting can be changed by changing the parameter in
sock.listen()
in theserver_flight_booking.py
file