C# Class BitSharp.Network.Workers.PeerWorker

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

Private Properties

Property Type Description
ConnectAndHandshake Task
ConnectToPeer Task
PeerStartup Task
PeerWorker BitSharp.Common

Public Methods

Method Description
AddCandidatePeer ( CandidatePeer peer ) : void
AddIncomingPeer ( Socket socket ) : Task
DisconnectPeer ( Peer peer, Exception ex ) : void

Protected Methods

Method Description
SubDispose ( ) : void
SubStart ( ) : void
SubStop ( ) : void
WorkAction ( ) : Task

Private Methods

Method Description
ConnectAndHandshake ( Peer peer ) : Task
ConnectToPeer ( IPEndPoint remoteEndPoint, bool isSeed ) : Task
PeerStartup ( Peer peer ) : Task
PeerWorker ( BitSharp.Common.WorkerConfig workerConfig, LocalClient localClient, BitSharp.Core.CoreDaemon coreDaemon, HeadersRequestWorker headersRequestWorker ) : BitSharp.Common

Method Details

AddCandidatePeer() public method

public AddCandidatePeer ( CandidatePeer peer ) : void
peer CandidatePeer
return void

AddIncomingPeer() public method

public AddIncomingPeer ( Socket socket ) : Task
socket Socket
return Task

DisconnectPeer() public method

public DisconnectPeer ( Peer peer, Exception ex ) : void
peer Peer
ex System.Exception
return void

SubDispose() protected method

protected SubDispose ( ) : void
return void

SubStart() protected method

protected SubStart ( ) : void
return void

SubStop() protected method

protected SubStop ( ) : void
return void

WorkAction() protected method

protected WorkAction ( ) : Task
return Task