C# Class DnDns.Tools

显示文件 Open project: RELOAD-NET/RELOAD.NET

Public Methods

Method Description
DiscoverDnsServerAddresses ( ) : IPAddressCollection
DiscoverUnixDnsServerAddress ( ) : string
GetServByPort ( short port, ProtocolType proto ) : string

Look up the port names for the given array of port numbers.

IsPlatformLinuxUnix ( ) : bool

Tests to see if this is running on a Linux or Unix Platform

Method Details

DiscoverDnsServerAddresses() public static method

public static DiscoverDnsServerAddresses ( ) : IPAddressCollection
return IPAddressCollection

DiscoverUnixDnsServerAddress() public static method

public static DiscoverUnixDnsServerAddress ( ) : string
return string

GetServByPort() public static method

Look up the port names for the given array of port numbers.
public static GetServByPort ( short port, ProtocolType proto ) : string
port short An array of port numbers.
proto ProtocolType The protocol type. (TCP or UPD)
return string

IsPlatformLinuxUnix() public static method

Tests to see if this is running on a Linux or Unix Platform
public static IsPlatformLinuxUnix ( ) : bool
return bool