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

  Create your personal brand and market your skills

Imagine you are looking for a position in your future career (FOR ACCOUNTANT). You know it is important to have your personal brand on social media.  Career Services discusses the use of social media sites such as LinkedInTM to create your personal b..

  Network connectivity and protocols

Network Connectivity and Protocols-

  Evaluate the megatrend of demographics in the it field

Evaluate the megatrend of demographics in the IT field. Give your opinion as to why IT managers must understand this megatrend when selecting talent for organizational positions.

  What role did berners-lee play

What role did Berners-Lee play

  Discuss whether design considerations need to change

Are there certain projects in which the traditional approach would work better? If not, explain why not. If so, give at least one example of such a project.

  The future of encryption

The future of encryption

  Availability of the organization information assets

Organizational end users are generally in the background when it comes to protecting the IT infrastructure. As the chief security officer (CSO), develop a security awareness training communication plan for these users. Your plan must be in nontechnic..

  Drag and drop the calculated values that are in the range

Drag and drop the calculated values that are in the range B26:F26 to the range B9:F9. Select the range B26:F26, and then use AutoSum to calculate the maximum number of pizzas served in each of the five restaurants. Move the calculated values in the..

  Simulate the operation of a simple robot

Write a program to simulate the operation of a simple robot . the robot moves in four directions :forward, right,left. the job of the robot is to move items and place it in the right slots in each station

  Execute one set of statements if the condition is true

You need to test a condition and then execute one set of statements if the condition is true.

  What frequency of radio waves corresponds to wavelength

Radio amateurs are allowed to communicate on "10 meter band." What frequency of radio waves corresponds to wavelength of 20m?

  Anomalous behaviour of fifo

Describe Belady's anomaly and provide an example that illustrates anomalous behaviour of FIFO.

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