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

  Cross-cultural opportunities and conflicts in canada

Short Paper on Cross-cultural Opportunities and Conflicts in Canada.

  Sociology theory questions

Sociology are very fundamental in nature. Role strain and role constraint speak about the duties and responsibilities of the roles of people in society or in a group. A short theory about Darwin and Moths is also answered.

  A book review on unfaithful angels

This review will help the reader understand the social work profession through different concepts giving the glimpse of why the social work profession might have drifted away from its original purpose of serving the poor.

  Disorder paper: schizophrenia

Schizophrenia does not really have just one single cause. It is a possibility that this disorder could be inherited but not all doctors are sure.

  Individual assignment: two models handout and rubric

Individual Assignment : Two Models Handout and Rubric,    This paper will allow you to understand and evaluate two vastly different organizational models and to effectively communicate their differences.

  Developing strategic intent for toyota

The following report includes the description about the organization, its strategies, industry analysis in which it operates and its position in the industry.

  Gasoline powered passenger vehicles

In this study, we examine how gasoline price volatility and income of the consumers impacts consumer's demand for gasoline.

  An aspect of poverty in canada

Economics thesis undergrad 4th year paper to write. it should be about 22 pages in length, literature review, economic analysis and then data or cost benefit analysis.

  Ngn customer satisfaction qos indicator for 3g services

The paper aims to highlight the global trends in countries and regions where 3G has already been introduced and propose an implementation plan to the telecom operators of developing countries.

  Prepare a power point presentation

Prepare the power point presentation for the case: Santa Fe Independent School District

  Information literacy is important in this environment

Information literacy is critically important in this contemporary environment

  Associative property of multiplication

Write a definition for associative property of multiplication.

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