def connect_to_unit
      puts "Connecting to '#{@host}..."
      begin
        tcp_client  = TCPSocket.new @host, @port
        @ssl_client = OpenSSL::SSL::SSLSocket.new tcp_client, @context
        @ssl_client.connect
      rescue Exception => e
        puts "Could not connect to '#{@host}: #{e}"
      end
    end
def connect_to_unit
      puts "Connecting to '#{@host}..."
      begin
        tcp_client  = TCPSocket.new @host, @port
        @ssl_client = OpenSSL::SSL::SSLSocket.new tcp_client, @context
        @ssl_client.connect
      rescue Exception => e
        puts "Could not connect to '#{@host}: #{e}"
      end
    end
Initializes the TV class.

 @param [Object] cert SSL certificate for this client
 @param [String] host hostname or IP address of the Google TV
 @param [Number] port port number of the Google TV
 @return an instance of TV

 Connect this object to a Google TV