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

Inheritance: IConnection
Mostrar archivo Open project: haroldma/Universal.Torrent Class Usage Examples

Private Properties

Property Type Description
TCPConnection System

Public Methods

Method Description
BeginConnect ( AsyncCallback peerEndCreateConnection, object state ) : IAsyncResult
BeginReceive ( byte buffer, int offset, int count, AsyncCallback asyncCallback, object state ) : IAsyncResult
BeginSend ( byte buffer, int offset, int count, AsyncCallback asyncCallback, object state ) : IAsyncResult
ConnectAsync ( CancellationToken token ) : Task
Dispose ( ) : void
EndConnect ( IAsyncResult result ) : void
EndReceive ( IAsyncResult result ) : int
EndSend ( IAsyncResult result ) : int
ReceiveAsync ( byte buffer, int offset, int count ) : Task
SendAsync ( byte buffer, int offset, int count ) : Task
TCPConnection ( StreamSocket socket, bool isIncoming ) : System
TCPConnection ( Uri uri ) : System

Private Methods

Method Description
TCPConnection ( StreamSocket socket, IPEndPoint endpoint, bool isIncoming ) : System

Method Details

BeginConnect() public method

public BeginConnect ( AsyncCallback peerEndCreateConnection, object state ) : IAsyncResult
peerEndCreateConnection AsyncCallback
state object
return IAsyncResult

BeginReceive() public method

public BeginReceive ( byte buffer, int offset, int count, AsyncCallback asyncCallback, object state ) : IAsyncResult
buffer byte
offset int
count int
asyncCallback AsyncCallback
state object
return IAsyncResult

BeginSend() public method

public BeginSend ( byte buffer, int offset, int count, AsyncCallback asyncCallback, object state ) : IAsyncResult
buffer byte
offset int
count int
asyncCallback AsyncCallback
state object
return IAsyncResult

ConnectAsync() public method

public ConnectAsync ( CancellationToken token ) : Task
token System.Threading.CancellationToken
return Task

Dispose() public method

public Dispose ( ) : void
return void

EndConnect() public method

public EndConnect ( IAsyncResult result ) : void
result IAsyncResult
return void

EndReceive() public method

public EndReceive ( IAsyncResult result ) : int
result IAsyncResult
return int

EndSend() public method

public EndSend ( IAsyncResult result ) : int
result IAsyncResult
return int

ReceiveAsync() public method

public ReceiveAsync ( byte buffer, int offset, int count ) : Task
buffer byte
offset int
count int
return Task

SendAsync() public method

public SendAsync ( byte buffer, int offset, int count ) : Task
buffer byte
offset int
count int
return Task

TCPConnection() public method

public TCPConnection ( StreamSocket socket, bool isIncoming ) : System
socket Windows.Networking.Sockets.StreamSocket
isIncoming bool
return System

TCPConnection() public method

public TCPConnection ( Uri uri ) : System
uri System.Uri
return System