What are Sockets?



What are Sockets?..

Answer / chaitanya

Sockets are just like "worm holes" in science fiction. When things go into one end, they (should) come out of the other. Different kinds of sockets have different properties. Sockets are either connection- oriented or connectionless. Connection-oriented sockets allow for data to flow back and forth as needed, while connectionless sockets (also known as datagram sockets) allow only one message at a time to be transmitted, without an open connection. There are also different socket families. The two most common are AF_INET for internet connections, and AF_UNIX for unix IPC (interprocess communication). As stated earlier, this FAQ deals only with AF_INET sockets.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Unix Socket Programming Interview Questions

What is socket address?

0 Answers  


How can I put a timeout on connect()?

1 Answers  


What is a socket connection?

0 Answers  


How are unix domain sockets implemented?

0 Answers  


What are socket exceptions? What is out-of-band data?

1 Answers  






How does unix socket work?

0 Answers  


What exactly does SO_KEEPALIVE do?

1 Answers  


How can I be sure that UDP messages are received in order?

1 Answers  


What is a socket set used for?

0 Answers  


How do I send [this] over a socket?

1 Answers  


What's better 6pt or 12pt sockets?

0 Answers  


Why do I keep getting EINTR from the socket calls?

1 Answers  


Categories