File tree 2 files changed +15
-4
lines changed
2 files changed +15
-4
lines changed Original file line number Diff line number Diff line change
1
+ using GameFrameX . NetWork . Abstractions ;
1
2
using GameFrameX . NetWork . Messages ;
2
3
3
4
namespace GameFrameX . NetWork ;
@@ -15,9 +16,8 @@ public interface IMessageDecoderHandler
15
16
IMessage Handler ( byte [ ] data ) ;
16
17
17
18
/// <summary>
18
- /// 处理服务器之间的消息
19
+ /// 设置解压消息处理器
19
20
/// </summary>
20
- /// <param name="data"></param>
21
- /// <returns></returns>
22
- // IMessage? RpcHandler(byte[] data);
21
+ /// <param name="decompressHandler">解压消息处理器</param>
22
+ void SetDecompressionHandler ( IMessageDecompressHandler decompressHandler = null ) ;
23
23
}
Original file line number Diff line number Diff line change
1
+ using GameFrameX . NetWork . Abstractions ;
1
2
using GameFrameX . NetWork . Messages ;
2
3
3
4
namespace GameFrameX . NetWork ;
@@ -11,9 +12,19 @@ public interface IMessageEncoderHandler
11
12
/// 消息编码
12
13
/// </summary>
13
14
/// <param name="message"></param>
15
+ /// <summary>
16
+ /// 消息编码,当压缩消息处理器存在的时候将会被调用
17
+ /// </summary>
18
+ /// <param name="message">消息对象</param>
14
19
/// <returns></returns>
15
20
byte [ ] Handler ( IMessage message ) ;
16
21
22
+ /// <summary>
23
+ /// 设置压缩消息处理器
24
+ /// </summary>
25
+ /// <param name="compressHandler">压缩消息处理器</param>
26
+ void SetCompressionHandler ( IMessageCompressHandler compressHandler = null ) ;
27
+
17
28
/// <summary>
18
29
/// 消息包头长度
19
30
/// </summary>
You can’t perform that action at this time.
0 commit comments