If bind() fails, what should I do with the socket descriptor?
Answer / chaitanya
If you are exiting, I have been assured by Andrew that all unixes will close open file descriptors on exit. If you are not exiting though, you can just close it with a regular close() call.
Is This Answer Correct ? | 1 Yes | 0 No |
How often should I re-transmit un-acknowleged messages?
Can multiple clients connect to same socket?
What is af_inet in socket?
What are raw sockets?
Why do I get EPROTO from read()?
How do Sockets Work?
How can I listen on more than one port at a time?
How come select says there is data, but read returns zero?
What is socket address?
What pieces of information make up a socket?
Why does the sockets buffer fill up sooner than expected?
Is socket a hardware or software?