If bind() fails, what should I do with the socket descriptor?
Answer Posted / 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 |
Post New Answer View All Answers
How many sockets can a cpu have?
What is the function of socket?
How does a socket work?
Whats the difference between select() and poll()?
What is the difference between read() and recv()?
What is a socket address?
What is socket programming in java?
How to find other end of unix socket connection?
What is active unix domain sockets?
What is a deep well socket?
Can a socket have multiple ports?
How do unix sockets work?
What is socket address with example?
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?
Are sockets files?