C# Class DAAP.ContentFetcher

Inheritance: IDisposable
ファイルを表示 Open project: mono/daap-sharp Class Usage Examples

Public Methods

Method Description
ContentFetcher ( IPAddress address, UInt16 port ) : System
Dispose ( ) : void
Fetch ( string path ) : byte[]
Fetch ( string path, string query ) : byte[]
Fetch ( string path, string query, WebHeaderCollection extraHeaders, int requestId ) : byte[]
FetchFile ( string path, long offset ) : HttpWebResponse
FetchResponse ( string path, long offset, string query, WebHeaderCollection extraHeaders, int requestId, bool disableKeepalive ) : HttpWebResponse
FetchResponse ( string path, string query, WebHeaderCollection headers ) : HttpWebResponse
GetResponseStream ( HttpWebResponse response ) : Stream
KillAll ( ) : void

Method Details

ContentFetcher() public method

public ContentFetcher ( IPAddress address, UInt16 port ) : System
address System.Net.IPAddress
port System.UInt16
return System

Dispose() public method

public Dispose ( ) : void
return void

Fetch() public method

public Fetch ( string path ) : byte[]
path string
return byte[]

Fetch() public method

public Fetch ( string path, string query ) : byte[]
path string
query string
return byte[]

Fetch() public method

public Fetch ( string path, string query, WebHeaderCollection extraHeaders, int requestId ) : byte[]
path string
query string
extraHeaders System.Net.WebHeaderCollection
requestId int
return byte[]

FetchFile() public method

public FetchFile ( string path, long offset ) : HttpWebResponse
path string
offset long
return System.Net.HttpWebResponse

FetchResponse() public method

public FetchResponse ( string path, long offset, string query, WebHeaderCollection extraHeaders, int requestId, bool disableKeepalive ) : HttpWebResponse
path string
offset long
query string
extraHeaders System.Net.WebHeaderCollection
requestId int
disableKeepalive bool
return System.Net.HttpWebResponse

FetchResponse() public method

public FetchResponse ( string path, string query, WebHeaderCollection headers ) : HttpWebResponse
path string
query string
headers System.Net.WebHeaderCollection
return System.Net.HttpWebResponse

GetResponseStream() public method

public GetResponseStream ( HttpWebResponse response ) : Stream
response System.Net.HttpWebResponse
return Stream

KillAll() public method

public KillAll ( ) : void
return void