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 switch toremoveselect


From: Goldschmidt Simon
Subject: RE: RE : [lwip-devel] [patch #5919] Create compile switch toremoveselectcode
Date: Wed, 23 May 2007 10:38:07 +0200

> 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!




reply via email to

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