daapclient 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (81) hide show
  1. data/README +63 -0
  2. data/doc/classes/Net/DAAP/Client.html +251 -0
  3. data/doc/classes/Net/DAAP/Client.src/M000003.html +20 -0
  4. data/doc/classes/Net/DAAP/Client.src/M000004.html +25 -0
  5. data/doc/classes/Net/DAAP/Client.src/M000005.html +33 -0
  6. data/doc/classes/Net/DAAP/Client.src/M000006.html +37 -0
  7. data/doc/classes/Net/DAAP/Client.src/M000007.html +20 -0
  8. data/doc/classes/Net/DAAP/Client.src/M000008.html +24 -0
  9. data/doc/classes/Net/DAAP/DAAPv2.html +165 -0
  10. data/doc/classes/Net/DAAP/DAAPv2.src/M000015.html +30 -0
  11. data/doc/classes/Net/DAAP/DAAPv2.src/M000016.html +21 -0
  12. data/doc/classes/Net/DAAP/DAAPv3.html +178 -0
  13. data/doc/classes/Net/DAAP/DAAPv3.src/M000017.html +30 -0
  14. data/doc/classes/Net/DAAP/DAAPv3.src/M000018.html +23 -0
  15. data/doc/classes/Net/DAAP/DMAP.html +189 -0
  16. data/doc/classes/Net/DAAP/DMAP.src/M000012.html +20 -0
  17. data/doc/classes/Net/DAAP/DMAP.src/M000013.html +18 -0
  18. data/doc/classes/Net/DAAP/DMAP.src/M000014.html +24 -0
  19. data/doc/classes/Net/DAAP/Database.html +224 -0
  20. data/doc/classes/Net/DAAP/Database.src/M000009.html +25 -0
  21. data/doc/classes/Net/DAAP/Database.src/M000010.html +21 -0
  22. data/doc/classes/Net/DAAP/Database.src/M000011.html +35 -0
  23. data/doc/classes/Net/DAAP/Playlist.html +192 -0
  24. data/doc/classes/Net/DAAP/Playlist.src/M000001.html +24 -0
  25. data/doc/classes/Net/DAAP/Playlist.src/M000002.html +30 -0
  26. data/doc/classes/Net/DAAP/Song.html +208 -0
  27. data/doc/classes/Net/DAAP/Song.src/M000019.html +27 -0
  28. data/doc/classes/Net/DAAP/Song.src/M000020.html +19 -0
  29. data/doc/classes/Net/DAAP.html +168 -0
  30. data/doc/classes/Net.html +127 -0
  31. data/doc/created.rid +1 -0
  32. data/doc/files/CHANGELOG.html +110 -0
  33. data/doc/files/LICENSE.html +531 -0
  34. data/doc/files/README.html +176 -0
  35. data/doc/files/lib/net/daap/database_rb.html +101 -0
  36. data/doc/files/lib/net/daap/dmap_rb.html +101 -0
  37. data/doc/files/lib/net/daap/playlist_rb.html +101 -0
  38. data/doc/files/lib/net/daap/song_rb.html +101 -0
  39. data/doc/files/lib/net/daap_rb.html +114 -0
  40. data/doc/fr_class_index.html +35 -0
  41. data/doc/fr_file_index.html +34 -0
  42. data/doc/fr_method_index.html +46 -0
  43. data/doc/index.html +24 -0
  44. data/doc/rdoc-style.css +208 -0
  45. data/lib/CVS/Entries +1 -0
  46. data/lib/CVS/Repository +1 -0
  47. data/lib/CVS/Root +1 -0
  48. data/lib/net/CVS/Entries +2 -0
  49. data/lib/net/CVS/Repository +1 -0
  50. data/lib/net/CVS/Root +1 -0
  51. data/lib/net/daap/CVS/Entries +5 -0
  52. data/lib/net/daap/CVS/Repository +1 -0
  53. data/lib/net/daap/CVS/Root +1 -0
  54. data/lib/net/daap/database.rb +69 -0
  55. data/lib/net/daap/dmap.rb +575 -0
  56. data/lib/net/daap/playlist.rb +36 -0
  57. data/lib/net/daap/song.rb +27 -0
  58. data/lib/net/daap.rb +234 -0
  59. data/test/CVS/Entries +4 -0
  60. data/test/CVS/Repository +1 -0
  61. data/test/CVS/Root +1 -0
  62. data/test/data/CVS/Entries +1 -0
  63. data/test/data/CVS/Repository +1 -0
  64. data/test/data/CVS/Root +1 -0
  65. data/test/data/mt-daapd/079aca35773150da9fd98db10c7fd0c0.txt +0 -0
  66. data/test/data/mt-daapd/2972f65088b42a06b5d3ca089d71791d.txt +0 -0
  67. data/test/data/mt-daapd/440c2217e6207c54c317c296f71f9769.txt +0 -0
  68. data/test/data/mt-daapd/4d1ce9f941cbd823ed06f1f1baa5a3b9.txt +0 -0
  69. data/test/data/mt-daapd/7bded8b540fd082f102d25e181b47bc4.txt +0 -0
  70. data/test/data/mt-daapd/CVS/Entries +11 -0
  71. data/test/data/mt-daapd/CVS/Repository +1 -0
  72. data/test/data/mt-daapd/CVS/Root +1 -0
  73. data/test/data/mt-daapd/b3e894b87111bdba88e4765967f4b45a.txt +0 -0
  74. data/test/data/mt-daapd/d56b699830e77ba53855679cb1d252da.txt +0 -0
  75. data/test/data/mt-daapd/e61ce3062cb76770658896b778ad06cd.txt +0 -0
  76. data/test/data/mt-daapd/e9a8e709c2116651157182f130207048.txt +0 -0
  77. data/test/data/mt-daapd/f9073959a0afacebfab7e3bf19c2714a.txt +0 -0
  78. data/test/tc_client.rb +148 -0
  79. data/test/tc_protocol.rb +49 -0
  80. data/test/ts_daap.rb +6 -0
  81. metadata +148 -0
