123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101 |
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Runtime.InteropServices;
- using System.Text;
- namespace HPSocketCS.Extended
- {
-
-
-
- [StructLayout(LayoutKind.Sequential, Pack = 1)]
- public struct TcpHeadInfo
- {
-
-
-
- public Int32 ConnId;
-
-
-
- public Int64 TransportID;
-
-
-
- [MarshalAs(UnmanagedType.ByValTStr, SizeConst = 64)]
- public string HardwareCode;
-
-
-
- [MarshalAs(UnmanagedType.ByValTStr, SizeConst = 128)]
- public string Hostname;
-
-
-
- [MarshalAs(UnmanagedType.ByValTStr, SizeConst = 128)]
- public string IPAddress;
-
-
-
- [MarshalAs(UnmanagedType.ByValTStr, SizeConst = 64)]
- public string LoginUsername;
-
-
-
- public Int32 Port;
-
-
-
- public Int32 MsgDataType;
-
-
-
- public Int64 IntactSize;
-
-
-
- public Int32 RequestCommand;
-
-
-
- [MarshalAs(UnmanagedType.ByValTStr, SizeConst = 32)]
- public string ClientMarkID;
-
-
-
- [MarshalAs(UnmanagedType.ByValTStr, SizeConst = 32)]
- public string ClientMarkName;
-
-
-
- [MarshalAs(UnmanagedType.Bool)]
- public bool TransportStart;
-
-
-
- [MarshalAs(UnmanagedType.Bool)]
- public bool TransportEnd;
-
-
-
- [MarshalAs(UnmanagedType.ByValTStr, SizeConst = 24)]
- public string ServerNowTime;
-
-
-
- [MarshalAs(UnmanagedType.ByValTStr, SizeConst = 16)]
- public string ServerVersionNumber;
-
-
-
- [MarshalAs(UnmanagedType.Bool)]
- public bool IsTail;
- }
- }
|