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.
25 lines
607 B
25 lines
607 B
using System;
|
|
using System.Runtime.InteropServices;
|
|
namespace GPSBusiness
|
|
{
|
|
[StructLayout(LayoutKind.Sequential)]
|
|
public class ClientInfo
|
|
{
|
|
public IntPtr ConnId { get; set; }
|
|
public string IpAddress { get; set; }
|
|
public ushort Port { get; set; }
|
|
public PkgInfo PkgInfo { get; set; }
|
|
}
|
|
[StructLayout(LayoutKind.Sequential)]
|
|
public class PkgHeader
|
|
{
|
|
public int Id;
|
|
public int BodySize;
|
|
}
|
|
[StructLayout(LayoutKind.Sequential)]
|
|
public class PkgInfo
|
|
{
|
|
public bool IsHeader;
|
|
public int Length;
|
|
}
|
|
}
|
|
|