Computers and Technology

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()
A) Select all that are correct.
O In step 4, you could also use send() and recv() to send and receive data.
O 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().
O Assuming we want to handle more than one network connection for communication after one completes, there should be a loop around step 3.
O We do not use the connect() command in this server procedure as that is up to the client.

answer
Answers: 3

Other questions on the subject: Computers and Technology

image
Computers and Technology, 24.06.2019 06:30, chloeholt123
For which utilities, if any, does the landlord pay?
Answers: 2
image
Computers and Technology, 24.06.2019 11:00, soystersoce
Under the home tab, where can a user find options to change the bullet style of an outline? in the slides group in the font group in the paragraph group in the drawing group
Answers: 1
image
Computers and Technology, 24.06.2019 21:00, genyjoannerubiera
When replacing a thermostat or water pump, coolant drained from the cooling system should be
Answers: 1
image
Computers and Technology, 25.06.2019 09:00, pacetys
Which element of a presentation program’s interface displays the slide you are currently creating or editing? a. slide pane b. tool bar c. menu bar d. scroll bar
Answers: 1
Do you know the correct answer?
Choose one or more of the following statements about this socket networking procedure running as the...

Questions in other subjects: