lib/rtsp/response.rb
# Pulls out the RTSP version, response code, and response message (AKA the
# status line info) into instance variables.
#
# @param [String] line The String containing the status line info.
Pulls out the RTSP version, response code, and response message (AKA the
status line info) into instance variables.
Pulls out the RTSP version response code and response message ( AKA the status line info ) into instance variables .
def extract_status_line(line)
      line =~ /(RTSP|HTTP)\/(\d\.\d) (\d\d\d) ([^\r\n]+)/
      @rtsp_version = $2
      @code         = $3.to_i
      @message      = $4
      if @rtsp_version.nil?
        raise RTSP::Error, "Status line corrupted: #{line}"
      end
    end
def extract_status_line ( line ) line =~ / (RTSP|HTTP) \/ ( \d \. \d ) ( \d \d \d ) ([^ \r \n ]+) / @rtsp_version = $2 @code = $3 . to_i @message = $4 if @rtsp_version . nil? raise RTSP :: Error , "Status line corrupted: #{line}" end end
Pulls out the RTSP version, response code, and response message (AKA the
status line info) into instance variables.
Pulls out the RTSP version response code and response message ( AKA the status line info ) into instance variables .
line
line The String containing the status line info.
line The String containing the status line info .