Simon:

I add following a piece of code in loop. It also can make tcp timeout happen ..
#if LWIP_TCP
  /* TCP periodic process every 250 ms */
  if (localtime - TCPTimer >= TCP_TMR_INTERVAL)
  {
    TCPTimer =  localtime;
    tcp_tmr();
  }
#endif

I trace the tcp_tmr() function, it will remove tcp with TCP_WAIT status from 
list... 
Does it make sense ?

锘?Vincent Cui
Sr.Firmware Engineer
Mobile: +8613482482211
Tel: +86 21 34612525x6104
Fax: +86 21 34619770
E-Mail: [email protected]
Shanghai EnLogic Electric Technology Co., Ltd.
Address: 1104-1106, Building A, No.391, Guiping Road, Xuhui District, Shanghai, 
200233
http://www.enlogic.com
-----Original Message-----
From: [email protected] 
[mailto:[email protected]] On Behalf Of 
Simon Goldschmidt
Sent: 2011年9月19日 17:15
To: Mailing list for lwIP users
Subject: Re: [lwip-users] recieve timeout for tcp RAW api

vincent cui <[email protected]> wrote:
> Socket api has function to set socket attribute with receive time out...
> Is there raw api to do this ?

No, the socket code uses netconn timeout. In the raw API you have to implement 
this on your own by either using the poll callback (tcp) or implementing a 
timeout on your own (e.g. using sys_timeout).

Simon
-- 
Empfehlen Sie GMX DSL Ihren Freunden und Bekannten und wir
belohnen Sie mit bis zu 50,- Euro! https://freundschaftswerbung.gmx.de

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

Reply via email to