RE : RE : [patch #5919] Create compile switchtoremoveselectcode

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

RE : RE : [patch #5919] Create compile switchtoremoveselectcode

Frédéric BERNON
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 : [hidden email]
Web Site : http://www.hymatom.fr 
====================================
P Avant d'imprimer, penser à l'environnement
 


-----Message d'origine-----
De : lwip-devel-bounces+frederic.bernon=[hidden email] [mailto:lwip-devel-bounces+frederic.bernon=[hidden email]] 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
[hidden email] http://lists.nongnu.org/mailman/listinfo/lwip-devel

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

=?iso-8859-1?Q?Fr=E9d=E9ric_BERNON=2Evcf?= (810 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

RE: RE : RE : [patch #5919] Create compileswitchtoremoveselectcode

Goldschmidt Simon

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

Since this only seems to happen for TCP, ERR_CLSD seems best to me!


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