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 12:00
Areal estate agent is considering changing her cell phone plan. there are three plans to choose from, all of which involve a monthly service charge of $20. plan a has a cost of $.42 a minute for daytime calls and $.17 a minute for evening calls. plan b has a charge of $.52 a minute for daytime calls and $.15 a minute for evening calls. plan c has a flat rate of $80 with 275 minutes of calls allowed per month and a charge of $.38 per minute beyond that, day or evening.a. determine the total charge under each plan for this case: 150 minutes of day calls and 70 minutes of evening calls in a month. (do not round intermediate calculations. round your answer to 2 decimal places. omit the "$" sign in your response.)c. if the agent will use the service for daytime calls, over what range of call minutes will each plan be optimal? (round each answer to the nearest whole number.include the indifference point itself in each answer.)d. suppose that the agent expects both daytime and evening calls. at what point (i.e., percentage of total call minutes used for daytime calls) would she be indifferent between plans a and b?
Answers: 1
question
Business, 22.06.2019 15:30
In 2015, lori assigned a paid-up whole life insurance policy to an irrevocable life insurance trust (ilit) for the benefit of her three children. the ilit contained a crummey provision for the benefit of each child. at the time of the transfer, the whole life insurance policy was valued at $200,000, and since lori had not made any other taxable gifts during her lifetime, she did not owe any gift tax. lori died in 2016, and the face value of the whole life insurance policy of $2,000,000 was paid to the ilit. regarding this transfer, how much is included in lori’s gross estate at her death?
Answers: 1
question
Business, 22.06.2019 17:30
Which of the following services will be provided by a full-service broker but not by a discount broker? i. research of potential investment opportunities ii. purchase and sale of stock at your request iii. recommendation of investments a. i and iii b. ii only c. iii only d. i, ii, and ii
Answers: 2
question
Business, 22.06.2019 20:30
You are in the market for a new refrigerator for your company’s lounge, and you have narrowed the search down to two models. the energy efficient model sells for $700 and will save you $45 at the end of each of the next five years in electricity costs. the standard model has features similar to the energy efficient model but provides no future saving in electricity costs. it is priced at only $500. assuming your opportunity cost of funds is 6 percent, which refrigerator should you purchase
Answers: 3
You know the right answer?
Choose one or more of the following statements about this socket networking procedure running as the...
Questions
question
Mathematics, 13.06.2020 03:57
question
Spanish, 13.06.2020 03:57
question
Mathematics, 13.06.2020 03:57
Questions on the website: 13722359