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