123456789101112131415161718192021222324252627 |
- namespace XGame.Framework.Network
- {
- public interface INetModule
- {
- void SetEncryptKey(string key);
- /// <summary>
- /// 连接
- /// </summary>
- /// <param name="ip"></param>
- /// <param name="port"></param>
- void Connect(AddressInfo address);
- /// <summary>
- /// 断开连接
- /// </summary>
- void Disconnect();
- void Reconnect();
- /// <summary>
- /// 发送消息
- /// </summary>
- /// <param name="msg"></param>
- /// <param name="isFilter">过滤参数,默认开启</param>
- void Send(IMsgRequest msg, bool isFilter = true);
- void StartHeartbeat();
- void StopHeartbeat();
- }
- }
|