IMsgReceiver.cs 672 B

12345678910111213141516171819202122
  1. namespace XGame.Framework.Network
  2. {
  3. public interface IMsgReceiverListener
  4. {
  5. void OnHeartbeatReceived();
  6. /// <summary>
  7. /// IMsgProcesser.process开始时回调
  8. /// </summary>
  9. /// <param name="message"></param>
  10. void OnPreMessage(IMessage message);
  11. /// <summary>
  12. /// response.process结束时回调
  13. /// </summary>
  14. /// <param name="args"></param>
  15. void OnResponseFinish(ResponseEventArgs args);
  16. void OnEvent(ESessionCode code, System.Exception exception);
  17. }
  18. public interface IMsgReceiver
  19. {
  20. void Receive(byte[] bytes, int offest, int length);
  21. }
  22. }