It works well for me, but what confusing me is on ethternet trace, the close
from lwip FIN/ACK comes before rest of the data,
the receive side has not start close, half duplex mode ?
 
Med vänlig hälsning/Best Regards
Jan Wester


_________________________________ 

WHI Konsult AB

Scheelegatan 11, 112 28 Stockholm, Sweden
 <http://www.whi.se/> www.whi.se
[EMAIL PROTECTED]
+46 8 449 05 30

 

  _____  

Från: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] För Frédéric BERNON
Skickat: den 22 november 2007 18:53
Till: Mailing list for lwIP users
Ämne: RE : [lwip-users] Closing after sent


There was such problem with sequential API. To fix it, I think the idea was
to call tcp_close, check the return value, and retry (with tcp_sent &
tcp_poll) until you got tcp_close(pcb)==ERR_OK. I think that tcp_close was
modified for that. About this change, take a look to the lwip_close.patch,
at the end of http://savannah.nongnu.org/bugs/?20021 . I'm not sure that all
changes are in the patch file, but it's a good start point. You can also
check current CVS HEAD to see the "final" version.
 
 
 

====================================
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 : [EMAIL PROTECTED] 
Web Site : http://www.hymatom.fr <http://www.hymatom.fr/>  
====================================
P Avant d'imprimer, penser à l'environnement
 

-----Message d'origine-----
De : [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] De la part
de Jan Wester
Envoyé : jeudi 22 novembre 2007 18:11
À : lwip
Objet : [lwip-users] Closing after sent


Hi
Using lwip 1.1.2 with raw interface
I'm sending a file with lot of data and using callback routine tcp_sent, how
can I verify if everything has been sent
before I close. I have try to close on end of my file, but it is to fast, It
is still data in the buffers.
Shall I check the len parameter on the callback for tcp_sent or what ?  
 
Med vänlig hälsning/Best Regards
Jan Wester


_________________________________ 

WHI Konsult AB

Scheelegatan 11, 112 28 Stockholm, Sweden
 <http://www.whi.se/> www.whi.se
[EMAIL PROTECTED]
+46 8 449 05 30

 

<<image001.jpg>>

<<image002.jpg>>

_______________________________________________
lwip-users mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/lwip-users

Reply via email to