What list of calls are used to establish a tcp and/or udp socket connection?



What list of calls are used to establish a tcp and/or udp socket connection?..

Answer / Tapan Joshi

To establish a TCP socket connection, you can use the following system calls in order: `socket()`, `bind()`, `listen()`, `accept()`. For UDP, the process is similar but instead of `accept()`, you use `recvfrom()` or `recv()` to receive data.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More TCP IP Interview Questions

What are TCP/IP protocols?

1 Answers   Thomson Reuters, Virtusa,


How names are translated (resolved) into ip address?

1 Answers  


What is private ip and public ip?

1 Answers  


What happens when flag is set to zero in a modem during packet data transfer?

1 Answers   GrapeCity,


Is there a list of private addresses?

1 Answers  


Can two ip addresses use same port?

1 Answers  


What subnet means?

1 Answers  


What are the different layers in TCP/IP model? What are the protocols associated with each layer?

1 Answers   Adobe,


How do I know my ip address ubuntu?

1 Answers  


How does tcp ip socket work?

1 Answers  


Do you know what is network address translation?

1 Answers  


How do I find a device by ip address?

1 Answers  


Categories