Create a connection socket when contacted by a client

Assignment Help Other Subject
Reference no: EM131711066

Use the textbook for the following review questions, problems, and programming assignments.

Textbook: Computer Networking: A Top-Down Approach (6th Edition)

Socket Programming Assignments

Note : For these two programming assignments, we provide the skeleton python codes and your job is to complete the code and test it.

Assignment 1: Web Server

In this assignment, you will develop a simple Web server in Python that is capable of processing only one request. Specifically, your Web server will

(i) create a connection socket when contacted by a client (browser);

(ii) receive the HTTP request from this connection;

(iii) parse the request to determine the specific file being requested;

(iv) get the requested file from the server's file system;

(v) create an HTTP response message consisting of the requested file preceded by header lines; and

(vi) send the response over the TCP connection to the requesting browser.

If a browser requests a file that is not present in your server, your server should return a "404 Not Found" error message.

We provide the skeleton code in Blackboard in Assignments Documents. Your job is to complete the code, run your server, and then test your server by sending requests from browsers running on different hosts.

If you run your server on a host that already has a Web server running on it, then you should use a different port than port 80 for your Web server. Note that only the three lines of codes are missing and these lines are indicated by #+++++ in the python source code. Your task is to fill out those three lines by proper commands.

Assignment 2 : Mail Client

The goal of this programming assignment is to create a simple mail client that sends email to any recipient. Your client will need to establish a TCP connection with a mail server (e.g., a Google mail server), dialogue with the mail server using the SMTP protocol, send an email message to a recipient (e.g., your friend) via the mail server, and finally close the TCP connection with the mail server.

We provide the skeleton code in Blackboard in Assignments Documents. Your job is to complete the code and test your client by sending email to different user accounts. You may also try sending through different servers (for example, through a Google mail server and through your university mail server).

Note that only the four lines of codes are missing and these lines are indicated by #+++++ in the python source code. Your task is to fill out those four lines by proper commands.

Attachment:- Socket Programming.rar

Reference no: EM131711066

Questions Cloud

How much profit will the monopolist make : How much profit will the monopolist make? What is the deadweight loss created by this monopoly?
Signed contract not to work for competitor : Clifford Witter was dance instructor at Arthur Murray Dance Studios in Cleveland. As condition of employment, he signed contract not to work for competitor.
Switching costs are costs consumers pay : Switching costs are costs consumers pay to switch from one company's product to another. Are high switching costs good or bad for industry profits, and why?
Editing of the narrative essay : Being successful has different meaning s depend on what you focus on. For me success in anything you set your mind to realize in the future, a desire
Create a connection socket when contacted by a client : Develop a simple Web server in Python that is capable of processing only one request.create a connection socket when contacted by a client .
Distinguish nonprobability from probability sampling method : Distinguish a nonprobability from a probability sampling method. Which one is the preferable method and why? Indicate the pros and cons associated.
Amount of product differentiation : If the amount of product differentiation in a monopolistically competitive industry is very small, the outcome in that market.
Explain physiological aspect of toxic air pollution in plant : Write a ten to fifteen pages term paper about physiological Aspects of Toxic Air Pollution in Plants. The paper should be in APA style.
Define what will the education system look like : What will the education system look like. Who will be eligible for what type of education. What will be required

Reviews

Write a Review

Other Subject Questions & Answers

  What are the key historical facts about gospel of matthew

What are some of the key historical facts about the Gospel of Matthew that provide clarity and insight to this particular Gospel

  Identify an actual or potential health problem

As a community health nurse develop a plan/strategy to help the community address/solve the problem .

  Why is renewable energy so expensive

Write your reflection in two pages after reading this article and brief introduction to Part IV in the textbook.

  Cancer and nutrition and physical activity

Explain how the American Cancer Society might provide education and support. What ACS services would you recommend and why?

  Create brochure including graphics

Create brochure including graphics, on traditional psychodynamic theories. Describe personality. Discuss the main tenets of each theory

  Is prof maladroit scheme secure

Prof. Maladroit, the esteemed Ineptitude Professor of Computer Science at Wikipedia University, is developing a new terminal program (and associated service).

  Description of your proposed pilot program

Description of your proposed program that you developed. Description of your proposed pilot program. Describe a small scale program that will help to determine the feasibility of your final project

  Analyze your behaviors during the event

Consider your own experiences with others. Have your actions ever been judged inaccurately by a person such as a boss, a peer, or a family member?

  Discuss most heavily in your explanation of the issue

Which would you rely on most heavily in your explanation of the issue, Which would you rely upon most heavily in your argument

  Define has the analyst collaborated with other agencies

Does the report generate additional questions to be researched. Has the intelligence been validated

  What are some of the future issues related to health care

What are some of the future issues and concerns related to health care financing in the U.S. compared to the other country?

  Research the ethical issues of reforming the healthcare

research the ethical issues of reforming the healthcare systems in the united states and at least one other country

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd