subject
Business, 27.03.2020 01:27 coolkid20034

Choose one or more of the following statements about this socket networking procedure running as the server (i. e. not the client):
1. Create network endpoint with socket()
2. Start listening for connections with listen()
3. Accept connections with accept()
4. Read and write data with read() and write()

Select all that are correct.

1. In step 4, you could also use send() and recv() to send and receive data
2. There is a missing step in between steps 1 and 2: the socket needs to be bound to a port with bind() before calling accept()
3. Assuming we want to handle more than one network connection for communication after one completes, there should be a loop around step 3
4. We do not use the connect() command in this server procedure as that is up to the client

ansver
Answers: 2

Another question on Business

question
Business, 22.06.2019 19:10
Imagine us is a startup that offers high definition 3d prenatal ultrasounds for high-end customers. the service process includes four activities that are conducted in the sequence described below. (the time required for each activity is shown in parentheses): activity 1: welcome a patient and explain the procedure. (20 minutes)activity 2: prep the patient (e.g., show them to the room, apply ultrasound gel). (17 minutes) (*your id number represents the amount of time needed to complete this task)activity 3: take images. (5 minutes)activity 4: discuss diagnostic with patient. (20 minutes)at each location there are employees (servers) s1, s2, and s3. the assignment of tasks to servers is the following: s1 does activities 1 and 2.s2 does activity 3.s3 does activity 4.a. what is the capacity of this process (in customers per hour)? b. suppose 3 patients arrive every hour on average. ignoring any “start of day” or “end of day” effects, what are the utilizations of all three servers (%)? c. suppose each activity can be done by any server and any server can do any set of activities. however, each activity is done by only one server. for example, a possible assignment includes: s1 does activity 1, s2 does activity 2, and s3 does activities 3 and 4. of course, the original assignment of servers to activities is also feasible. what is the maximum capacity of the process (in customers per hour)? d. now consider the capacity measures in (c) and (a), what is the percentage change? why can you improve capacity without using additional resources? (there is no free lunch, right? )note: for all hw assignments, show your process of getting the results. only providing the final answers is not acceptable and will get 0%. if necessary, use a separate sheet of paper to show your work.
Answers: 3
question
Business, 22.06.2019 20:30
When many scrum teams are working on the same product, should all of their increments be integrated every sprint?
Answers: 3
question
Business, 23.06.2019 00:10
Warren company plans to depreciate a new building using the double declining-balance depreciation method. the building cost $870,000. the estimated residual value of the building is $57,000 and it has an expected useful life of 20 years. assuming the first year's depreciation expense was recorded properly, what would be the amount of depreciation expense for the second year?
Answers: 2
question
Business, 23.06.2019 01:20
Suppose that fizzo and pop hop are the only two firms that sell orange soda. the following payoff matrix shows the profit (in millions of dollars) each company will earn depending on whether or not it advertises: pop hopadvertise doesn’t advertisefizzo advertise 10, 10 18, 2doesn’t advertise 2, 18 11, 11for example, the upper right cell shows that if fizzo advertises and pop hop doesn't advertise, fizzo will make a profit of $18 million, and pop hop will make a profit of $2 million. assume this is a simultaneous game and that fizzo and pop hop are both profit-maximizing firms.if fizzo decides to advertise, it will earn a profit if pop hop advertises and a profit if pop hop does not advertise.if fizzo decides not to advertise, it will earn a profit if pop hop advertises and a profit if pop hop does not advertise.if pop hop advertises, fizzo makes a higher profit if it chooses (not to advertise, to .if pop hop doesn't advertise, fizzo makes a higher profit if it chooses (not to advertise, to . suppose that both firms start off not advertising. if the firms act independently, what strategies will they end up choosing? fizzo will choose to advertise and pop hop will choose not to advertise.both firms will choose to advertise.fizzo will choose not to advertise and pop hop will choose to advertise.both firms will choose not to advertise.again, suppose that both firms start off not advertising. if the firms decide to collude, what strategies will they end up choosing? fizzo will choose not to advertise and pop hop will choose to advertise.both firms will choose not to advertise.fizzo will choose to advertise and pop hop will choose not to advertise.both firms will choose to advertise.
Answers: 2
You know the right answer?
Choose one or more of the following statements about this socket networking procedure running as the...
Questions
question
Mathematics, 04.09.2020 07:01
question
Geography, 04.09.2020 07:01
question
Mathematics, 04.09.2020 07:01
question
Mathematics, 04.09.2020 07:01
Questions on the website: 13722360