Hello,

I am interesting in handling errors when using the sockets layer functions 
of LWIP.

I have already read the pdf documentation where it is said that the BSD 
socket library provides no such error handling due to the fact that it is 
a simple reference implementation. But I have also seen in the code that 
there is an error table already defined: 



Can these error codes be directly used with the provided BSD sockets 
layer? Or I should look for another implementation which returned these 
error codes? I have had a look in the code and I understand that in the 
provided socket implementation only a few error codes are returned. 

Actually, I vas making a comparison with the win32 socket implementation, 
and I would like to achieve a function similar to that WSAGetLastError in 
win32 for those who are familiar to the platform. 

I have also seen that in the socket structure below (lwip_socket), there 
are sometimes used some of these codes (in err), and I think that this 
structure might should be read to make a proper error handling.

I would thank any recommendation from you dealing with the problem.

Thank you very much.

Attachment: gifrusnHQQf7G.gif
Description: GIF image

_______________________________________________
lwip-users mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/lwip-users

Reply via email to