Question: Write a client to server program using TCP. The client sends requests to the server and the server replys back. Client can send the following
Write a client to server program using TCP. The client sends requests to the server and the server replys back.
Client can send the following request to the server:
1. add(ID, firstName, LastName, score): ID is a random 6-digit number. Score is 0-100
2. display(ID): request sends the ID to the server and server returns the students information.
3. display(score): request sends a score to the server and the server returns the information of all the students with that score.
4. display_all: request displays the information of all the student currently in the database.
5. delete(ID): request deletes the student with that ID
This can be done in JAVA, C, or C++. I know how to program in these languages but I just have never done a client-server program before. Thank you
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
