def open_connection
      @connection = TCPSocket.new(server, port)
      @socket = OpenSSL::SSL::SSLSocket.new(@connection) if @connection
      
      @socket.sync_close = true
      @socket.connect

      get_frame
    end
def open_connection
      @connection = TCPSocket.new(server, port)
      @socket = OpenSSL::SSL::SSLSocket.new(@connection) if @connection
      
      @socket.sync_close = true
      @socket.connect

      get_frame
    end
Establishes the connection to the server. If the connection is
 established, then this method will call get_frame and return
 the EPP <tt><greeting></tt> frame which is sent by the
 server upon connection.