lwip-devel
[Top][All Lists]
Advanced

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

RE : RE : [lwip-devel] [patch #5919] Create compile switchtoremoveselect


From: Frédéric BERNON
Subject: RE : RE : [lwip-devel] [patch #5919] Create compile switchtoremoveselectcode
Date: Wed, 23 May 2007 10:40:58 +0200

To your point of view, which error code is the best ?

 
  
====================================
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 : address@hidden 
Web Site : http://www.hymatom.fr 
====================================
P Avant d'imprimer, penser à l'environnement
 


-----Message d'origine-----
De : address@hidden [mailto:address@hidden De la part de Goldschmidt Simon
Envoyé : mercredi 23 mai 2007 10:38
À : lwip-devel
Objet : RE: RE : [lwip-devel] [patch #5919] Create compile 
switchtoremoveselectcode


> I
> think it will be simple to do something like this :
> 
> if (p == NULL) {
>   memp_free(MEMP_NETBUF, buf);
>   conn->err = ERR_CLSD; /* or ERR_ABRT, ERR_RST? */
>   return NULL;
> }
> 
> Like this, the application know it have to close the socket,
> and no other operation (send/recv) can be done, because we 
> have test like "if (conn->err != ERR_OK)"...

That's a good idea!


_______________________________________________
lwip-devel mailing list
address@hidden http://lists.nongnu.org/mailman/listinfo/lwip-devel

Attachment: Frédéric BERNON.vcf
Description: Frédéric BERNON.vcf


reply via email to

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