lwip-users
[Top][All Lists]
Advanced

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

Re: [lwip-users] LwIP RAW - Simultaneous (full-duplex) communication


From: Nenad Pekez
Subject: Re: [lwip-users] LwIP RAW - Simultaneous (full-duplex) communication
Date: Fri, 6 Jul 2018 16:04:16 +0200
User-agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.8.0

When I added copying of pbuf data to application buffer inside TCP receive callback, one interesting thing happened - TX side got completely unresponsive!

I have been copying it like this:
if(p->tot_len < BUF_SIZE) {
    if (pbuf_copy_partial(p, (void*)buf, p->tot_len, 0) != p->tot_len) {
            xil_printf("total copied != p->tot_len\n");
        }
    }

I guess that using pbuf_copy_partial is a valid way to do the copying to application buffer, isn't it? This seems like some memory corruption.





reply via email to

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