lwip-users
[Top][All Lists]
Advanced

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

Re: [lwip-users] tcp_write() keeps returning ERR_MEM indefinitely once t


From: Diecol
Subject: Re: [lwip-users] tcp_write() keeps returning ERR_MEM indefinitely once the buffer is filled
Date: Mon, 13 Dec 2010 02:57:31 -0800 (PST)

Can u do a example code?

I'm with same problem, but I dont know how to use thoses functions!

I was just doing like that:

Err = tcp_write(pcb, SndBuffer , SndBufferLen, 0);
tcp_output(pcb);

How do I procced?

thanks


Kentaro Yamamoto wrote:
> 
> Hi Kieran,
> 
> Thanks for the suggestion.  It actually turned out that executing
> tcp_write continuously in a blocking manner in my tcp_recv callback
> function was the cause.  Now I enqueue segments in a non-blocking
> manner outside tcp_recv using a tcp_sent callback function.  This
> works fine.
> 
> Thanks,
> 
> Kentaro
> 
> On Thu, Jun 3, 2010 at 4:39 AM, Kieran Mansley <address@hidden> wrote:
>> On Wed, 2010-06-02 at 21:13 -0400, Kentaro Yamamoto wrote:
>>> Hi all,
>>>
>>> I am trying to transfer a large amount of data from a microcontroller
>>> via TCP/IP.  What I do is to keep executing tcp_write() until it
>>> returns ERR_MEM.  The problem is that once tcp_write() returns
>>> ERR_MEM, it keeps returning ERR_MEM no matter how long I wait..  Am I
>>> missing something?  I am using lwip 1.3.1.
>>
>> Do you also have a call to tcp_output()?  tcp_write() will only queue
>> the packets, tcp_output() will get them going onto the wire.
>>
>> Kieran
>>
>>
>> _______________________________________________
>> lwip-users mailing list
>> address@hidden
>> http://lists.nongnu.org/mailman/listinfo/lwip-users
>>
> 
> 
> 
> -- 
> Kentaro Yamamoto
> address@hidden
> 
> _______________________________________________
> lwip-users mailing list
> address@hidden
> http://lists.nongnu.org/mailman/listinfo/lwip-users
> 
> 

-- 
View this message in context: 
http://old.nabble.com/tcp_write%28%29-keeps-returning-ERR_MEM-indefinitely-once-the-buffer-is-filled-tp28762117p30444302.html
Sent from the lwip-users mailing list archive at Nabble.com.




reply via email to

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