public ConnectTo ( string hostName, ushort port = 80 ) : void | ||
hostName | string | |
port | ushort | |
리턴 | void |
public void Update() { mConn.Update(); mMTM.Update(mConn); if (mConn.State == Connection.ConnectionState.Connected) { Work work = mConn.GetWork(); if (work != null) { Console.WriteLine("HashRate: {0}", mMTM.HashRate); mMTM.StartWork(work); } } else if (mConn.State == Connection.ConnectionState.Disconnected) { mConn.ConnectTo(mHostName); } }
public Miner(string memberName, string productName, string platform, int threadCount = 1, bool useSSE = false, float gpuPercentage = 0) { mMTM = new MTM(threadCount, useSSE, gpuPercentage); mConn = new Connection(memberName, productName, platform); mConn.ConnectTo(mHostName); }
public Miner(string memberName, string productName, string platform, int threadCount = 1, bool useSSE = false, float gpuPercentage = 0) { mMTM = new MTM(threadCount, useSSE, gpuPercentage); mConn = new Connection(memberName, productName, platform); mConn.ConnectTo(mHostName); }