Hello, I'm having a lot of trouble sending large data using TCP. I read that multiple tcp_writes will be required so as a simple test, i've tried this in my tcp accept method:
int len = tcp_sndbuf(newpcb); while(sentSize < 8192) { err = tcp_write(newpcb, data, len, 0x01); err = tcp_output(newpcb); sentSize += len; } // end while Data is an array with 4096 elements. len evaluates to 5893. My receiving application detects only 5893 bytes sent. This is confirmed using wireshark. Running the code in the debugger shows that both tcp_write and tcp_output are called twice. Am I missing anything here? Thanks in advance, Nikeah
_______________________________________________ lwip-users mailing list lwip-users@nongnu.org https://lists.nongnu.org/mailman/listinfo/lwip-users