On Thu, 2010-11-25 at 12:50 +0100, Mariusz Dz wrote: > i spent some time looking for answers to problems i have, and as i have not > found a solution on it, i will ask here: > 1) i have http server on lwip, the transfer of single file are fine, > but when site use more files there is problem in sending data, which is > losing some data and html page dont look as it should (the data are read > from SD card)?
Which lwIP version, port, and API are you using? Can you give an example of how you send data. Are there multiple http server threads? How does your driver passed received packets up to lwIP? Is lwIP running at both ends of the connection or just at the server? If you want to debug this further I would suggest getting a packet capture with a tool like wireshark and comparing the data you see on the wire with what you expect the file to look like. wireshark will reassemble a TCP stream and show you the complete data contents of that stream, so it should be easy to compare that to the file you want to see. > 2) is there a kind of flag that i can use to check if the data where > send and conection i close? No. > 3) how send one file http by sending small packets of file(for example > 100 bytes), how get that by the host it will be treated as one file TCP does this for you. You can't control how the data stream is segmented, but the other end will reassemble it all. Kieran _______________________________________________ lwip-users mailing list [email protected] http://lists.nongnu.org/mailman/listinfo/lwip-users
