Write client and server programs that implement framework

Assignment Help Basic Computer Science
Reference no: EM131056895

Section 61.13.1 noted that an alternative to out-of-band data would be to create two socket connections between the client and server: one for normal data and one for priority data. Write client and server programs that implement this framework. Here are a few hints

The server needs some way of knowing which two sockets belong to the same client. One way to do this is to have the client first create a listening socket using an ephemeral port (i.e., binding to port 0). After obtaining the ephemeral port number of its listening socket (using getsockname()), the client connects its "normal" socket to the server's listening socket and sends a message containing the port number of the client's listening socket. The client then waits for the server to use the client's listening socket to make a connection in the opposite direction for the "priority" socket. (The server can obtain the client's IP address during the accept() of the normal connection.)

Implement some type of security mechanism to prevent a rogue process from trying to connect to the client's listening socket. To do this, the client could send a cookie (i.e., some type of unique message) to the server using the normal socket. The server would then return this cookie via the priority socket so that the client could verify it.

In order to experiment with transmitting normal and priority data from the client to the server, you will need to code the server to multiplex the input from the two sockets using select() or poll() (described in Section 63.2).

Reference no: EM131056895

Questions Cloud

The electromagnetic spectrum : Watch the video titled "What Are Gamma Rays?" (1 min 39 sec) under the Gamma Rays terms section of the Science Corner.
Innovative business concept and want to start a new business : Description: With members of your group you are to develop an innovative business concept and want to start a new business venture and you are looking for funding. In order to secure funding you are required to present your innovation and develop ..
Question regarding the molecules location : Two molecules, one polar the other anionic, walk into a bar and have seats equidistance away from you on your right and left. If you are a polar molecule, which of the two molecules are you more attracted to and why? Also, explain why the molec..
Describe marxs theory of the falling rate of profit : Describe Marx's theory of the falling rate of profit and explain its relation to his value theory. Additional RequirementsMin Pages: 2Other Requirements: 1000 words, mla citation.
Write client and server programs that implement framework : The server needs some way of knowing which two sockets belong to the same client. One way to do this is to have the client first create a listening socket using an ephemeral port (i.e., binding to port 0).
Density of a lead weight by various methods : A handbook lists the density of lead as 11.3 g/mL. Several groups of students are attempting to determine the density of a lead weight by various methods.
Value of the specific heat to be too large : If some of the hot water evaporated during the heating process in a calorimeter, would that cause the calculated value of the specific heat to be too large, too small, or unchanged in magnitude? Explain your reasoning.
To analyze financial statements of businesses : Financial ratios are a useful tool to analyze financial statements of businesses. These analyses help users of financial information to satisfy their needs. As users have different objectives, they consider some aspects of financial information mo..
Display the values of time and min : Write a program that displays information indicating whether the terminal referred to by standard input is in canonical or no canonical mode.

Reviews

Write a Review

Basic Computer Science Questions & Answers

  Show the output in a web application

Create a calculator that can take input from the user and show the output in a web application. You have to use the control structures to complete this requirement.

  Assembling the research paper and presentation

You are only required to submit a final paper and presentation. However, during the previous six weeks, you will be assembling the research paper and presentation. Feel free to post questions or portions of the paper for review at any time as an emai..

  The data rate of the transmission line is doubled

Bernie's speed is doubled; (ii) each tape capacity is doubled; (iii) the data rate of the transmission line is doubled.

  Find the grammar generated by the language

Find the grammar generated by the language L=(a^i b^j | i!= j)

  Which strategy you choose on a modern disk

You could do it from the outside in or the inside out. Does it matter which strategy you choose on a modern disk? Explain your answer.

  Functions is performed by the loader

Which of the following functions is/ are performed by the loader? A. Allocate space in memory for the programs and resolve symbolic references between object decks B. Physically place the machine instructions and data into memory

  Write a program that will read in a length in meters

Write a program that will read in a length in meters and centimeters and output the equivalent length in feet and inches. Use at least three functions; one for input, one or more for calculating and one for output.

  Project plan this is for a company selling airline

this is for a company selling airline parts ltbrgt ltbrgtsection 1 written project plan ltbrgt ltbrgtyou are now in the

  Design and create a website with html

Your task is to create a website on anything that is of interest to you. The website will need to have minimum of 3 web pages. This means that you have an index page that will link to other pages and vice versa.

  Advance the quality of public service

"What I hope to accomplish in my field of study to advance the quality of public service."A. Two typewritten pages (8½ x 11, double-spaced)B. In writing your essay, please give specific examples to clarify your ideas.

  Prove by induction of recurrence relation has solution

Describe why Kim's recurrence relation is correct. Prove by induction that Kim's recurrence relation has solution: M(k) = 3^(k - 1).

  Express the angle with respect to the tangential velocity

Express the angle with respect to the tangential velocity vector (ie, +90° points radially out). (Points : 5) A) 10.9 m/s2 at -75° B) 10.9 m/s2 at +75° C) 37.9 m/s2 at -75° D) 37.9 m/s2 at +75°

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