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