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 |
of the socket? Does doing a connect() call affect the receive behaviour?
What exactly does SO_LINGER do?
What is LILO?
Where is the socket located?
How can I write a multi-homed server?
Why do I keep getting EINTR from the socket calls?
Can a socket have multiple ports?
Whats the difference between select() and poll()?
Where can a get a library for programming sockets?
How can I force a socket to send the data in its buffer?
How to find other end of unix socket connection?
Can multiple sockets use the same port?