You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
801 B
27 lines
801 B
using System;
|
|
using System.Net.Sockets;
|
|
|
|
namespace DCT_test
|
|
{
|
|
public class ClientSession
|
|
{
|
|
public TcpClient Client { get; set; }
|
|
public string IpPort { get; set; }
|
|
public string ConnectTime { get; set; }
|
|
public uint SentPackets { get; set; }
|
|
public uint ReceivedPackets { get; set; }
|
|
public long FirmwareReceivedBytes { get; set; }
|
|
public string FirmwareUploadName { get; set; }
|
|
|
|
public ClientSession(TcpClient client, string ipPort)
|
|
{
|
|
Client = client;
|
|
IpPort = ipPort;
|
|
ConnectTime = DateTime.Now.ToString("HH:mm:ss");
|
|
SentPackets = 0;
|
|
ReceivedPackets = 0;
|
|
FirmwareReceivedBytes = 0;
|
|
FirmwareUploadName = string.Empty;
|
|
}
|
|
}
|
|
}
|
|
|