Write a Multithread Echo Client Server Program

yaha
LAB-Assignment.pdf

Instructions: Please read these instructions carefully.

1. Please write your nine digits ID in place of Student-ID.

2. Please upload your Assignment on Blackboard.

3. Please write the Server Code and Client Code.

4. Please attach the Server Output and Client Output Screenshot.

5. You will be asked Viva questions after submission on Blackboard.

ASSIGNMENT PROBLEM STATEMENT

Write a Multithread Echo Client Server Program to display the following output. Server Program Output:

i) When you run the server program, the following text must be displayed. ii) If the client closes the connection by typing end, then the following text must be displayed at the server. iii) When you run the server program and if you did not enter the port number at run time, the following text must be displayed.

Student-ID started Multithread Echo Server on port number : xxxx

Student-ID the Client Closed the Connection

You forgot to enter the port number-Student-ID

Client Program Output: i) When you run the client program, the following text must be displayed. ii) When the client wants to send a message to the server, the following text must be displayed at client. iii) When the server echoes the client message, the following text must be displayed at client. iv) When the client types end, the server echo message must not be displayed instead the following text must be displayed.

Student-ID started Multithread Echo Client. Type end to close the Client

Student-ID Please Enter Message for Server : xxxxxxx

Server Echoed this Message Student-ID : xxxxxx

Student-ID Client wants to close