| 12345678910111213141516171819202122232425262728 |
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- namespace MqttMsgServer.Service
- {
- public class DefineConfig
- {
- public const int TcpPort = 1884;
- public const int WsPort = 8083;
- //如果不需要密码,请将username和pwd赋值为null
- public static string UserName = "admin";
- public static string Pwd = "admin123456";
- public const int ClientStateUsing = 1;
- public const int ClientStateClosed = 0;
- }
- public class CacheName
- {
- public const string TopicMsgCachePrefix = "Tm-";
- public const string ClientMsgCachePrefix = "CM-";
- public const string ClientCachePrefix = "C-";
- }
- }
|