1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586 |
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- namespace MECF.Framework.Common.Net
- {
-
-
-
- public interface INetMessage<T>
- {
-
-
-
- int ProtocolHeadBytesLength { get; }
-
-
-
- void SetProtocolHeadBytesLength();
-
-
-
-
- int GetContentLengthByHeadBytes();
-
-
-
-
-
- bool CheckHeadBytesLegal();
-
-
-
-
- bool CheckDataLegal();
-
-
-
-
- bool ConfirmResponseResult();
-
-
-
-
- int GetHeadBytesIdentity();
-
-
-
- int ErrorCode { get; set; }
-
-
-
- string ErrorMsg { get; set; }
-
-
-
- byte[] HeadBytes { get; set; }
-
-
-
- byte[] ContentBytes { get; set; }
-
-
-
- byte[] SendBytes { get; set; }
-
-
-
-
-
- byte[] Code(T data);
-
-
-
-
-
- T Decode();
- }
-
- }
|