Need Help with this Question or something similar to this? We got you! Just fill out the order form (follow the link below), and your paper will be assigned to an expert to help you ASAP.
Assignment Task :
Objectives
Upon completing this lab, you should be able to:
• Demonstrate an understanding of Computer Network concepts; IP addresses, sockets, simplex vs duplex connections, network protocols
• Demonstrate you are able to develop programs in the UNIX environment in C
• Demonstrate you are able to articulate user program design choices in terms of; security, efficiency, performance, or other relevant requirements
Learning out comes;
• LO1: Understand computer network terminology and topologies, functions and architectures of computer networks
• LO2: Demonstrate the design and implementation of simple process and network level programs
• LO3: Demonstrate an understanding of the various layers which make up networks and how they are used to form complex, reliable and secure communication mediums
• LO4: Understand and be able to articulate the structure and function of the major types of networks in common use
• LO5: Understand aspects of the internet, including various associated protocols IP, UDP, TCP, IP addressing, header fields and the operation of servers / clients
• LO6: Appreciate the real-time nature of networked devices and communications and demonstrate an understanding of current and emerging methods for secure information transfer
Task 1
Modify the provided IP/TCP server code to provide a service like HTTP.
The purpose of this service is to provided a mechanism to move files over a data stream service. Document each step in your implementation, marks will be allocated to informative commentary on what the code is doing.
The server should;
• Use a port number provided by an argument to getopt(), check it is between 40000-59999 • Create a socket on the provided port number
• Listen on the socket
• Wait to accept incoming file requests
• Open the local file, obtain the file size from stat()
• Respond by sending back the valid file name, and the file size or
• If file does not exist, print status of “Failed”, close connection (see example below), skip to Sleep • Wait for the client to respond with the valid file size
• Respond by sending the file contents to the client
• Wait for the client to respond with “OK” or “Failed”
Task 2
Modify the provided IP/TCP client code to provide a test program to test the above server. Use two separate sub-directories, one for the server, another for the client.
Run each in their own terminals and respective directories so that it is obvious that the file is transferred. While test are supposed to be self documenting, please use meaningful messages in your tests.
This Computer Science Assignment has been solved by our Computer Science Experts at TVAssignmentHelp. Our Assignment Writing Experts are efficient to provide a fresh solution to this question. We are serving more than 10000+ Students in Australia, UK & US by helping them to score HD in their academics. Our Experts are well trained to follow all marking rubrics & referencing style.
Be it a used or new solution, the quality of the work submitted by our assignment experts remains unhampered. You may continue to expect the same or even better quality with the used and new assignment solution files respectively. There’s one thing to be noticed that you could choose one between the two and acquire an HD either way. You could choose a new assignment solution file to get yourself an exclusive, plagiarism (with free Turnitin file), expert quality assignment or order an old solution file that was considered worthy of the highest distinction.