C# Class BitSharp.Network.Peer

Inheritance: IDisposable
ファイルを表示 Open project: pmlyon/BitSharp Class Usage Examples

Public Methods

Method Description
AddBlockMiss ( ) : void
ConnectAsync ( ) : Task
Disconnect ( Exception ex = null ) : void
Dispose ( ) : void
Peer ( IPEndPoint remoteEndPoint, bool isSeed, bool isIncoming ) : BitSharp.Common
Peer ( Socket socket, bool isSeed, bool isIncoming ) : BitSharp.Common

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Private Methods

Method Description
HandleFailed ( Peer peer, Exception ex ) : void
UnwireNode ( ) : void
WireNode ( ) : void

Method Details

AddBlockMiss() public method

public AddBlockMiss ( ) : void
return void

ConnectAsync() public method

public ConnectAsync ( ) : Task
return Task

Disconnect() public method

public Disconnect ( Exception ex = null ) : void
ex System.Exception
return void

Dispose() public method

public Dispose ( ) : void
return void

Dispose() protected method

protected Dispose ( bool disposing ) : void
disposing bool
return void

Peer() public method

public Peer ( IPEndPoint remoteEndPoint, bool isSeed, bool isIncoming ) : BitSharp.Common
remoteEndPoint System.Net.IPEndPoint
isSeed bool
isIncoming bool
return BitSharp.Common

Peer() public method

public Peer ( Socket socket, bool isSeed, bool isIncoming ) : BitSharp.Common
socket Socket
isSeed bool
isIncoming bool
return BitSharp.Common