C# 클래스 NiceHashMiner.EthminerReader

파일 보기 프로젝트 열기: nicehash/NiceHashMiner 1 사용 예제들

공개 메소드들

메소드 설명
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