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 accior
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 accior
commands have been received!The client should gracefully process incorrect hostname and port number and exit with a nonzero 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 sysstderr.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 ~ bytes or soClient should handle connection and transmission errors. The reaction to network or server errors should be no longer that seconds:Timeout to connect to server should be no longer than secondsTimeout for not being able to receive the command from server within 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 seconds.Whenever timeout occurs, the client should abort the connection, print an error string starting with ERROR: to standard error using sysstderr.write and exit with nonzero code.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
