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 do I convert a string into an internet address?
What is socket address with example?
How to find other end of unix socket connection?
What are the pros/cons of select(), non-blocking I/O and SIGIO?
What's the difference between a socket and a port?
What is a socket connection?
Are unix sockets faster than tcp?
Is socket a hardware or software?
What is the difference between a socket and a port?
What is a deep well socket?
Where is the socket located?
What is socket programming in java?
What is a socket file?
What is socket address?
How can I set the timeout for the connect() system call?