Answered step by step
Verified Expert Solution
Question
1 Approved Answer
(b) A client requires to send a message to a server and the server will echo the message that been received back to the client,
(b) A client requires to send a message to a server and the server will echo the message that been received back to the client, where both are connected through Ethernet network via TCP Socket as shown in Figure Q.4. Client Port 8888 Port 8888 Server Host: 192.168.12.1 Host: 192.168.12.6 Figure Q.4: Client and server connection using TCP Your program should have the following features: a) Socket connection between client and server with specific host address and port number b) Client is able to send messages c) Server will echo to the client d) Client will display the result e) Close the socket connection when server received message "Exit" f) Able to detect and display the errors (Note: Marks will be given based on working codes and coding style) (1) Write a coding for client site to implement the task. (8 marks) (ii) Write a coding for server site to implement the task. (8 marks) (ii) Assuming client and server are in different devicelentity. If the client is not able to send messages to the server, explain what might happen to the network. (4 marks)
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started