lwip-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[lwip-users] Problem with lwip_close()


From: BRivero
Subject: [lwip-users] Problem with lwip_close()
Date: Fri, 6 Jul 2007 11:42:15 +0200


Hello!!

I have been studying how to make a linger close of a socket in lwip. First of all, I have used the standard lwip_close() function as it is, an I have noticed that it gets stucked in  the  "netconn_delete(sock->conn);" statement. I suppose that here it will wait for the closure handshake to get completed or something like that.

Later, I tried to see how to use the SO_LINGER option. And I saw that this option is listed in sockets.h but I cannot find it in sockets.c. I had a look in lwip_setsockopt(), but I did not find the SO_LINGER definition. In addition, I saw that many other options are unimplemented. Then, my question is: Can a linger close be implemented under lwip?? How?? Usingo the SO_LINGER option in setsockopt ???

Thank you very much for your helpful advice.

Regards,

Borja.
reply via email to

[Prev in Thread] Current Thread [Next in Thread]