123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354 |
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Runtime.InteropServices;
- using System.Text;
- namespace HPSocketCS.Extended
- {
- /// <summary>
- /// 接收数据处理对象
- /// </summary>
- public class ReceiveData
- {
- public ReceiveData()
- {
-
- }
- TcpHeadInfo _ReceiveRemoteClientInfo;
- /// <summary>
- /// 收到到的远程客户端信息结构
- /// </summary>
- public TcpHeadInfo ReceiveRemoteClientInfo
- {
- get { return _ReceiveRemoteClientInfo; }
- set { _ReceiveRemoteClientInfo = value; }
- }
- System.IO.MemoryStream _ReceiveDataMstream = null;
- /// <summary>
- /// 收接到的数据内存流
- /// </summary>
- public System.IO.MemoryStream ReceiveDataMstream
- {
- get {
- if (_ReceiveDataMstream == null)
- {
- _ReceiveDataMstream = new System.IO.MemoryStream();
- }
- return _ReceiveDataMstream; }
- set { _ReceiveDataMstream = value; }
- }
- public void Dispose()
- {
- this._ReceiveDataMstream.Close();
- this._ReceiveDataMstream.Dispose();
- this._ReceiveDataMstream = null;
-
- }
- }
- }
|