This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
NDK中socket编程API中的getsockopt()函数的SOL_SOCKET层下有SO_KEEPALIVE这一项,那应该可以启用网络检测心跳包功能,可是却没有配套的修改其相关的三个参数(即keep_idle time、probe interval time、probe timeout)的函数,在此求教NDK中修改这三个参数的方法!