namespace XGame.Framework.Network { public enum ProtocolType { NONE = 1 << 0, TCP = 1 << 1, HTTP = 1 << 2, HTTPS = 1 << 3, WS = 1 << 4, WSS = 1 << 5 } public class AddressInfo { /// /// IP或域名 e.g. 192.168.13.111 or xxxx.com /// public string Address { get; set; } /// /// 端口号 /// public int Port { get; set; } /// /// 协议类型 /// public ProtocolType ProtocolType { get; set; } /// /// 优先级 /// public int Priority { get; set; } /// /// 用户自定义Uri,默认Uri为(Address + Port) /// public string Uri { get; set; } } }