Class: Net::RTSP::RTSPGenericRequest

Inherits:
HTTPGenericRequest
  • Object
show all
Defined in:
lib/raop/rtsp.rb

Instance Method Summary collapse

Constructor Details

#initialize(method) ⇒ RTSPGenericRequest

Returns a new instance of RTSPGenericRequest.



94
95
96
97
98
99
100
# File 'lib/raop/rtsp.rb', line 94

def initialize(method)
  @method = method
  @body   = nil
  initialize_http_header nil

  self['User-Agent'] = 'iTunes/4.6 (Macintosh; U; PPC Mac OS X 10.3)'
end

Instance Method Details

#exec(sock, client_id, cseq) ⇒ Object



102
103
104
105
# File 'lib/raop/rtsp.rb', line 102

def exec(sock, client_id, cseq)
  write_header(sock, client_id, cseq)
  write_body(sock)
end