C# Class HashrateCalculator.NodeConnection

Exibir arquivo Open project: GarageGames/Bitcoin Class Usage Examples

Public Properties

Property Type Description
mProtocolVersion uint
mRemoteHeight uint

Public Methods

Method Description
Connect ( string nodeAddress, ushort port = 8333 ) : void
Destroy ( ) : void
IsConnected ( ) : bool
NodeConnection ( Bitcoin owner, string nodeAddress, ushort port = 8333, uint protocolVersion = 0x00011171, uint networkID = 0xD9B4BEF9 ) : System
PH_Addr ( byte payload ) : void
PH_Alert ( byte payload ) : void
PH_Block ( byte payload ) : void
PH_CheckOrder ( byte payload ) : void
PH_GetAddr ( byte payload ) : void
PH_GetBlocks ( byte payload ) : void
PH_GetData ( byte payload ) : void
PH_GetHeaders ( byte payload ) : void
PH_Headers ( byte payload ) : void
PH_Inv ( byte payload ) : void
PH_Mempool ( byte payload ) : void
PH_NotFound ( byte payload ) : void
PH_Ping ( byte payload ) : void
PH_Pong ( byte payload ) : void
PH_Reply ( byte payload ) : void
PH_Subimtorder ( byte payload ) : void
PH_Tx ( byte payload ) : void
PH_Verack ( byte payload ) : void
PH_Version ( byte payload ) : void
ReadSocket ( ) : void
RequestBlocks ( BlockHeader headers ) : void
RequestHeaders ( byte origin ) : void
SendPacket ( string packetID, byte payload ) : void
SendVersionPacket ( ) : void

Private Methods

Method Description
CompareChecksum ( uint checksum, byte hash ) : bool
DisptachPacket ( byte packet, long size ) : int

Method Details

Connect() public method

public Connect ( string nodeAddress, ushort port = 8333 ) : void
nodeAddress string
port ushort
return void

Destroy() public method

public Destroy ( ) : void
return void

IsConnected() public method

public IsConnected ( ) : bool
return bool

NodeConnection() public method

public NodeConnection ( Bitcoin owner, string nodeAddress, ushort port = 8333, uint protocolVersion = 0x00011171, uint networkID = 0xD9B4BEF9 ) : System
owner Bitcoin
nodeAddress string
port ushort
protocolVersion uint
networkID uint
return System

PH_Addr() public method

public PH_Addr ( byte payload ) : void
payload byte
return void

PH_Alert() public method

public PH_Alert ( byte payload ) : void
payload byte
return void

PH_Block() public method

public PH_Block ( byte payload ) : void
payload byte
return void

PH_CheckOrder() public method

public PH_CheckOrder ( byte payload ) : void
payload byte
return void

PH_GetAddr() public method

public PH_GetAddr ( byte payload ) : void
payload byte
return void

PH_GetBlocks() public method

public PH_GetBlocks ( byte payload ) : void
payload byte
return void

PH_GetData() public method

public PH_GetData ( byte payload ) : void
payload byte
return void

PH_GetHeaders() public method

public PH_GetHeaders ( byte payload ) : void
payload byte
return void

PH_Headers() public method

public PH_Headers ( byte payload ) : void
payload byte
return void

PH_Inv() public method

public PH_Inv ( byte payload ) : void
payload byte
return void

PH_Mempool() public method

public PH_Mempool ( byte payload ) : void
payload byte
return void

PH_NotFound() public method

public PH_NotFound ( byte payload ) : void
payload byte
return void

PH_Ping() public method

public PH_Ping ( byte payload ) : void
payload byte
return void

PH_Pong() public method

public PH_Pong ( byte payload ) : void
payload byte
return void

PH_Reply() public method

public PH_Reply ( byte payload ) : void
payload byte
return void

PH_Subimtorder() public method

public PH_Subimtorder ( byte payload ) : void
payload byte
return void

PH_Tx() public method

public PH_Tx ( byte payload ) : void
payload byte
return void

PH_Verack() public method

public PH_Verack ( byte payload ) : void
payload byte
return void

PH_Version() public method

public PH_Version ( byte payload ) : void
payload byte
return void

ReadSocket() public method

public ReadSocket ( ) : void
return void

RequestBlocks() public method

public RequestBlocks ( BlockHeader headers ) : void
headers BlockHeader
return void

RequestHeaders() public method

public RequestHeaders ( byte origin ) : void
origin byte
return void

SendPacket() public method

public SendPacket ( string packetID, byte payload ) : void
packetID string
payload byte
return void

SendVersionPacket() public method

public SendVersionPacket ( ) : void
return void

Property Details

mProtocolVersion public_oe property

public uint mProtocolVersion
return uint

mRemoteHeight public_oe property

public uint mRemoteHeight
return uint