|
From: | Noam Weissman |
Subject: | Re: [lwip-users] LW IP - TCP instantaneous data transmission |
Date: | Wed, 7 Sep 2016 11:39:52 +0000 |
Hi Anand, I am using a similar mechanism and had no problem sending even 100k and more. For example I created an XML configuration file and sent it over HTTP in parts, had no problems… BR, Noam. From: lwip-users [mailto:lwip-users-bounces+address@hidden
On Behalf Of anand arjunan Thanks Noam, I got what you are saying. I could not work on this yet. I will try as you suggested. Regards Anand On Thu, Sep 1, 2016 at 12:26 AM, Noam Weissman <address@hidden> wrote: Hi Anand, I do not know what HTTP server you use but what I sent earlier is just a skeleton or pseudo code for you to get an idea on how to send a large buffer in chunks.
If you cannot send the hole buffer (make sense) and you are limited with memory you must wait
for the TCP stack to free the buffer it used to send your data before you can send more. Here comes the sent call back in hand... it synchronizes sending and freeing of memory. Do you understand that ? Try and follow the code I wrote in an earlier reply. Good luck, Noam. From: lwip-users <lwip-users-bounces+noam=address@hidden>
on behalf of address@hidden <address@hidden> anand arjunan wrote:
|
[Prev in Thread] | Current Thread | [Next in Thread] |