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