Most of sockets should directly return an error code from errno.h (if the 
return value can be an error code, like in lwip_connect, lwip_bind, etc...). 
Some others set the global "errno" value. Last, once the socket is created, you 
can get an error code "per socket" using getsockopt( ...SO_ERROR...), the code 
you have seen in lwip_socket struct (and the getsockopt call reset the error to 
0).
 
I'm not sure which function set such or such error code, but if you see any 
problems in error handling, send us an email...
 
 
  
====================================
Frédéric BERNON 
HYMATOM SA 
Chef de projet informatique 
Microsoft Certified Professional 
Tél. : +33 (0)4-67-87-61-10 
Fax. : +33 (0)4-67-70-85-44 
Email : [EMAIL PROTECTED] 
Web Site : http://www.hymatom.fr <http://www.hymatom.fr/>  
====================================
P Avant d'imprimer, penser à l'environnement
 

<<attachment: image001.jpg>>

<<attachment: image002.jpg>>

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

Reply via email to