lwip-users
[Top][All Lists]
Advanced

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

Re: [lwip-users] tcp_write() problem from outside callbacks functions


From: Kieran Mansley
Subject: Re: [lwip-users] tcp_write() problem from outside callbacks functions
Date: Thu, 05 Apr 2007 14:24:04 +0100

On Thu, 2007-04-05 at 05:51 -0700, Yann Suisini wrote:
> In fact I didn't put the connection part in the previous mail but the
> connection is ok :)
> (the tcp_new/tcp_bind:tcp_listen/tcp_accept sequence).
> Once the connection is established the tcp_write data frome the callbacks
> are sent well .
> But the tcp_write from the main loop that you can see in the source always
> return the ERR_CON .
>  I read  2 or 3 times the rawapi.txt . But I probably missed something :(

So you can call tcp_write() on a connection from your callbacks, and
it's OK, but if you call tcp_write() from another place on the same
connection it's not OK?  I suggest that this must mean the PCB ("tcpweb"
in this case) you're passing in to tcp_write is not the same in the two
cases.

Kieran





reply via email to

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