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.
_______________________________________________
lwip-users mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/lwip-users

Reply via email to