[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lwip-users] Re: [lwip] some questions
From: |
Kieran Mansley |
Subject: |
[lwip-users] Re: [lwip] some questions |
Date: |
Thu, 09 Jan 2003 01:26:21 -0000 |
On Fri, 8 Feb 2002, Recker, John wrote:
> =====================================
>
>
> 2) what is the purpose of the netconn_delete(conn)
> as the last line of the lwip_socket() function?
>
>
> =====================================
This line is only executed if the lwip_socket() function couldn't find a
location in the sockets[] array to store the new socket and allow it to
keep track of it in future. (ie. It has reached the maximum number
(NUM_SOCKETS) of sockets allowed). It therefore deletes the netconn that
it had created so as not to leak memory, and returns an error.
Kieran
[This message was sent through the lwip discussion list.]