C# Класс NiceHashMiner.EthminerReader

Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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.

Приватные методы

Метод Описание
workerTimer_Tick ( object sender, EventArgs e ) : void

Описание методов

ByteArrayToString() публичный Метод

public ByteArrayToString ( byte ba ) : string
ba byte
Результат string

EthminerReader() публичный Метод

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.
Результат System

GetDAGprogress() публичный Метод

Get DAG progress in %. It only reports correct progress if ethminer is launched with -D parameter.
public GetDAGprogress ( ) : uint
Результат uint

GetIsRunning() публичный Метод

Get if miner is still running.
public GetIsRunning ( ) : bool
Результат bool

GetLastActiveTime() публичный Метод

Get DateTime when miner sent UDP status packet.
public GetLastActiveTime ( ) : System.DateTime
Результат System.DateTime

GetSpeed() публичный Метод

Get speed of miner in MH/s.
public GetSpeed ( ) : double
Результат double

Start() публичный Метод

Start listening.
public Start ( ) : void
Результат void

Stop() публичный Метод

Stop listening. Call this before application exits or if you are about to restart ethminer reader.
public Stop ( ) : void
Результат void