2019-06-01 06:24:44 +03:00

33 lines
971 B
C#

using AsyncRAT_Sharp.MessagePack;
using AsyncRAT_Sharp.Sockets;
using System.Diagnostics;
using System.Windows.Forms;
namespace AsyncRAT_Sharp.Handle_Packet
{
public class HandlePing
{
public HandlePing(Clients client, MsgPack unpack_msgpack)
{
if (Program.form1.listView1.InvokeRequired)
{
Program.form1.listView1.Invoke((MethodInvoker)(() =>
{
try
{
if (client.LV != null)
{
client.LV.SubItems[Program.form1.lv_prefor.Index].Text = unpack_msgpack.ForcePathObject("Message").AsString;
}
else
{
Debug.WriteLine("Temp socket pinged server");
}
}
catch { }
}));
}
}
}
}