想使用使用TCP Keep-alive加上TCP_USER_TIMEOUT机制,解决通信对端异常断网、掉电的情况下,连接被长期挂起的问题了,但编译出错,Linux内核版本为4.4。
error: 'TCP_USER_TIMEOUT' was not declared in this scope
想使用使用TCP Keep-alive加上TCP_USER_TIMEOUT机制,解决通信对端异常断网、掉电的情况下,连接被长期挂起的问题了,但编译出错,Linux内核版本为4.4。
error: 'TCP_USER_TIMEOUT' was not declared in this scope