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 |
What is the difference between a socket and a port?
What is socket programming in java?
Is socket a hardware or software?
What's better 6pt or 12pt sockets?
What is socket address?
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?
What is a socket api?
Why do not my sockets close?
How come select says there is data, but read returns zero?
What is Mac, and how is it different from PC? Which one is better for professional users, and why
1 Answers Evolving Systems, IBM,
How can I find the full hostname (FQDN) of the system I am running on?
How can I read ICMP errors from connected UDP sockets?