C# Class NiceHashMiner.EthminerReader

Mostra file Open project: nicehash/NiceHashMiner Class Usage Examples

Public Methods

Method Description
ByteArrayToString ( byte ba ) : string
EthminerReader ( int port ) : System

Initialize ethminer instance that listens on certain UDP port for speed and DAG progress reports. You may have multiple instances, but each one must be listening on another port!

GetDAGprogress ( ) : uint

Get DAG progress in %. It only reports correct progress if ethminer is launched with -D parameter.

GetIsRunning ( ) : bool

Get if miner is still running.

GetLastActiveTime ( ) : System.DateTime

Get DateTime when miner sent UDP status packet.

GetSpeed ( ) : double

Get speed of miner in MH/s.

Start ( ) : void

Start listening.

Stop ( ) : void

Stop listening. Call this before application exits or if you are about to restart ethminer reader.

Private Methods

Method Description
workerTimer_Tick ( object sender, EventArgs e ) : void

Method Details

ByteArrayToString() public method

public ByteArrayToString ( byte ba ) : string
ba byte
return string

EthminerReader() public method

Initialize ethminer instance that listens on certain UDP port for speed and DAG progress reports. You may have multiple instances, but each one must be listening on another port!
public EthminerReader ( int port ) : System
port int UDP listening port.
return System

GetDAGprogress() public method

Get DAG progress in %. It only reports correct progress if ethminer is launched with -D parameter.
public GetDAGprogress ( ) : uint
return uint

GetIsRunning() public method

Get if miner is still running.
public GetIsRunning ( ) : bool
return bool

GetLastActiveTime() public method

Get DateTime when miner sent UDP status packet.
public GetLastActiveTime ( ) : System.DateTime
return System.DateTime

GetSpeed() public method

Get speed of miner in MH/s.
public GetSpeed ( ) : double
return double

Start() public method

Start listening.
public Start ( ) : void
return void

Stop() public method

Stop listening. Call this before application exits or if you are about to restart ethminer reader.
public Stop ( ) : void
return void