lib/vlc-client/connection.rb
def connect
      @socket = TCPSocket.new(@host, @port)
      2.times { read } #Clean the reading channel
      true
    rescue Errno::ECONNREFUSED => e
      raise VLC::ConnectionRefused, "Could not connect to #{@host}:#{@port}: #{e}"
    end
# Connects to VLC RC interface on Client#host and Client#port
Connects to VLC RC interface on Client#host and Client#port
Connects to VLC RC interface on Client#host and Client#port
def connect
      @socket = TCPSocket.new(@host, @port)
      2.times { read } 
      true
    rescue Errno::ECONNREFUSED => e
      raise VLC::ConnectionRefused, "Could not connect to #{@host}:#{@port}: #{e}"
    end
def connect @socket = TCPSocket . new ( @host , @port ) 2 . times { read } true rescue Errno :: ECONNREFUSED => e raise VLC :: ConnectionRefused , "Could not connect to #{@host}:#{@port}: #{e}" end
Connects to VLC RC interface on Client#host and Client#port
Connects to VLC RC interface on Client#host and Client#port
#Clean the reading channel