lwip-users
[Top][All Lists]
Advanced

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

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


From: Diego
Subject: [lwip-users] Re: AW: Problem of tcp_write with more then about 20 kBytes
Date: Fri, 10 Dec 2010 20:23:11 +0000 (UTC)
User-agent: Loom/3.14 (http://gmane.org/)

Diego <address@hidden> writes:

> 
> 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?
> 
> Diego
> 

well, I write like this:

int test;

test =  tcp_write(pcb, SndBuffer, SndBufferLen, 0);


and get this:
(my C# program always try 3 times)

When I send 384 bytes:
first: test = -6
Don't send

second: test = 0
Send correctly

When I send 768 bytes:
first: test = -6
Don't send

second: test = -1
Don't send

third: test = -1
Don't send









reply via email to

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