Question: in C! you should have a server.c , client.c, protocol.c, and protocol.h the client should not type the opcode in Build a network client/server system

in C!  in C! you should have a server.c , client.c, protocol.c, and
protocol.h the client should not type the opcode in Build a network
you should have a server.c , client.c, protocol.c, and protocol.h
the client should not type the opcode in

Build a network client/server system that implements the "string modification" protocol as documented in this assignment. The client sends an operation code (opcode) and c-string to the server. The opcode describes how the server should modify the string. The server modifies the string and then returns it to the client where it is displayed. The server has no command line input and no console output. The server must terminate when it receives SIGTERM. The client has one command line input, the name of the machine where the server is running The client must have a basic interface that prompts the user for the desired action and the string. You must include an exit menu command in the client interface The packet format for each message type is as follows: opcode (char) / payload (C-string) . Opcode, 4 bytes, ASCII Payload, 128 bytes, ASCII Notice that the entire message is ASCII (plain text, no integers). This is con- ventional with most Internet protocols. The opcode and payload fields may not be empty. The minimum payload length is at least 1 character plus the null byte. The maximum payload length is at most 128 characters including the null byte The string protoco has 6 message types as follows: OpcodeDescription NOOP Sent by client, No operation, don't change string NOOPHello World REVSSent by client, Reverse the string UCAS Sent by client, Uppercase the string RECSSent by client, Reverse and RPLY Sent by server, reply EROR Sent by server, error Example packet REVSHello World UCASHello World Uppercase the strin RECSHello World RPLYHi Bob ERORProtocol violation

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!