C# Class CentralMine.NET.Client

Show file 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 property

public string mAgent
return string

mClientInfoRequested public property

public bool mClientInfoRequested
return bool

mCurrentBlock public property

public WorkBlock,CentralMine.NET mCurrentBlock
return WorkBlock

mDesiredHashes public property

public uint mDesiredHashes
return uint

mHashBlock public property

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

mHashesDone public property

public uint mHashesDone
return uint

mHashrate public property

public double mHashrate
return double

mLocation public property

public string mLocation
return string

mPlatform public property

public string mPlatform
return string

mState public property

public State mState
return State

mStatusClient public property

public bool mStatusClient
return bool

mTotalHashesDone public property

public ulong mTotalHashesDone
return ulong

mVersion public property

public int mVersion
return int