[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [lwip-users] RE : RE : tcp_write() problem from outside callbacksfun
From: |
Yann Suisini |
Subject: |
Re: [lwip-users] RE : RE : tcp_write() problem from outside callbacksfunctions |
Date: |
Thu, 5 Apr 2007 11:23:32 -0700 (PDT) |
Merci d'avoir pointé avec Kieran ce problème. C'est effectivement a ce niveau
que j'ai fais une mauvaise interprétation du fonctionnement !
Frédéric BERNON wrote:
>
> Are you sure you don't try to write on the listen pcb, and not on the
> "accepted" pcb ? Do you have read "18.2 Directly interfacing the stack" in
> the old "Design and Implementation of the lwIP TCP/IP Stack" pdf file?
>
> ====================================
> 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 15:46
> À : address@hidden
> Objet : Re: [lwip-users] RE : tcp_write() problem from outside
> callbacksfunctions
>
>
>
> Hello ,
>
> I had just get the tcp_pcb state just before the tcp_write in my main
> loop and in the callback function. In the main : state=1 (LISTEN) in the
> callback : state=4 (ESTABLISHED)
>
> It seems more and more strange to me ...
>
>
>
>
>
> Frédéric BERNON wrote:
>>
>> 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
>>
>> BEGIN:VCARD
>> VERSION:2.1
>> N:BERNON;Frédéric;;M.
>> FN:Frédéric BERNON
>> ORG:HYMATOM SA;Recherche et Développement
>> TITLE:Chef de projet informatique TEL;WORK;VOICE:04-67-87-61-10
>> TEL;WORK;FAX:04-67-70-85-44
>> ADR;WORK;ENCODING=QUOTED-PRINTABLE:;23;Zone Industrielle=0D=0A175 rue de
>> Massacan;VENDARGUES;;34740;FRANCE;
>> LABEL;WORK;ENCODING=QUOTED-PRINTABLE:23=0D=0AZone Industrielle=0D=0A175
>> rue de Massacan=0D=0AVENDARGUES 34740=0D=
>> =0AFrance
>> URL;WORK:http://www.hymatom.fr
>> ROLE:Chef de projet informatique
>> EMAIL;PREF;INTERNET:address@hidden
>> REV:20020404T083210Z
>> END:VCARD
>>
>> _______________________________________________
>> 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#a9856072
> 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
>
> BEGIN:VCARD
> VERSION:2.1
> N:BERNON;Frédéric;;M.
> FN:Frédéric BERNON
> ORG:HYMATOM SA;Recherche et Développement
> TITLE:Chef de projet informatique
> TEL;WORK;VOICE:04-67-87-61-10
> TEL;WORK;FAX:04-67-70-85-44
> ADR;WORK;ENCODING=QUOTED-PRINTABLE:;23;Zone Industrielle=0D=0A175 rue de
> Massacan;VENDARGUES;;34740;FRANCE;
> LABEL;WORK;ENCODING=QUOTED-PRINTABLE:23=0D=0AZone Industrielle=0D=0A175
> rue de Massacan=0D=0AVENDARGUES 34740=0D=
> =0AFrance
> URL;WORK:http://www.hymatom.fr
> ROLE:Chef de projet informatique
> EMAIL;PREF;INTERNET:address@hidden
> REV:20020404T083210Z
> END:VCARD
>
> _______________________________________________
> lwip-users mailing list
> address@hidden
> http://lists.nongnu.org/mailman/listinfo/lwip-users
>
--
View this message in context:
http://www.nabble.com/RE-%3A-RE-%3A-tcp_write%28%29-problem-from-outside-callbacksfunctions-tf3531731.html#a9860353
Sent from the lwip-users mailing list archive at Nabble.com.