Gets the keepalive mode of the socket.
For details on this, see set_keepalive.
a Socket.
true if keepalive is active, false otherwise.