[Top][All Lists]
[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 13:18:15 +0000 |
Simon:
I know trace the code, it is really does what you said, it use the poll
callback to implement this ...
By the way , the web server written with RAW API is faster and stabler than the
one with SOCKET..
That 's why httpd in contrib. package you write is with RAW API too . isn't it ?
锘?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