I'm writing a JNI library for a Java application that needs to set the values of the TCP Keep Alive option. (It sets the values for Keep Alive Timeout and Interval) For the most part, I think I have it working, as I can set the Keep Alive on/off from Java and query it with correct result in the C++ code. I can set the other two options, and there are no errors, but I'm not sure how to query for these option values. It would be useful to query these values to prove quickly that they've been set.
Any ideas?
Only constraints are that I'm using C++, Winsock and the target OS is Windows XP or higher.