lib/rtsp/client.rb
def compare_session_number server_session
      if @session[:session_id] != server_session
        message = "Session number mismatch.  Client: #{@session[:session_id]}, Server: #{server_session}"
        raise RTSP::Error, message
      end
    end
# Compares the session number passed in to the current client session
# number ( +@session+ ) and raises if they're not equal.  If that's the case,
# the server responded to a different request.
#
# @todo Remove this--it's not used.
# @param [Fixnum] server_session Session number returned by the server.
# @raise [RTSP::Error] If the server returns a Session value that's different
#   from what the client sent.
Compares the session number passed in to the current client session
number ( +@session+ ) and raises if they're not equal.  If that's the case,
the server responded to a different request.
Compares the session number passed in to the current client session number ( + @session + ) and raises if they ' re not equal . If that ' s the case the server responded to a different request .
def compare_session_number server_session
      if @session[:session_id] != server_session
        message = "Session number mismatch.  Client: #{@session[:session_id]}, Server: #{server_session}"
        raise RTSP::Error, message
      end
    end
def compare_session_number server_session if @session [ :session_id ] != server_session message = "Session number mismatch.  Client: #{@session[:session_id]}, Server: #{server_session}" raise RTSP :: Error , message end end
Compares the session number passed in to the current client session
number ( +@session+ ) and raises if they're not equal.
Compares the session number passed in to the current client session number ( + @session + ) and raises if they ' re not equal .
[RTSP::Error] If the server returns a Session value that's different from what the client sent.
[ RTSP :: Error ] If the server returns a Session value that ' s different from what the client sent .
server_session
server_session Session number returned by the server.
server_session Session number returned by the server .
todo
Remove this--it's not used.
Remove this -- it ' s not used .