公告

大中华汽车电子生态圈社区并入开发者社区- 更多资讯点击此

Tip / 登入 to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
Jimmy_Chen1
Level 2
Level 2
First like given First like received 5 replies posted

tcp client无法使用keepalive功能,调用此函数不起作用wiced_tcp_enable_keepalive(&tcp_client_socket,TCP_KEEP_ALIVE_INTERVAL, TCP_KEEP_ALIVE_PROBES,TCP_KEEP_ALIVE_TIME);

更改nx_tcp.h和nx_user.h中的NX_TCP_KEEPALIVE_INITIAL、NX_TCP_KEEPALIVE_RETRIES和NX_TCP_KEEPALIVE_RETRY值都不起作用,确定已经定义#define NX_ENABLE_TCP_KEEPALIVE

0 点赞
2 回复数
Jimmy_Chen1
Level 2
Level 2
First like given First like received 5 replies posted

43907 The TCP client cannot use the Keepalive function  

The TCP client cannot use the Keepalive function.  Wiced_tcp_enable_keepalive (&tcp_client_socket,TCP_KEEP_ALIVE_INTERVAL,  TCP_KEEP_ALIVE_PROBES,TCP_KEEP_ALIVE_TIME);  

 

Changing the value of NX_TCP_KEEPALIVE_INITIAL, NX_TCP_KEEPALIVE_RETRIES, and NX_TCP_KEEPALIVE_RETRY in nx_TCP. h and nx_user.h does not work.  Make sure #define NX_ENABLE_TCP_KEEPALIVE is defined  

0 点赞
Zhengbao_Zhang
Moderator
Moderator
Moderator
250 sign-ins First comment on KBA 10 questions asked

hello:

   从描述看,现在tcp的功能是正常的,但是keepalive调用api后无法确认是否生效,是这个意思吗?

0 点赞