C# Class Universal.Torrent.Client.PeerConnections.HttpConnection

Inheritance: IConnection
Afficher le fichier Open project: haroldma/Universal.Torrent

Private Properties

Свойство Type Description
AddRange void
BeginGetResponse void
CompleteTransfer int
CreateWebRequests void
DecodeMessages List
DoReceive void
GotResponse void
ReceivedChunk void
RequestCompleted void

Méthodes publiques

Méthode Description
BeginConnect ( AsyncCallback callback, object state ) : IAsyncResult
BeginReceive ( byte buffer, int offset, int count, AsyncCallback callback, object state ) : IAsyncResult
BeginSend ( byte buffer, int offset, int count, AsyncCallback callback, object state ) : IAsyncResult
ConnectAsync ( CancellationToken token ) : Task
Dispose ( ) : void
EndConnect ( IAsyncResult result ) : void
EndReceive ( IAsyncResult result ) : int
EndSend ( IAsyncResult result ) : int
HttpConnection ( Uri uri ) : System
ReceiveAsync ( byte buffer, int offset, int count ) : Task
SendAsync ( byte buffer, int offset, int count ) : Task

Private Methods

Méthode Description
AddRange ( WebRequest request, long startOffset, long endOffset ) : void
BeginGetResponse ( WebRequest request, AsyncCallback callback, object state ) : void
CompleteTransfer ( IAsyncResult supplied, HttpResult expected ) : int
CreateWebRequests ( RequestMessage start, RequestMessage end ) : void
DecodeMessages ( byte buffer, int offset, int count ) : List
DoReceive ( ) : void
GotResponse ( IAsyncResult result ) : void
ReceivedChunk ( IAsyncResult result ) : void
RequestCompleted ( ) : void

Method Details

BeginConnect() public méthode

public BeginConnect ( AsyncCallback callback, object state ) : IAsyncResult
callback AsyncCallback
state object
Résultat IAsyncResult

BeginReceive() public méthode

public BeginReceive ( byte buffer, int offset, int count, AsyncCallback callback, object state ) : IAsyncResult
buffer byte
offset int
count int
callback AsyncCallback
state object
Résultat IAsyncResult

BeginSend() public méthode

public BeginSend ( byte buffer, int offset, int count, AsyncCallback callback, object state ) : IAsyncResult
buffer byte
offset int
count int
callback AsyncCallback
state object
Résultat IAsyncResult

ConnectAsync() public méthode

public ConnectAsync ( CancellationToken token ) : Task
token System.Threading.CancellationToken
Résultat Task

Dispose() public méthode

public Dispose ( ) : void
Résultat void

EndConnect() public méthode

public EndConnect ( IAsyncResult result ) : void
result IAsyncResult
Résultat void

EndReceive() public méthode

public EndReceive ( IAsyncResult result ) : int
result IAsyncResult
Résultat int

EndSend() public méthode

public EndSend ( IAsyncResult result ) : int
result IAsyncResult
Résultat int

HttpConnection() public méthode

public HttpConnection ( Uri uri ) : System
uri System.Uri
Résultat System

ReceiveAsync() public méthode

public ReceiveAsync ( byte buffer, int offset, int count ) : Task
buffer byte
offset int
count int
Résultat Task

SendAsync() public méthode

public SendAsync ( byte buffer, int offset, int count ) : Task
buffer byte
offset int
count int
Résultat Task