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: Frédéric BERNON
Subject: RE : [lwip-users] tcp_write() problem from outside callbacks functions
Date: Thu, 5 Apr 2007 15:15:31 +0200

It seems that only possible ERR_CONN cause is you call tcp_write with a 
connection in a invalid state. Can you tell us what is the "tcpweb->state" 
value when you call tcp_write ? 

====================================
Frédéric BERNON 
HYMATOM SA 
Chef de projet informatique 
Microsoft Certified Professional 
Tél. : +33 (0)4-67-87-61-10 
Fax. : +33 (0)4-67-70-85-44 
Email : address@hidden 
Web Site : http://www.hymatom.fr 
====================================
P Avant d'imprimer, penser à l'environnement
 


-----Message d'origine-----
De : address@hidden [mailto:address@hidden De la part de Yann Suisini
Envoyé : jeudi 5 avril 2007 14:51
À : address@hidden
Objet : Re: [lwip-users] tcp_write() problem from outside callbacks functions



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 :(




Kieran Mansley wrote:
> 
> On Thu, 2007-04-05 at 09:57 +0000, Yann Suisini wrote:
>> At the first tcp_write , it's right that I'm not connected soe 
>> ERR_CON is ok . But even when I'm connected after, the ERR_CON is 
>> always returned . I really don't know what I'm doing wrong.
> 
> When do you establish the connection? I can only see calls to 
> tcp_write (), not to 
> tcp_new()/tcp_bind()/tcp_listen()/tcp_accept()/tcp_connect()
> - at least some of these are required.  I suggest having a read of
> lwip/doc/rawapi.txt
> 
> Kieran
> 
> 
> 
> _______________________________________________
> lwip-users mailing list
> address@hidden 
> http://lists.nongnu.org/mailman/listinfo/lwip-users
> 
> 

-- 
View this message in context: 
http://www.nabble.com/tcp_write%28%29-problem-from-outside-callbacks-functions-tf3530647.html#a9855171
Sent from the lwip-users mailing list archive at Nabble.com.



_______________________________________________
lwip-users mailing list
address@hidden http://lists.nongnu.org/mailman/listinfo/lwip-users

Attachment: Frédéric BERNON.vcf
Description: Frédéric BERNON.vcf


reply via email to

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