Question: Write a client and a server that do the following: - The server: O Listens on a default port waiting for a connection from a

Write a client and a server that do the following: - The server: O Listens on a default port waiting for a connection from a client. O Executes the command part of the message received from the client. O Creates a message that contains 2 fields: SuccessFlag: -1 means the command did not execute successfuly; O means command was executed successfully. . PayLoad: the output of the command if it was executed successfully. o Sends the message back to client. The client: O Reads a command from the user. O Creates a message that includes a list of the words that make up the command entered by the user. o Sends the message to the server and waits for a response. o Client checks the the return message from the server and if: . SuccessFlag =-1: prints an error message . SuccessFlag = 0: prints the output Deliverables: - Implement the code using UDP (submit two python code files one for the client and another for the server) Implement the code using TCP (submit two python code files one for the client and another for the server) Write a client and a server that do the following: - The server: O Listens on a default port waiting for a connection from a client. O Executes the command part of the message received from the client. O Creates a message that contains 2 fields: SuccessFlag: -1 means the command did not execute successfuly; O means command was executed successfully. . PayLoad: the output of the command if it was executed successfully. o Sends the message back to client. The client: O Reads a command from the user. O Creates a message that includes a list of the words that make up the command entered by the user. o Sends the message to the server and waits for a response. o Client checks the the return message from the server and if: . SuccessFlag =-1: prints an error message . SuccessFlag = 0: prints the output Deliverables: - Implement the code using UDP (submit two python code files one for the client and another for the server) Implement the code using TCP (submit two python code files one for the client and another for the server)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
