Skip to content

rocky2210/Multithreaded_Math_Server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Multithreaded Math Server

A simple multithreaded math server created in LAHTP Advanced course that evaluates mathematical expressions using the bc command.

Features

  • Multithreaded server to handle multiple client connections simultaneously.
  • Supports basic math expressions.
  • Interactive help command for users.

Getting Started

Prerequisites

  • Python 3.x
  • colorama library (install using pip install colorama)

Usage

  1. Clone the repository:

    git clone [email protected]:rocky2210/Multithreaded_Math_Server.git
  2. Navigate to the project directory:

    cd multithreaded_math_server
  3. First install bc tool in your PC

    $ sudo apt-get install bc
    
  4. Then run using python 3

    $ python3 main.py
    
  5. Follow the prompts to enter the host and port for the server.

  6. Connect to the server using a client.py or connet with telnet, netcat, .etc

    $ python3 client.py
    
  7. Enter math expressions to get results. Use the quit command to exit.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages