Giter Site home page Giter Site logo

medical-appointment-system's Introduction

Medical-Appointment-System

a. (1) Achieved the TCP communication between health center server and patients. (2) Achieved the UDP communication between doctor and patients. (3) Read information from txt files and output message to command line screen. (4) Achieved many functions like number typed check, mark appointment reserved and others required in project descriptions. (5) Use fork() to achieve multiprocess implementation. (6) Write Makefile to compile files automatically.

b. healthcenterserver.c It establish TCP connections with many patients and receives the requests from those patients. This program handles with patients’s authentication and appointment booking.

docotr.c The single file has two doctor using different port number. It establish UDP connections with patients and deal with appointment confirmation for patients.

patient1.c It establish TCP connection with health center server to finish phase 1 authentication and phase 2 appointment booking. And then establish UDP connection with doctor to finish phase 3 appointment confirmation.

patient2.c It establish TCP connection with health center server to finish phase 1 authentication and phase 2 appointment booking. And then establish UDP connection with doctor to finish phase 3 appointment confirmation.

c. (1) Use cd command to enter the directory that has files.

(2) Type “make” in the command line to compile files.

(3) Type “./healthcenterserver” to execute health center server program.

(4) Open another command line and type “./doctor” to execute doctor program.

(5) Open another command line and type “./patient1” to execute patient1 program.

(6) When the program is executed, you will be asked to enter a number to choose the available time. You can choose 7 or 80 or anything else to check. And you will see “Your choice does not match with the time indices displayed. Please re-enter a correct time index:”, then enter a valid choice.

(7) You can use the same command line or open another command line and type “./patient2” to execute patient2 program.

medical-appointment-system's People

Contributors

qiangzheng211 avatar

Stargazers

Elizabeth avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.