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.