lwip-users
[Top][All Lists]
Advanced

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

[lwip-users] Error handling in sockets layer.


From: brivero
Subject: [lwip-users] Error handling in sockets layer.
Date: Tue, 17 Apr 2007 13:26:37 +0200


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.

reply via email to

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