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

  Explore one current issue facing the united states today

Explore one current issue facing the United States today. Analyze the respective roles of Federal and state authorities in addressing the issue.

  The different intelligence theories

Look at the different intelligence theories and describe which one you think makes the most sense and why.

  Every woman matters

A summary of why this program was ineffective ? Prescreening for preventable diseases like diabetes, breast cancer, cholesterol, high blood pressure, pap smear for women with limited or no income, no insurance

  The evaluation of new product ideas is referred to as what

High switching costs refers to: The evaluation of new product ideas is referred to as what?

  Would you use a 360 performance appraisal for the job

PSY 331: Based on the job analysis you did in Assignment 1 create a performance appraisal system for the job of hair dresser/barber Your performance appraisal must have:At least 1 rating scale (graphic rating scale, BARS, checklists, employee compar..

  Describe the cause-extent and nature of the disorder

Describe the cause, extent, and nature of the disorder, such as number of people diagnosed and under treatment, demographics, and other factors of interest.Explain how the selected disorder is diagnosed.Explain how the selected disorder is treated..

  Explain differentiation theory using specific examples

Include examples from research on hearing, pattern perception also intermodal perception. Be sure to include in your response information from textbook or other psychology-specific sources.

  What is the national energy policy of the united states

What is the national energy policy of United States? Does it include subsidies? Does it promote efficiency and/or conservation? What impact does drilling for oil in the United States have on short-term U.S. energy supplies?

  Spinozas theory of freedom describe the distinction between

spinozas theory of freedom. what is the distinction between free choice of the will and freedom as self-determination.

  Define organ and organ system

Explain what is meant by tissue typing and Why has this become so important in recent years - Define organ and organ system.

  Trial injection of arginine vasopressin-diabetes mellitus

A 29-year-old woman complains of insatiable thirst. When asked about her bathroom habits, she reports having to urinate 10–12 times per day without any decrease at night. Some preliminary lab work reveals an appreciably elevated serum osmolarity with..

  Compare information about the two organizations

Identify a goal or objective based on a strategic planning tool, such as SWOT or Balanced Scorecard, or Six Sigma consistent with the mission of the organization.

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