using System.Net; namespace Pulsar.Common.DNS { public class Host { /// /// Stores the hostname of the Host. /// /// /// Can be an IPv4, IPv6 address or hostname. /// public string Hostname { get; set; } /// /// Stores the IP address of host. /// /// /// Can be an IPv4 or IPv6 address. /// public IPAddress IpAddress { get; set; } /// /// Stores the port of the Host. /// public ushort Port { get; set; } public override string ToString() { return Hostname + ":" + Port; } } }