lwip-users
[Top][All Lists]
Advanced

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

[lwip-users] Sending large data problem..


From: Nikeah Q
Subject: [lwip-users] Sending large data problem..
Date: Fri, 3 Oct 2014 13:59:54 +0100

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

reply via email to

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