If you work through the example I mention above you will see that connections are established with the following syntax, as an example:
Connection newConnection = TCPConnection.GetConnection(new ConnectionInfo(ServerIPAddress, ServerPort));
Keep-alive is enabled by default for all TCP connections. The behavior can be modified via the property Connection.ConnectionKeepAlivePollIntervalSecs
Regards,
Marc