In class we discussed difference between file I/O and network I/O. We discussed the potential different behaviour of the read function in the network I/O
In class we discussed difference between file I/O and network I/O. We discussed the potential different behaviour of the read function in the network I/O environment.
Write a client/server application that verifies this. Your server will be a TCP server that waits for requests from the clients. The client keep sending lines of length at least 1000 bytes to the server. The server simply calls read function, and then calls the write function to send back the value returned from the read function call. The client calls read function to receive the response and print out the value returned by each read function, followed by a mark that indicates the current string is the value of one read function call. Manually compare the replies received by the client and the input file and write your conclusions.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
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