12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152 |
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Net.Sockets;
- using System.Text;
- using System.Threading;
- using System.Threading.Tasks;
- namespace MECF.Framework.Common.Net
- {
- public class NetStateObject : IDisposable
- {
-
-
-
- public Socket Socket { get; set; }
-
-
-
- public AutoResetEvent AutoResetEvent { get; set; }
-
-
-
- public int DataLength { get; set; }
-
-
-
- public byte[] Buffer { get; set; }
-
-
-
- public bool IsError { get; set; }
-
-
-
- public int ErrorCode { get; set; }
-
-
-
- public string ErrorMessage { get; set; }
-
-
-
- public void Dispose()
- {
- DataLength = 0;
- Buffer = null;
- }
- }
- }
|