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 TcpTailInfo
{
///
/// 要上传下载的文件名(路径)
///
[MarshalAs(UnmanagedType.ByValTStr, SizeConst = 255)]
public string FileName;
///
/// 文件MD5效验码值
///
[MarshalAs(UnmanagedType.ByValTStr, SizeConst = 32)]
public string MD5CheckCode;
///
/// 文件大小
///
public Int64 FileSize;
///
/// 文件上传下载请求类型 0 为上传 1 为下载
///
public Int32 RequestType;
///
/// 指定操作系统打开文件的方式。
/// CreateNew = 1,Create = 2,Open = 3,OpenOrCreate = 4,Truncate = 5,Append = 6,
///
public Int32 FileMode;
///
/// 是否发送完成
///
public bool IsSendComplete;
}
}