a little example that creates a socket and enables keepalive.