Objective: Gain familiarity with manupulation packet data and methods to send non-character data over the network.
Deliverables: The source code to your client and server, and a screenshot or copy of the input and output from running them on Mininet, in hard copy.
Teams: You should write your code individually, although you may of course discuss with classmates.
Programming Languages: It is suggested that you complete this lab assignment in C, although you may use other languages if desired.
Grading: 10 points, as described below.
In this assignment, you are to write an calculator server and a client that interacts with it. The calculator client should send two integers to the server. These integers should be sent in the same packet as each other, and placed in the packet directly (using memcpy or other similar method), not converted to text. The server should add them up, and send back the result (as an integer, not converted to text). If overflow occurs, it should instead send back some indication of the errror. The program must use UDP (Datagram) sockets, it may not use TCP (Stream) sockets. Specifically your programs must do the following: