Hi,
I'm currently building a Webserver. I started from the httpserver_echoback "Hello world" program.
Now I encounter a problem that keeps me puzzled. My small html files have no trouble being send in one TCP packet, and are therefore received flawlessly by various by the http clients (tested with chrome, firefox, android ...) .
However the larger files eg. bitmaps, jpegs aren't received correctly. I'm quite sure that I am to blame :-(
I know the larger files have to be fragmented before they are send trough the interface, but I was kinda hoping the EthernetInterface library was taking care of that for me since I saw a member function send and send_all. Seems this is not the case.
Now I'm wondering ...
What is the difference between send and send_all member functions?
Is there some cool newbie enabling "Hello World" example on how to handle the fragmentation?
How do I know my data is being acknowledged?
Thanks in advance.
KK
Hi,
I'm currently building a Webserver. I started from the httpserver_echoback "Hello world" program.
Now I encounter a problem that keeps me puzzled. My small html files have no trouble being send in one TCP packet, and are therefore received flawlessly by various by the http clients (tested with chrome, firefox, android ...) .
However the larger files eg. bitmaps, jpegs aren't received correctly. I'm quite sure that I am to blame :-(
I know the larger files have to be fragmented before they are send trough the interface, but I was kinda hoping the EthernetInterface library was taking care of that for me since I saw a member function send and send_all. Seems this is not the case.
Now I'm wondering ... What is the difference between send and send_all member functions? Is there some cool newbie enabling "Hello World" example on how to handle the fragmentation? How do I know my data is being acknowledged?
Thanks in advance.
KK