Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

1.Implement a pair of IPv6 TCP client and server for a simple DVD store ordering

ID: 3764440 • Letter: 1

Question

1.Implement a pair of IPv6 TCP client and server for a simple DVD store ordering system( that support both IPv4 and IPv6 peers.

-The “hw3-ipv4.zip” bundle (available athttps://www.dropbox.com/s/c5jlfmun472icny/hw3-ipv4_2.zip?dl=0) has a sample IPv4 client and server implementation for the DVD store ordering system. Please reuse the code there to implement your IPv6 client/server and also use these IPv4 client/server to test your IPv6 client/server.

NOTE: Each DVD item has the following properties:

-Item number: Uniquely identifies this DVD item in the server DVD inventory.

-Title: The name of the DVD.

-Quantity: How many copies of this DVD the server has.

Explanation / Answer

Platform specifics

First lets setup a define that lets us detect what our current platform is, so we can handle the slight differences in sockets from one platform to another:

Now lets include the appropriate headers for sockets. Since the header files are platform specific, we’ll use the platform #define to include different sets of files depending on the platform: