[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Re: [lwip-users] Problem with multi file sending http server
From: |
Kieran Mansley |
Subject: |
Re: Re: [lwip-users] Problem with multi file sending http server |
Date: |
Fri, 26 Nov 2010 08:41:38 +0000 |
On Thu, 2010-11-25 at 22:45 +0100, Mariusz Dz wrote:
> I hope i understand order of calls, now i have got order like this:
>
> //some operation on data
> //close file etc.
>
> pbuf_free(p);
> hs->file = pointer_on_data;
> hs->left = data_length
> tcp_recved(pcb, p->tot_len);
> send_data(pcb, hs);
> tcp_sent(pcb, http_sent);
> tcp_output(pcb);
Try this instead:
hs->file = pointer_on_data;
hs->left = data_length
tcp_sent(pcb, http_sent);
send_data(pcb, hs);
tcp_output(pcb);
tcp_recved(pcb, p->tot_len);
pbuf_free(p);
Kieran
- [lwip-users] Problem with multi file sending http server, Mariusz Dz, 2010/11/25
- Re: Re: [lwip-users] Problem with multi file sending http server, Mariusz Dz, 2010/11/25
- Re: Re: [lwip-users] Problem with multi file sending http server, Mariusz Dz, 2010/11/25
- Re: Re: [lwip-users] Problem with multi file sending http server, Mariusz Dz, 2010/11/25
- Re: Re: [lwip-users] Problem with multi file sending http server, Mariusz Dz, 2010/11/26
- Re: Re: [lwip-users] Problem with multi file sending http server, Mariusz Dz, 2010/11/26
- Re: Re: [lwip-users] Problem with multi file sending http server, Mariusz Dz, 2010/11/26