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

  Design a modified priority encoder

Design a modified priority encoder that receives an 8-bit input, A7:0, and produces two 3-bit outputsm Y2:0 and Z 2:0 Y indicates the most significant bit of the input that is TRUE

  Create one z-specification for system

Create one (1) short Z-specification for this system using Visio or an equivalent such as Dia. Note: The graphically depicted solution is not included in the required page length.

  What ethical issues arise when conducting research

Do you detect any specific problems that might arise because of the "skip" procedure used in this study?

  Explain hardware implementations of intelligent agents

There are hardware implementations of intelligent agents. Determine the literature instances of intelligent agents as software. Compare and contrast two implementations.

  Maintain inventory data on resources stored in the library

Provide an eLibrary system where patrons can search a database to retrieve either the location of an actual resource in the library or an electronic copy of the source.

  Will action alter or destroy any historical and scientific

Will action alter or destroy any historical, scientific, or archaeological site? New engineering building project doesn't have any reported historical, scientific.

  The largest available hole in the main memory

In which of the storage placement strategies a program is placed in the largest available hole in the main memory?

  Promote travel programs hosted by the library

As a volunteer at your local public library, you are helping to promote travel programs hosted by the library. The head librarian has created a document with specifics for an upcoming program called Timeless Travel Tips.

  Which of these depend on the current file record

Which of these depend on the current file record?

  Write a program that reads in an integer

Write a program that reads in an integer, and breaks it into a sequence of individual digits. For example, the input 16384 is displayed as 1 6 3 8 4 You may assume that the input has no more than five digits and is not negative

  Prototyping environments and processes

Begin working on the Business Case for Investment, where the full assignment. Create a detailed outline, but include detailed information on the following topics

  Accepts data for an id number of a dog

A program that accepts data for an ID number of a dog's owner, and the name, breed, age, and weight of the dog. Display a bill containing all the input data as well as the weekly day care fee, which is $55 for dogs under 15 pounds, $75 for dogs from ..

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