lib/vlc-client/connection.rb
def read
      #TODO: Timeouts
      raw_data = @socket.gets.chomp
      if (data = process_data(raw_data))
        data[1]
      else
        raise ProtocolError, "could not interpret the playload: #{raw_data}"
      end
    end
# Reads data from the TCP server
#
# @return [String] the data
#
Reads data from the TCP server
Reads data from the TCP server
def read
      raw_data = @socket.gets.chomp
      if (data = process_data(raw_data))
        data[1]
      else
        raise ProtocolError, "could not interpret the playload: #{raw_data}"
      end
    end
def read raw_data = @socket . gets . chomp if ( data = process_data ( raw_data ) ) data [ 1 ] else raise ProtocolError , "could not interpret the playload: #{raw_data}" end end
Reads data from the TCP server
Reads data from the TCP server
#TODO: Timeouts
None
String