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.

Use SO_KEEPALIVE options.

Hi all. I use ndk_1_91 for creation TCP server. My server must know, that join its client is powered down. For this I plan to use so_keepalive options socket, but when I set so_keepalive in setsockopt function, server does not determine that client is powered down. Someone who has used so_keepalive options? Where in NDK I must set options for use so_keepalive?