12345678910111213141516171819202122 |
- namespace XGame.Framework.Network
- {
- public interface IMsgReceiverListener
- {
- void OnHeartbeatReceived();
- /// <summary>
- /// IMsgProcesser.process开始时回调
- /// </summary>
- /// <param name="message"></param>
- void OnPreMessage(IMessage message);
- /// <summary>
- /// response.process结束时回调
- /// </summary>
- /// <param name="args"></param>
- void OnResponseFinish(ResponseEventArgs args);
- void OnEvent(ESessionCode code, System.Exception exception);
- }
- public interface IMsgReceiver
- {
- void Receive(byte[] bytes, int offest, int length);
- }
- }
|