A simple multithreaded math server created in LAHTP Advanced course that evaluates mathematical expressions using the bc
command.
- Multithreaded server to handle multiple client connections simultaneously.
- Supports basic math expressions.
- Interactive help command for users.
- Python 3.x
- colorama library (install using
pip install colorama
)
-
Clone the repository:
git clone [email protected]:rocky2210/Multithreaded_Math_Server.git
-
Navigate to the project directory:
cd multithreaded_math_server
-
First install
bc
tool in your PC$ sudo apt-get install bc
-
Then run using python 3
$ python3 main.py
-
Follow the prompts to enter the host and port for the server.
-
Connect to the server using a client.py or connet with telnet, netcat, .etc
$ python3 client.py
-
Enter math expressions to get results. Use the
quit
command to exit.