@@ -0,0 +1,30 @@
1
+ <?xml version="1.0" encoding="iso-8859-1"?>
2
+ <!DOCTYPE html
3
+ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
4
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5
+
6
+ <html>
7
+ <head>
8
+ <title>new (Net::DAAP::DAAPv2)</title>
9
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
+ <link rel="stylesheet" href="../../../.././rdoc-style.css" type="text/css" media="screen" />
11
+ </head>
12
+ <body class="standalone-code">
13
+ <pre><span class="ruby-comment cmt"># File lib/net/daap.rb, line 180</span>
14
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>
15
+ <span class="ruby-ivar">@seeds</span> = []
16
+ (<span class="ruby-value">0</span><span class="ruby-operator">..</span><span class="ruby-value">255</span>).<span class="ruby-identifier">each</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">i</span><span class="ruby-operator">|</span>
17
+ <span class="ruby-identifier">string</span> = <span class="ruby-constant">String</span>.<span class="ruby-identifier">new</span>
18
+ <span class="ruby-identifier">string</span> <span class="ruby-operator">+=</span> (<span class="ruby-identifier">i</span> <span class="ruby-operator">&amp;</span> <span class="ruby-value">0x80</span>) <span class="ruby-operator">!=</span> <span class="ruby-value">0</span> <span class="ruby-operator">?</span> <span class="ruby-value str">&quot;Accept-Language&quot;</span> <span class="ruby-operator">:</span> <span class="ruby-value str">&quot;user-agent&quot;</span>
19
+ <span class="ruby-identifier">string</span> <span class="ruby-operator">+=</span> (<span class="ruby-identifier">i</span> <span class="ruby-operator">&amp;</span> <span class="ruby-value">0x40</span>) <span class="ruby-operator">!=</span> <span class="ruby-value">0</span> <span class="ruby-operator">?</span> <span class="ruby-value str">&quot;max-age&quot;</span> <span class="ruby-operator">:</span> <span class="ruby-value str">&quot;Authorization&quot;</span>
20
+ <span class="ruby-identifier">string</span> <span class="ruby-operator">+=</span> (<span class="ruby-identifier">i</span> <span class="ruby-operator">&amp;</span> <span class="ruby-value">0x20</span>) <span class="ruby-operator">!=</span> <span class="ruby-value">0</span> <span class="ruby-operator">?</span> <span class="ruby-value str">&quot;Client-DAAP-Version&quot;</span> <span class="ruby-operator">:</span> <span class="ruby-value str">&quot;Accept-Encoding&quot;</span>
21
+ <span class="ruby-identifier">string</span> <span class="ruby-operator">+=</span> (<span class="ruby-identifier">i</span> <span class="ruby-operator">&amp;</span> <span class="ruby-value">0x10</span>) <span class="ruby-operator">!=</span> <span class="ruby-value">0</span> <span class="ruby-operator">?</span> <span class="ruby-value str">&quot;daap.protocolversion&quot;</span><span class="ruby-operator">:</span> <span class="ruby-value str">&quot;daap.songartist&quot;</span>
22
+ <span class="ruby-identifier">string</span> <span class="ruby-operator">+=</span> (<span class="ruby-identifier">i</span> <span class="ruby-operator">&amp;</span> <span class="ruby-value">0x08</span>) <span class="ruby-operator">!=</span> <span class="ruby-value">0</span> <span class="ruby-operator">?</span> <span class="ruby-value str">&quot;daap.songcomposer&quot;</span> <span class="ruby-operator">:</span> <span class="ruby-value str">&quot;daap.songdatemodified&quot;</span>
23
+ <span class="ruby-identifier">string</span> <span class="ruby-operator">+=</span> (<span class="ruby-identifier">i</span> <span class="ruby-operator">&amp;</span> <span class="ruby-value">0x04</span>) <span class="ruby-operator">!=</span> <span class="ruby-value">0</span> <span class="ruby-operator">?</span> <span class="ruby-value str">&quot;daap.songdiscnumber&quot;</span> <span class="ruby-operator">:</span> <span class="ruby-value str">&quot;daap.songdisabled&quot;</span>
24
+ <span class="ruby-identifier">string</span> <span class="ruby-operator">+=</span> (<span class="ruby-identifier">i</span> <span class="ruby-operator">&amp;</span> <span class="ruby-value">0x02</span>) <span class="ruby-operator">!=</span> <span class="ruby-value">0</span> <span class="ruby-operator">?</span> <span class="ruby-value str">&quot;playlist-item-spec&quot;</span> <span class="ruby-operator">:</span> <span class="ruby-value str">&quot;revision-number&quot;</span>
25
+ <span class="ruby-identifier">string</span> <span class="ruby-operator">+=</span> (<span class="ruby-identifier">i</span> <span class="ruby-operator">&amp;</span> <span class="ruby-value">0x01</span>) <span class="ruby-operator">!=</span> <span class="ruby-value">0</span> <span class="ruby-operator">?</span> <span class="ruby-value str">&quot;session-id&quot;</span> <span class="ruby-operator">:</span> <span class="ruby-value str">&quot;content-codes&quot;</span>
26
+ <span class="ruby-ivar">@seeds</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-constant">Digest</span><span class="ruby-operator">::</span><span class="ruby-constant">MD5</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">string</span>).<span class="ruby-identifier">to_s</span>.<span class="ruby-identifier">upcase</span>
27
+ <span class="ruby-keyword kw">end</span>
28
+ <span class="ruby-keyword kw">end</span></pre>
29
+ </body>
30
+ </html>
@@ -0,0 +1,21 @@
1
+ <?xml version="1.0" encoding="iso-8859-1"?>
2
+ <!DOCTYPE html
3
+ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
4
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5
+
6
+ <html>
7
+ <head>
8
+ <title>validate (Net::DAAP::DAAPv2)</title>
9
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
+ <link rel="stylesheet" href="../../../.././rdoc-style.css" type="text/css" media="screen" />
11
+ </head>
12
+ <body class="standalone-code">
13
+ <pre><span class="ruby-comment cmt"># File lib/net/daap.rb, line 196</span>
14
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">validate</span>(<span class="ruby-identifier">path</span>, <span class="ruby-identifier">select</span> = <span class="ruby-value">2</span>, <span class="ruby-identifier">req_id</span> = <span class="ruby-keyword kw">nil</span>)
15
+ <span class="ruby-identifier">string</span> = <span class="ruby-identifier">path</span>.<span class="ruby-identifier">dup</span>
16
+ <span class="ruby-identifier">string</span> <span class="ruby-operator">+=</span> <span class="ruby-value str">&quot;Copyright 2003 Apple Computer, Inc.&quot;</span>
17
+ <span class="ruby-identifier">string</span> <span class="ruby-operator">+=</span> <span class="ruby-ivar">@seeds</span>[<span class="ruby-identifier">select</span>]
18
+ <span class="ruby-keyword kw">return</span> <span class="ruby-constant">Digest</span><span class="ruby-operator">::</span><span class="ruby-constant">MD5</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">string</span>).<span class="ruby-identifier">to_s</span>.<span class="ruby-identifier">upcase</span>
19
+ <span class="ruby-keyword kw">end</span></pre>
20
+ </body>
21
+ </html>
@@ -0,0 +1,178 @@
1
+ <?xml version="1.0" encoding="iso-8859-1"?>
2
+ <!DOCTYPE html
3
+ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
4
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5
+
6
+ <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
7
+ <head>
8
+ <title>Class: Net::DAAP::DAAPv3</title>
9
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
+ <meta http-equiv="Content-Script-Type" content="text/javascript" />
11
+ <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
12
+ <script type="text/javascript">
13
+ // <![CDATA[
14
+
15
+ function popupCode( url ) {
16
+ window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
17
+ }
18
+
19
+ function toggleCode( id ) {
20
+ if ( document.getElementById )
21
+ elem = document.getElementById( id );
22
+ else if ( document.all )
23
+ elem = eval( "document.all." + id );
24
+ else
25
+ return false;
26
+
27
+ elemStyle = elem.style;
28
+
29
+ if ( elemStyle.display != "block" ) {
30
+ elemStyle.display = "block"
31
+ } else {
32
+ elemStyle.display = "none"
33
+ }
34
+
35
+ return true;
36
+ }
37
+
38
+ // Make codeblocks hidden by default
39
+ document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" )
40
+
41
+ // ]]>
42
+ </script>
43
+
44
+ </head>
45
+ <body>
46
+
47
+
48
+
49
+ <div id="classHeader">
50
+ <table class="header-table">
51
+ <tr class="top-aligned-row">
52
+ <td><strong>Class</strong></td>
53
+ <td class="class-name-in-header">Net::DAAP::DAAPv3</td>
54
+ </tr>
55
+ <tr class="top-aligned-row">
56
+ <td><strong>In:</strong></td>
57
+ <td>
58
+ <a href="../../../files/lib/net/daap_rb.html">
59
+ lib/net/daap.rb
60
+ </a>
61
+ <br />
62
+ </td>
63
+ </tr>
64
+
65
+ <tr class="top-aligned-row">
66
+ <td><strong>Parent:</strong></td>
67
+ <td>
68
+ Object
69
+ </td>
70
+ </tr>
71
+ </table>
72
+ </div>
73
+ <!-- banner header -->
74
+
75
+ <div id="bodyContent">
76
+
77
+
78
+
79
+ <div id="contextContent">
80
+
81
+ <div id="description">
82
+ <p>
83
+ This class is used for generating a <a href="Client.html">Client</a>-<a
84
+ href="../DAAP.html">DAAP</a>-Validation header for iTunes servers newer
85
+ than 4.2, or something.
86
+ </p>
87
+
88
+ </div>
89
+
90
+
91
+ </div>
92
+
93
+ <div id="method-list">
94
+ <h3 class="section-bar">Methods</h3>
95
+
96
+ <div class="name-list">
97
+ <a href="#M000017">new</a>&nbsp;&nbsp;
98
+ <a href="#M000018">validate</a>&nbsp;&nbsp;
99
+ </div>
100
+ </div>
101
+
102
+ </div>
103
+
104
+
105
+ <!-- if includes -->
106
+
107
+ <div id="section">
108
+
109
+
110
+
111
+
112
+
113
+ <div id="attribute-list">
114
+ <h3 class="section-bar">Attributes</h3>
115
+
116
+ <div class="name-list">
117
+ <table>
118
+ <tr class="top-aligned-row context-row">
119
+ <td class="context-item-name">seeds</td>
120
+ <td class="context-item-value">&nbsp;[R]&nbsp;</td>
121
+ <td class="context-item-desc"></td>
122
+ </tr>
123
+ </table>
124
+ </div>
125
+ </div>
126
+
127
+
128
+
129
+ <!-- if method_list -->
130
+ <div id="methods">
131
+ <h3 class="section-bar">Public Class methods</h3>
132
+
133
+ <div id="method-M000017" class="method-detail">
134
+ <a name="M000017"></a>
135
+
136
+ <div class="method-heading">
137
+ <a href="DAAPv3.src/M000017.html" target="Code" class="method-signature"
138
+ onclick="popupCode('DAAPv3.src/M000017.html');return false;">
139
+ <span class="method-name">new</span><span class="method-args">()</span>
140
+ </a>
141
+ </div>
142
+
143
+ <div class="method-description">
144
+ </div>
145
+ </div>
146
+
147
+ <h3 class="section-bar">Public Instance methods</h3>
148
+
149
+ <div id="method-M000018" class="method-detail">
150
+ <a name="M000018"></a>
151
+
152
+ <div class="method-heading">
153
+ <a href="DAAPv3.src/M000018.html" target="Code" class="method-signature"
154
+ onclick="popupCode('DAAPv3.src/M000018.html');return false;">
155
+ <span class="method-name">validate</span><span class="method-args">(path, select = 2, req_id = nil)</span>
156
+ </a>
157
+ </div>
158
+
159
+ <div class="method-description">
160
+ <p>
161
+ Returns a validation header using a custom MD5 called Digest::M4P
162
+ </p>
163
+ </div>
164
+ </div>
165
+
166
+
167
+ </div>
168
+
169
+
170
+ </div>
171
+
172
+
173
+ <div id="validator-badges">
174
+ <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
175
+ </div>
176
+
177
+ </body>
178
+ </html>
@@ -0,0 +1,30 @@
1
+ <?xml version="1.0" encoding="iso-8859-1"?>
2
+ <!DOCTYPE html
3
+ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
4
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5
+
6
+ <html>
7
+ <head>
8
+ <title>new (Net::DAAP::DAAPv3)</title>
9
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
+ <link rel="stylesheet" href="../../../.././rdoc-style.css" type="text/css" media="screen" />
11
+ </head>
12
+ <body class="standalone-code">
13
+ <pre><span class="ruby-comment cmt"># File lib/net/daap.rb, line 208</span>
14
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>
15
+ <span class="ruby-ivar">@seeds</span> = []
16
+ (<span class="ruby-value">0</span><span class="ruby-operator">..</span><span class="ruby-value">255</span>).<span class="ruby-identifier">each</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">i</span><span class="ruby-operator">|</span>
17
+ <span class="ruby-identifier">string</span> = <span class="ruby-constant">String</span>.<span class="ruby-identifier">new</span>
18
+ <span class="ruby-identifier">string</span> <span class="ruby-operator">+=</span> (<span class="ruby-identifier">i</span> <span class="ruby-operator">&amp;</span> <span class="ruby-value">0x40</span>) <span class="ruby-operator">!=</span> <span class="ruby-value">0</span> <span class="ruby-operator">?</span> <span class="ruby-value str">&quot;eqwsdxcqwesdc&quot;</span> <span class="ruby-operator">:</span> <span class="ruby-value str">&quot;op[;lm,piojkmn&quot;</span>
19
+ <span class="ruby-identifier">string</span> <span class="ruby-operator">+=</span> (<span class="ruby-identifier">i</span> <span class="ruby-operator">&amp;</span> <span class="ruby-value">0x20</span>) <span class="ruby-operator">!=</span> <span class="ruby-value">0</span> <span class="ruby-operator">?</span> <span class="ruby-value str">&quot;876trfvb 34rtgbvc&quot;</span> <span class="ruby-operator">:</span> <span class="ruby-value str">&quot;=-0ol.,m3ewrdfv&quot;</span>
20
+ <span class="ruby-identifier">string</span> <span class="ruby-operator">+=</span> (<span class="ruby-identifier">i</span> <span class="ruby-operator">&amp;</span> <span class="ruby-value">0x10</span>) <span class="ruby-operator">!=</span> <span class="ruby-value">0</span> <span class="ruby-operator">?</span> <span class="ruby-value str">&quot;87654323e4rgbv &quot;</span> <span class="ruby-operator">:</span> <span class="ruby-value str">&quot;1535753690868867974342659792&quot;</span>
21
+ <span class="ruby-identifier">string</span> <span class="ruby-operator">+=</span> (<span class="ruby-identifier">i</span> <span class="ruby-operator">&amp;</span> <span class="ruby-value">0x08</span>) <span class="ruby-operator">!=</span> <span class="ruby-value">0</span> <span class="ruby-operator">?</span> <span class="ruby-value str">&quot;Song Name&quot;</span> <span class="ruby-operator">:</span> <span class="ruby-value str">&quot;DAAP-CLIENT-ID:&quot;</span>
22
+ <span class="ruby-identifier">string</span> <span class="ruby-operator">+=</span> (<span class="ruby-identifier">i</span> <span class="ruby-operator">&amp;</span> <span class="ruby-value">0x04</span>) <span class="ruby-operator">!=</span> <span class="ruby-value">0</span> <span class="ruby-operator">?</span> <span class="ruby-value str">&quot;111222333444555&quot;</span> <span class="ruby-operator">:</span> <span class="ruby-value str">&quot;4089961010&quot;</span>
23
+ <span class="ruby-identifier">string</span> <span class="ruby-operator">+=</span> (<span class="ruby-identifier">i</span> <span class="ruby-operator">&amp;</span> <span class="ruby-value">0x02</span>) <span class="ruby-operator">!=</span> <span class="ruby-value">0</span> <span class="ruby-operator">?</span> <span class="ruby-value str">&quot;playlist-item-spec&quot;</span> <span class="ruby-operator">:</span> <span class="ruby-value str">&quot;revision-number&quot;</span>
24
+ <span class="ruby-identifier">string</span> <span class="ruby-operator">+=</span> (<span class="ruby-identifier">i</span> <span class="ruby-operator">&amp;</span> <span class="ruby-value">0x01</span>) <span class="ruby-operator">!=</span> <span class="ruby-value">0</span> <span class="ruby-operator">?</span> <span class="ruby-value str">&quot;session-id&quot;</span> <span class="ruby-operator">:</span> <span class="ruby-value str">&quot;content-codes&quot;</span>
25
+ <span class="ruby-identifier">string</span> <span class="ruby-operator">+=</span> (<span class="ruby-identifier">i</span> <span class="ruby-operator">&amp;</span> <span class="ruby-value">0x80</span>) <span class="ruby-operator">!=</span> <span class="ruby-value">0</span> <span class="ruby-operator">?</span> <span class="ruby-value str">&quot;IUYHGFDCXWEDFGHN&quot;</span> <span class="ruby-operator">:</span> <span class="ruby-value str">&quot;iuytgfdxwerfghjm&quot;</span>
26
+ <span class="ruby-ivar">@seeds</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-constant">Digest</span><span class="ruby-operator">::</span><span class="ruby-constant">M4P</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">string</span>).<span class="ruby-identifier">to_s</span>.<span class="ruby-identifier">upcase</span>
27
+ <span class="ruby-keyword kw">end</span>
28
+ <span class="ruby-keyword kw">end</span></pre>
29
+ </body>
30
+ </html>
@@ -0,0 +1,23 @@
1
+ <?xml version="1.0" encoding="iso-8859-1"?>
2
+ <!DOCTYPE html
3
+ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
4
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5
+
6
+ <html>
7
+ <head>
8
+ <title>validate (Net::DAAP::DAAPv3)</title>
9
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
+ <link rel="stylesheet" href="../../../.././rdoc-style.css" type="text/css" media="screen" />
11
+ </head>
12
+ <body class="standalone-code">
13
+ <pre><span class="ruby-comment cmt"># File lib/net/daap.rb, line 224</span>
14
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">validate</span>(<span class="ruby-identifier">path</span>, <span class="ruby-identifier">select</span> = <span class="ruby-value">2</span>, <span class="ruby-identifier">req_id</span> = <span class="ruby-keyword kw">nil</span>)
15
+ <span class="ruby-identifier">string</span> = <span class="ruby-constant">String</span>.<span class="ruby-identifier">new</span>
16
+ <span class="ruby-identifier">string</span> <span class="ruby-operator">+=</span> <span class="ruby-identifier">path</span>
17
+ <span class="ruby-identifier">string</span> <span class="ruby-operator">+=</span> <span class="ruby-value str">&quot;Copyright 2003 Apple Computer, Inc.&quot;</span>
18
+ <span class="ruby-identifier">string</span> <span class="ruby-operator">+=</span> <span class="ruby-ivar">@seeds</span>[<span class="ruby-identifier">select</span>]
19
+ <span class="ruby-identifier">string</span> <span class="ruby-operator">+=</span> <span class="ruby-identifier">req_id</span>.<span class="ruby-identifier">to_s</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">req_id</span> <span class="ruby-operator">!=</span> <span class="ruby-keyword kw">nil</span>
20
+ <span class="ruby-constant">Digest</span><span class="ruby-operator">::</span><span class="ruby-constant">M4P</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">string</span>).<span class="ruby-identifier">to_s</span>.<span class="ruby-identifier">upcase</span>
21
+ <span class="ruby-keyword kw">end</span></pre>
22
+ </body>
23
+ </html>
@@ -0,0 +1,189 @@
1
+ <?xml version="1.0" encoding="iso-8859-1"?>
2
+ <!DOCTYPE html
3
+ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
4
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5
+
6
+ <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
7
+ <head>
8
+ <title>Class: Net::DAAP::DMAP</title>
9
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
+ <meta http-equiv="Content-Script-Type" content="text/javascript" />
11
+ <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
12
+ <script type="text/javascript">
13
+ // <![CDATA[
14
+
15
+ function popupCode( url ) {
16
+ window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
17
+ }
18
+
19
+ function toggleCode( id ) {
20
+ if ( document.getElementById )
21
+ elem = document.getElementById( id );
22
+ else if ( document.all )
23
+ elem = eval( "document.all." + id );
24
+ else
25
+ return false;
26
+
27
+ elemStyle = elem.style;
28
+
29
+ if ( elemStyle.display != "block" ) {
30
+ elemStyle.display = "block"
31
+ } else {
32
+ elemStyle.display = "none"
33
+ }
34
+
35
+ return true;
36
+ }
37
+
38
+ // Make codeblocks hidden by default
39
+ document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" )
40
+
41
+ // ]]>
42
+ </script>
43
+
44
+ </head>
45
+ <body>
46
+
47
+
48
+
49
+ <div id="classHeader">
50
+ <table class="header-table">
51
+ <tr class="top-aligned-row">
52
+ <td><strong>Class</strong></td>
53
+ <td class="class-name-in-header">Net::DAAP::DMAP</td>
54
+ </tr>
55
+ <tr class="top-aligned-row">
56
+ <td><strong>In:</strong></td>
57
+ <td>
58
+ <a href="../../../files/lib/net/daap/dmap_rb.html">
59
+ lib/net/daap/dmap.rb
60
+ </a>
61
+ <br />
62
+ </td>
63
+ </tr>
64
+
65
+ <tr class="top-aligned-row">
66
+ <td><strong>Parent:</strong></td>
67
+ <td>
68
+ Object
69
+ </td>
70
+ </tr>
71
+ </table>
72
+ </div>
73
+ <!-- banner header -->
74
+
75
+ <div id="bodyContent">
76
+
77
+
78
+
79
+ <div id="contextContent">
80
+
81
+ <div id="description">
82
+ <p>
83
+ This class decodes responses from the <a href="../DAAP.html">DAAP</a>
84
+ server in to useful data structures.
85
+ </p>
86
+
87
+ </div>
88
+
89
+
90
+ </div>
91
+
92
+ <div id="method-list">
93
+ <h3 class="section-bar">Methods</h3>
94
+
95
+ <div class="name-list">
96
+ <a href="#M000013">find</a>&nbsp;&nbsp;
97
+ <a href="#M000014">flat_list</a>&nbsp;&nbsp;
98
+ <a href="#M000012">new</a>&nbsp;&nbsp;
99
+ </div>
100
+ </div>
101
+
102
+ </div>
103
+
104
+
105
+ <!-- if includes -->
106
+
107
+ <div id="section">
108
+
109
+
110
+ <div id="constants-list">
111
+ <h3 class="section-bar">Constants</h3>
112
+
113
+ <div class="name-list">
114
+ <table summary="Constants">
115
+ <tr class="top-aligned-row context-row">
116
+ <td class="context-item-name">TYPE_TO_UNPACK</td>
117
+ <td>=</td>
118
+ <td class="context-item-value">{ 1 =&gt; 'c', 3 =&gt; 'n', 5 =&gt; 'N', 7 =&gt; 'Q', 9 =&gt; 'a*', 10 =&gt; 'N', 11 =&gt; 'nn', 42 =&gt; 'a*'</td>
119
+ </tr>
120
+ </table>
121
+ </div>
122
+ </div>
123
+
124
+
125
+
126
+
127
+
128
+
129
+ <!-- if method_list -->
130
+ <div id="methods">
131
+ <h3 class="section-bar">Public Class methods</h3>
132
+
133
+ <div id="method-M000012" class="method-detail">
134
+ <a name="M000012"></a>
135
+
136
+ <div class="method-heading">
137
+ <a href="DMAP.src/M000012.html" target="Code" class="method-signature"
138
+ onclick="popupCode('DMAP.src/M000012.html');return false;">
139
+ <span class="method-name">new</span><span class="method-args">(args)</span>
140
+ </a>
141
+ </div>
142
+
143
+ <div class="method-description">
144
+ </div>
145
+ </div>
146
+
147
+ <h3 class="section-bar">Public Instance methods</h3>
148
+
149
+ <div id="method-M000013" class="method-detail">
150
+ <a name="M000013"></a>
151
+
152
+ <div class="method-heading">
153
+ <a href="DMAP.src/M000013.html" target="Code" class="method-signature"
154
+ onclick="popupCode('DMAP.src/M000013.html');return false;">
155
+ <span class="method-name">find</span><span class="method-args">(data, to_find)</span>
156
+ </a>
157
+ </div>
158
+
159
+ <div class="method-description">
160
+ </div>
161
+ </div>
162
+
163
+ <div id="method-M000014" class="method-detail">
164
+ <a name="M000014"></a>
165
+
166
+ <div class="method-heading">
167
+ <a href="DMAP.src/M000014.html" target="Code" class="method-signature"
168
+ onclick="popupCode('DMAP.src/M000014.html');return false;">
169
+ <span class="method-name">flat_list</span><span class="method-args">(data)</span>
170
+ </a>
171
+ </div>
172
+
173
+ <div class="method-description">
174
+ </div>
175
+ </div>
176
+
177
+
178
+ </div>
179
+
180
+
181
+ </div>
182
+
183
+
184
+ <div id="validator-badges">
185
+ <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
186
+ </div>
187
+
188
+ </body>
189
+ </html>
@@ -0,0 +1,20 @@
1
+ <?xml version="1.0" encoding="iso-8859-1"?>
2
+ <!DOCTYPE html
3
+ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
4
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5
+
6
+ <html>
7
+ <head>
8
+ <title>new (Net::DAAP::DMAP)</title>
9
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
+ <link rel="stylesheet" href="../../../.././rdoc-style.css" type="text/css" media="screen" />
11
+ </head>
12
+ <body class="standalone-code">
13
+ <pre><span class="ruby-comment cmt"># File lib/net/daap/dmap.rb, line 6</span>
14
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">args</span>)
15
+ <span class="ruby-ivar">@daap</span> = <span class="ruby-identifier">args</span>[<span class="ruby-identifier">:daap</span>]
16
+ <span class="ruby-identifier">load_types</span>
17
+ <span class="ruby-identifier">update_content_codes</span>
18
+ <span class="ruby-keyword kw">end</span></pre>
19
+ </body>
20
+ </html>
@@ -0,0 +1,18 @@
1
+ <?xml version="1.0" encoding="iso-8859-1"?>
2
+ <!DOCTYPE html
3
+ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
4
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5
+
6
+ <html>
7
+ <head>
8
+ <title>find (Net::DAAP::DMAP)</title>
9
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
+ <link rel="stylesheet" href="../../../.././rdoc-style.css" type="text/css" media="screen" />
11
+ </head>
12
+ <body class="standalone-code">
13
+ <pre><span class="ruby-comment cmt"># File lib/net/daap/dmap.rb, line 12</span>
14
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">find</span>(<span class="ruby-identifier">data</span>, <span class="ruby-identifier">to_find</span>)
15
+ <span class="ruby-identifier">seek</span>(<span class="ruby-identifier">unpack</span>(<span class="ruby-identifier">data</span>), <span class="ruby-identifier">to_find</span>)
16
+ <span class="ruby-keyword kw">end</span></pre>
17
+ </body>
18
+ </html>
@@ -0,0 +1,24 @@
1
+ <?xml version="1.0" encoding="iso-8859-1"?>
2
+ <!DOCTYPE html
3
+ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
4
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5
+
6
+ <html>
7
+ <head>
8
+ <title>flat_list (Net::DAAP::DMAP)</title>
9
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
+ <link rel="stylesheet" href="../../../.././rdoc-style.css" type="text/css" media="screen" />
11
+ </head>
12
+ <body class="standalone-code">
13
+ <pre><span class="ruby-comment cmt"># File lib/net/daap/dmap.rb, line 16</span>
14
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">flat_list</span>(<span class="ruby-identifier">data</span>)
15
+ <span class="ruby-identifier">struct</span> = <span class="ruby-identifier">unpack</span>(<span class="ruby-identifier">data</span>)
16
+ <span class="ruby-identifier">hash_list</span> = <span class="ruby-constant">Hash</span>.<span class="ruby-identifier">new</span>
17
+ <span class="ruby-identifier">flat_list</span> = <span class="ruby-identifier">flat_list_traverse</span>(<span class="ruby-identifier">struct</span>)
18
+ <span class="ruby-value">0</span>.<span class="ruby-identifier">step</span>(<span class="ruby-identifier">flat_list</span>.<span class="ruby-identifier">length</span> <span class="ruby-operator">-</span> <span class="ruby-value">1</span>, <span class="ruby-value">2</span>) <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">i</span><span class="ruby-operator">|</span>
19
+ <span class="ruby-identifier">hash_list</span>[<span class="ruby-identifier">flat_list</span>[<span class="ruby-identifier">i</span>]] = <span class="ruby-identifier">flat_list</span>[<span class="ruby-identifier">i</span> <span class="ruby-operator">+</span> <span class="ruby-value">1</span>]
20
+ <span class="ruby-keyword kw">end</span>
21
+ <span class="ruby-identifier">hash_list</span>
22
+ <span class="ruby-keyword kw">end</span></pre>
23
+ </body>
24
+ </html>