C# Class CentralMine.NET.Client

Datei anzeigen Open project: GarageGames/Bitcoin Class Usage Examples

Public Properties

Property Type Description
mAgent string
mClientInfoRequested bool
mCurrentBlock WorkBlock
mDesiredHashes uint
mHashBlock HashManager.HashBlock
mHashesDone uint
mHashrate double
mLocation string
mPlatform string
mState State
mStatusClient bool
mTotalHashesDone ulong
mVersion int

Public Methods

Method Description
Client ( TcpClient tcp, ClientManager manager ) : System
Close ( ) : void
ComputeWebSocketHandshakeSecurityHash09 ( String secWebSocketKey ) : String
ProcessIdentity ( Stream stream, bool byteswap = false ) : void
ProcessWebsocketConnect ( NetworkStream stream ) : void
ProcessWebsocketPacket ( NetworkStream stream ) : void
ProcessWorkComplete ( Stream stream, bool byteswap = false ) : void
SendCB ( IAsyncResult ar ) : void
SendClientInfo ( string info ) : void
SendPacket ( byte data ) : void
SendStatus ( int clients, double hashrate ) : void
SendWork ( HashManager hashBlock, WorkBlock block ) : void
StopWork ( ) : void
ToJSON ( ) : string
ToString ( ) : string
Update ( ) : bool

Private Methods

Method Description
ReadStr ( BinaryReader br ) : string

Method Details

Client() public method

public Client ( TcpClient tcp, ClientManager manager ) : System
tcp System.Net.Sockets.TcpClient
manager ClientManager
return System

Close() public method

public Close ( ) : void
return void

ComputeWebSocketHandshakeSecurityHash09() public static method

public static ComputeWebSocketHandshakeSecurityHash09 ( String secWebSocketKey ) : String
secWebSocketKey String
return String

ProcessIdentity() public method

public ProcessIdentity ( Stream stream, bool byteswap = false ) : void
stream Stream
byteswap bool
return void

ProcessWebsocketConnect() public method

public ProcessWebsocketConnect ( NetworkStream stream ) : void
stream NetworkStream
return void

ProcessWebsocketPacket() public method

public ProcessWebsocketPacket ( NetworkStream stream ) : void
stream NetworkStream
return void

ProcessWorkComplete() public method

public ProcessWorkComplete ( Stream stream, bool byteswap = false ) : void
stream Stream
byteswap bool
return void

SendCB() public method

public SendCB ( IAsyncResult ar ) : void
ar IAsyncResult
return void

SendClientInfo() public method

public SendClientInfo ( string info ) : void
info string
return void

SendPacket() public method

public SendPacket ( byte data ) : void
data byte
return void

SendStatus() public method

public SendStatus ( int clients, double hashrate ) : void
clients int
hashrate double
return void

SendWork() public method

public SendWork ( HashManager hashBlock, WorkBlock block ) : void
hashBlock HashManager
block WorkBlock
return void

StopWork() public method

public StopWork ( ) : void
return void

ToJSON() public method

public ToJSON ( ) : string
return string

ToString() public method

public ToString ( ) : string
return string

Update() public method

public Update ( ) : bool
return bool

Property Details

mAgent public_oe property

public string mAgent
return string

mClientInfoRequested public_oe property

public bool mClientInfoRequested
return bool

mCurrentBlock public_oe property

public WorkBlock,CentralMine.NET mCurrentBlock
return WorkBlock

mDesiredHashes public_oe property

public uint mDesiredHashes
return uint

mHashBlock public_oe property

public HashManager.HashBlock,CentralMine.NET mHashBlock
return HashManager.HashBlock

mHashesDone public_oe property

public uint mHashesDone
return uint

mHashrate public_oe property

public double mHashrate
return double

mLocation public_oe property

public string mLocation
return string

mPlatform public_oe property

public string mPlatform
return string

mState public_oe property

public State mState
return State

mStatusClient public_oe property

public bool mStatusClient
return bool

mTotalHashesDone public_oe property

public ulong mTotalHashesDone
return ulong

mVersion public_oe property

public int mVersion
return int