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
What is af_inet in socket?
Whats the difference between select() and poll()?
system choose one for me on the connect() call? Should I bind() a port number in my client program, or let the?
How are unix domain sockets implemented?
What is a socket file?
What is a sae socket?
What is socket address with example?
Why do we need socket programming?
Can multiple sockets use the same port?
How many sockets can a port have?
What is the difference between a socket and a port?
How is a socket created?
What are the pros/cons of select(), non-blocking I/O and SIGIO?
What is a socket api?
What is a socket connection?