Question: The client must be able to connect to the specified server and port, receive two accio r commands from the server, send correct confirmations

The client must be able to connect to the specified server and port, receive two accio\r
commands from the server, send correct confirmations to the server, then transfer the specified file, and gracefully terminate the connection.The client should not start sending anything until two full accio\r
commands have been received!The client should gracefully process incorrect hostname and port number and exit with a non-zero exit code (you can assume that the specified file is always correct). In addition to exit, the client must print out on standard error (using sys.stderr.write()) an error message that starts with ERROR: string.Client application should exit with code zero after successful transfer of the file to server. Client should not assume how big file is transfered and MUST NOT read complete file content into memory; sending should be done in chunks (~10000 bytes or so).Client should handle connection and transmission errors. The reaction to network or server errors should be no longer that 10 seconds:Timeout to connect to server should be no longer than 10 secondsTimeout for not being able to receive the command from server within 10 seconds.Timeout for not being able to send more data to server (not being able to write to send buffer) should be no longer than 10 seconds.Whenever timeout occurs, the client should abort the connection, print an error string starting with ERROR: to standard error (using sys.stderr.write()), and exit with non-zero code.

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!