Class: Net::RTSP::RTSPGenericRequest
- Inherits:
-
HTTPGenericRequest
- Object
- HTTPGenericRequest
- Net::RTSP::RTSPGenericRequest
- Defined in:
- lib/raop/rtsp.rb
Direct Known Subclasses
Announce, Flush, GetParameter, Options, Record, SetParameter, Setup, Teardown
Instance Method Summary collapse
- #exec(sock, client_id, cseq) ⇒ Object
-
#initialize(method) ⇒ RTSPGenericRequest
constructor
A new instance of RTSPGenericRequest.
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 |