RaspberryIO_26/Swan.Tiny/Net/Network.cs

20 lines
558 B
C#
Raw Normal View History

2019-12-10 20:20:45 +01:00
using System;
2019-12-09 17:25:54 +01:00
using System.Net.NetworkInformation;
namespace Swan.Net {
/// <summary>
/// Provides miscellaneous network utilities such as a Public IP finder,
/// a DNS client to query DNS records of any kind, and an NTP client.
/// </summary>
public static class Network {
/// <summary>
/// Gets the name of the host.
/// </summary>
/// <value>
/// The name of the host.
/// </value>
2019-12-10 20:01:19 +01:00
// [Obsolete("NEED", false)]
2019-12-10 20:20:45 +01:00
public static String HostName => IPGlobalProperties.GetIPGlobalProperties().HostName;
2019-12-09 17:25:54 +01:00
}
}