[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [lwip-users] FreeRTOS / lwip multiple connections
From: |
vincent cui |
Subject: |
Re: [lwip-users] FreeRTOS / lwip multiple connections |
Date: |
Fri, 2 Sep 2011 03:06:02 +0000 |
HI:
#if LWIP_TCP_KEEPALIVE
lwip_setsockopt(clientfd, SOL_SOCKET, SO_KEEPALIVE, (void
*)&mytcp_keepalive, sizeof(mytcp_keepalive));
lwip_setsockopt(clientfd, IPPROTO_TCP, TCP_KEEPIDLE, (void
*)&mytcp_keepIdle, sizeof(mytcp_keepIdle));
lwip_setsockopt(clientfd, IPPROTO_TCP, TCP_KEEPINTVL, (void
*)&mytcp_keepIntvl, sizeof(mytcp_keepIntvl));
lwip_setsockopt(clientfd, IPPROTO_TCP, TCP_KEEPCNT, (void
*)&mytcp_keepCount, sizeof(mytcp_keepCount));
#endif
Above code enable socket keepalive function ... it really works
锘?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 Kieran Mansley
Sent: 2011年9月2日 3:22
To: Mailing list for lwIP users
Subject: Re: [lwip-users] FreeRTOS / lwip multiple connections
On 31 Aug 2011, at 01:18, vincent cui wrote:
> K:
> You mean I need make accept socket to be non-blocking , right ?
No, I'm not sure why you need any of your sockets to be non-blocking.
Kieran
_______________________________________________
lwip-users mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/lwip-users
- Re: [lwip-users] FreeRTOS / lwip multiple connections, Kieran Mansley, 2011/09/01
- Re: [lwip-users] FreeRTOS / lwip multiple connections, vincent cui, 2011/09/01
- Re: [lwip-users] FreeRTOS / lwip multiple connections, vincent cui, 2011/09/01
- Re: [lwip-users] FreeRTOS / lwip multiple connections,
vincent cui <=
- [lwip-users] how lwip know internet cable is unplug, vincent cui, 2011/09/02
- Re: [lwip-users] how lwip know internet cable is unplug, ake . forslund, 2011/09/02
- Re: [lwip-users] how lwip know internet cable is unplug, vincent cui, 2011/09/02
- Re: [lwip-users] how lwip know internet cable is unplug, Simon Goldschmidt, 2011/09/02
- Re: [lwip-users] how lwip know internet cable is unplug, vincent cui, 2011/09/02
- Re: [lwip-users] how lwip know internet cable is unplug, vincent cui, 2011/09/02
- Re: [lwip-users] how lwip know internet cable is unplug, ake . forslund, 2011/09/02
- Re: [lwip-users] how lwip know internet cable is unplug, Simon Goldschmidt, 2011/09/02
- Re: [lwip-users] how lwip know internet cable is unplug, ake . forslund, 2011/09/02
- Re: [lwip-users] how lwip know internet cable is unplug, Simon Goldschmidt, 2011/09/02