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
        www.whi.se <http://www.whi.se/> 
        [EMAIL PROTECTED]
        +46 8 449 05 30

         

<<image001.jpg>>

<<image002.jpg>>

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:[EMAIL PROTECTED]
REV:20020404T083210Z
END:VCARD
_______________________________________________
lwip-users mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/lwip-users

Reply via email to