lib/dvbstreamer/client.rb
## Method to parse a line returned by the server
Method to parse a line returned by the server
Method to parse a line returned by the server
def parse_line(line)
			matches = Regexp.new('^DVBStreamer/([\d\.]+)/(\d+)\s(.*)\n$').match(line);
			if matches.nil?
				@content.push(line.chomp)
			else
				@version = matches[1]
				@code = matches[2].to_i
				@status = matches[3]
			end
		end
def parse_line ( line ) matches = Regexp . new ( '^DVBStreamer/([\d\.]+)/(\d+)\s(.*)\n$' ) . match ( line ) ; if matches . nil? @content . push ( line . chomp ) else @version = matches [ 1 ] @code = matches [ 2 ] . to_i @status = matches [ 3 ] end end
Method to parse a line returned by the server
Method to parse a line returned by the server
## Not the end of the response yet, just store the line ## End of the reponse
line
<not_specific>