lwip-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[lwip-users] Send large file stored in the memory


From: Louis Filasky
Subject: [lwip-users] Send large file stored in the memory
Date: Sun, 24 Jun 2007 16:18:05 +0200

Hi,

I'm still new to LwIP and while trying to make the basic webserver working, I happenned to use an example that did not incoroporate any pbuf_chain / pbuf_dechain.
Now that it works and that I explored a little bit more thoroughly LwIP, I noticed their use in the basic echo server provided by Xilinx for EDK for the Virtex II Pro PowerPC.

I'm about to change my code accordingly on the template of the echo server that I could not make work before, still pbuf_chain pbuf_dechain are usefull when it is useful when
you receive a packet you chain it to treat it and dechain it when invoking the tcp_write function.

But what about a large file stored in the Virtex II external memory? Do we have to chunk it so that we put payload equivalent in each pbuf and then chains them? Or is there
a function already doing so?
Because we tried to send lots of data using tcp_write by sending characters and the maximum we could do was around 7000, then the server crashes.

I've also heard about tcp_output, what is it exactly?

Thanks for you answers,

Antoine.


Besoin d'un e-mail ? Créez gratuitement un compte Windows Live Hotmail et bénéficiez d'un filtre antiphishing gratuit ! Windows Live Hotmail
reply via email to

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