What exactly does SO_LINGER do?



What exactly does SO_LINGER do?..

Answer / chaitanya

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.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Unix Socket Programming Interview Questions

system choose one for me on the connect() call? Should I bind() a port number in my client program, or let the?

0 Answers  


What are Sockets?

1 Answers  


What exactly is a socket?

0 Answers  


If bind() fails, what should I do with the socket descriptor?

1 Answers  


How are unix domain sockets implemented?

0 Answers  






What is the difference between connected and unconnected sockets?

1 Answers  


How do I get the port number for a given service?

1 Answers  


Why do I get EPROTO from read()?

0 Answers  


Is socket a hardware or software?

0 Answers  


What is difference between socket () and serversocket () class?

0 Answers  


How can I read ICMP errors from connected UDP sockets?

1 Answers  


What's the difference between impact sockets and regular sockets?

0 Answers  


Categories