IFrameSynchronizer.cs 470 B

123456789101112131415161718
  1. using XGame.Framework.Interfaces;
  2. namespace XGame.Framework.Network
  3. {
  4. internal interface IFrameData : IReference
  5. {
  6. }
  7. /// <summary>
  8. /// 消息帧同步
  9. /// 回到主线程再回调业务处理
  10. /// </summary>
  11. public interface IFrameSynchronizer : IReset
  12. {
  13. void Enqueue(ESessionCode code, System.Exception exception);
  14. void Enqueue(byte[] bytes, int offset, int length);
  15. void Enqueue(IMessage message);
  16. }
  17. }