Unix Socket Programming Question:
Download Questions PDF

What exactly does SO_LINGER do?

Answer:

On some unixes this does nothing. On others, it instructs the kernel to abort tcp connections instead of closing them properly. This can be dangerous.

Download Unix Socket Programming Interview Questions And Answers PDF

Previous QuestionNext Question
How can I listen on more than one port at a time?How can I bind() to a port number < 1024?