Example #1
0
 private void BroadcastHashrate()
 {
     Remoting.Server.Data.Transfer.Machine machine = new Remoting.Server.Data.Transfer.Machine();
     machine.TotalScryptHashrate = GetTotalHashrate(CoinAlgorithm.Scrypt);
     machine.TotalSha256Hashrate = GetTotalHashrate(CoinAlgorithm.SHA256);
     Remoting.Server.Broadcast.Broadcaster.Broadcast(machine);
 }
Example #2
0
 private void UpdateInstancesStatsFromLocal()
 {
     if (instancesControl.Visible)
     {
         Remoting.Server.Data.Transfer.Machine machine = new Remoting.Server.Data.Transfer.Machine();
         machine.TotalScryptHashrate = GetTotalHashrate(CoinAlgorithm.Scrypt);
         machine.TotalSha256Hashrate = GetTotalHashrate(CoinAlgorithm.SHA256);
         instancesControl.ApplyMachineInformation("localhost", machine);
     }
 }
Example #3
0
 private void SendHashrate(string ipAddress)
 {
     Remoting.Server.Data.Transfer.Machine machine = new Remoting.Server.Data.Transfer.Machine();
     machine.TotalScryptHashrate = GetTotalHashrate(CoinAlgorithm.Scrypt);
     machine.TotalSha256Hashrate = GetTotalHashrate(CoinAlgorithm.SHA256);
     Remoting.Server.Broadcast.Sender.Send(IPAddress.Parse(ipAddress), machine);
 }
Example #4
0
 private void BroadcastHashrate()
 {
     Remoting.Server.Data.Transfer.Machine machine = new Remoting.Server.Data.Transfer.Machine();
     machine.TotalScryptHashrate = this.totalScryptRate;
     machine.TotalSha256Hashrate = this.totalSha256Rate;
     Remoting.Server.Broadcast.Broadcaster.Broadcast(machine);
 }
Example #5
0
 private void UpdateInstancesStatsFromLocal()
 {
     if (instancesControl.Visible)
     {
         Remoting.Server.Data.Transfer.Machine machine = new Remoting.Server.Data.Transfer.Machine();
         machine.TotalScryptHashrate = this.totalScryptRate;
         machine.TotalSha256Hashrate = this.totalSha256Rate;
         instancesControl.ApplyMachineInformation("localhost", machine);
     }
 }
Example #6
0
 private void SendHashrate(string ipAddress)
 {
     Remoting.Server.Data.Transfer.Machine machine = new Remoting.Server.Data.Transfer.Machine();
     machine.TotalScryptHashrate = this.totalScryptRate;
     machine.TotalSha256Hashrate = this.totalSha256Rate;
     Remoting.Server.Broadcast.Sender.Send(IPAddress.Parse(ipAddress), machine);
 }