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 do unix sockets work?
Can multiple clients connect to same socket?
How come only the first part of my datagram is getting through?
What are socket exceptions? What is out-of-band data?
How come I get address already in use from bind()?
How can I bind() to a port number < 1024?
How do I get my server to find out the clients address / host- name?
What is with the second parameter in bind()?
How can I tell when a socket is closed on the other end?
How should I choose a port number for my server?
How do I properly close a socket?
How is a socket created?