lwip-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [lwip-users] recieve timeout for tcp RAW api


From: vincent cui
Subject: Re: [lwip-users] recieve timeout for tcp RAW api
Date: Mon, 19 Sep 2011 12:39:58 +0000

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: address@hidden
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: address@hidden [mailto:address@hidden 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 <address@hidden> 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
address@hidden
https://lists.nongnu.org/mailman/listinfo/lwip-users

reply via email to

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