C# Class NiceHashMiner.EthminerReader

Afficher le fichier Open project: nicehash/NiceHashMiner Class Usage Examples

Méthodes publiques

Méthode 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

Méthode Description
workerTimer_Tick ( object sender, EventArgs e ) : void

Method Details

ByteArrayToString() public méthode

public ByteArrayToString ( byte ba ) : string
ba byte
Résultat string

EthminerReader() public méthode

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.
Résultat System

GetDAGprogress() public méthode

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

GetIsRunning() public méthode

Get if miner is still running.
public GetIsRunning ( ) : bool
Résultat bool

GetLastActiveTime() public méthode

Get DateTime when miner sent UDP status packet.
public GetLastActiveTime ( ) : System.DateTime
Résultat System.DateTime

GetSpeed() public méthode

Get speed of miner in MH/s.
public GetSpeed ( ) : double
Résultat double

Start() public méthode

Start listening.
public Start ( ) : void
Résultat void

Stop() public méthode

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