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 |
How come only the first part of my datagram is getting through?
Why sockets are used?
How often should I re-transmit un-acknowleged messages?
What is a sae socket?
Is there any advantage to handling the signal, rather than just ignoring it and checking for the EPIPE error? Are there any useful parameters passed to the signal catching function?
Whats the difference between select() and poll()?
How many socket connections can a server handle?
After the chroot(), calls to socket() are failing. Why?
How do I properly close a socket?
What is active unix domain sockets?
How can my client work through a firewall/proxy server?
How are unix domain sockets implemented?