Question: create a TCP client and a TCP server, where the client asks how many requests the server has received so far, and the server returns

create a TCP client and a TCP server, where the client asks how many requests the server has received so far, and the server returns this count. Specifically, a request from the client must look like this:
"PING"
The corresponding response from the server must be:
"-TCP-Server has received requests so far"
where should be replaced by your first name, and should be replaced by the number of requests the server has requested so far.
NOTE: Assume that no messages are dropped, and therefore that no retransmissions are necessary.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!