subject

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.

ansver
Answers: 3

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 11:30, lindalu
Hassan is writing his master’s thesis, which is a thirty-page document. he received some feedback from his professor in the form of comments, but does not see where the comments are. what is the fastest way for hassan to find the feedback?
Answers: 3
image
Computers and Technology, 22.06.2019 16:30, buky0910p6db44
Corey set up his presentation for delivery to his team. the information he had to convey was critical to their job performance. he knew he would need a lot of time to explain each point
Answers: 3
image
Computers and Technology, 22.06.2019 17:30, bl88676
1. before plugging in a new device to a computer you should unplug all other devices turn off the computer turn on the computer 2. many of the maintenance tools for a computer can be found in the control panel under administrative tools display personalization
Answers: 1
image
Computers and Technology, 23.06.2019 02:30, paolaviviana
Experimental data that is expressed using numbers is said to be
Answers: 1
You know the right answer?
Choose one or more of the following statements about this socket networking procedure running as the...

Questions in other subjects:

Konu
Mathematics, 22.08.2019 02:30
Konu
Social Studies, 22.08.2019 02:30