[SOLVED] Computer Networks - Assignment 2

35.00 $

Category:
Click Category Button to View Your Next Assignment | Homework

You will receive the following solution file(s) instantly after successful payment:

zip file icon Assignment2-iw7sej.zip (2875.8 KB)
Assignment Instructions Updated Recently? Submit Below and we will provide new Solution!
Submit New Instructions
đź”’ Securely Powered by:
Secure Checkout
Rate this product

Introduction to: Web Server Imitation
1. Goal
• Develop a simple web server using socket programming.
2. Development environments • TA will evaluate your results on multiple Linux (virtual) machines. • You have to use Python (version 3.6+). • Python can be run over both Window and Linux, but you must NOT use Window OS dedicated APIs. • If TA cannot run your program on Linux, you will get zero points.
* You can use simple basic python libraries (ex: socket, os, thread… ), but must implement the main functionalities by yourself. You are NOT allowed to use some libraries that make it easy to implement the assignment. If you want to know whether a particular library is acceptable or not, ask me via the anonymous google sheet.
=> Allowed library example: “os”, “time”, “threading”
=> NOT allowed library example: “HTTP”, “requests”, “ServerSocket”, “flask”, “urllib”, “websocket”
3. Functionalities to implement • Server • Develop a standard web server program.
• The web server program runs with the port number of 10080, and waits to receive HTTP requests from commercial web browsers that run on another (virtual) machine.
• When receiving HTTP request messages, the web server program sends HTTP response messages back to the browser.
• Users can request two type files; html and image (e.g. jpg, png, gif… etc.) which are located in the same directory where web server program runs. The html file can also include embed image files.

  • Assignment2-iw7sej.zip