lwip-users
[Top][All Lists]
Advanced

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

Re: [lwip-users] Re: AW: Problem of tcp_write with more then about 20 kB


From: Kieran Mansley
Subject: Re: [lwip-users] Re: AW: Problem of tcp_write with more then about 20 kBytes
Date: Fri, 10 Dec 2010 20:19:59 +0000

On 10 Dec 2010, at 20:16, Diego wrote:

> Kieran Mansley <address@hidden> writes:
> 
>> 
>> 
>> On 10 Dec 2010, at 19:52, Diego wrote:
>>> 
>>>          tcp_write(pcb, SndBuffer, SndBufferLen, 0);
>>>          tcp_output(pcb);
>> 
>> I would check what return codes you're getting from these.  If there's a
> problem they're likely trying to
>> tell you what it is but you're ignoring them!
>> 
>> Kieran
> 
> How can I check this?

rc = tcp_write();
if(rc != 0)
  printf("tcp_write error %d",rc);

Have a read of doc/rawapi.txt or look at the lwIP wiki for some detail of what 
error numbers to expect and what they might mean.

Kieran


reply via email to

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