123456789101112131415161718192021222324252627282930313233343536 |
- 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
- {
- /// <summary>
- /// IP或域名 e.g. 192.168.13.111 or xxxx.com
- /// </summary>
- public string Address { get; set; }
- /// <summary>
- /// 端口号
- /// </summary>
- public int Port { get; set; }
- /// <summary>
- /// 协议类型
- /// </summary>
- public ProtocolType ProtocolType { get; set; }
- /// <summary>
- /// 优先级
- /// </summary>
- public int Priority { get; set; }
- /// <summary>
- /// 用户自定义Uri,默认Uri为(Address + Port)
- /// </summary>
- public string Uri { get; set; }
- }
- }
|