Answer Posted / chaitanya
The implementation is left up to the vendor of your particular unix, but from the point of view of the programmer, connection-oriented sockets work a lot like files, or pipes. The most noticeable difference, once you have your file descriptor is that read() or write() calls may actually read or write fewer bytes than requested. If this happens, then you will have to make a second call for the rest of the data. There are examples of this in the source code that accompanies the faq.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What is difference between socket and websocket?
What is the difference between read() and recv()?
What does af mean in sockets?
What's better 6pt or 12pt sockets?
How many sockets can a port have?
Why does the sockets buffer fill up sooner than expected?
Can a single socket port be used for multiple applications?
What is the difference between SO_REUSEADDR and SO_REUSEPORT?
How many socket connections can a server handle?
How do unix sockets work?
What is a socket set used for?
What is a deep well socket?
Can multiple clients connect to same socket?
How many sockets can a cpu have?
Why do I get EPROTO from read()?