C# Class System.Net.NameResolutionPal

Datei anzeigen Open project: dotnet/corefx Class Usage Examples

Public Methods

Method Description
EnsureSocketsAreInitialized ( ) : void
GetHostByAddr ( IPAddress address ) : IPHostEntry
GetHostByName ( string hostName ) : IPHostEntry
GetHostName ( ) : string
TryGetAddrInfo ( string name, IPHostEntry &hostinfo, int &nativeErrorCode ) : SocketError
TryGetNameInfo ( IPAddress addr, SocketError &errorCode, int &nativeErrorCode ) : string

Private Methods

Method Description
NativeToHostEntry ( IntPtr nativePointer ) : IPHostEntry

Method Details

EnsureSocketsAreInitialized() public static method

public static EnsureSocketsAreInitialized ( ) : void
return void

GetHostByAddr() public static method

public static GetHostByAddr ( IPAddress address ) : IPHostEntry
address IPAddress
return IPHostEntry

GetHostByName() public static method

public static GetHostByName ( string hostName ) : IPHostEntry
hostName string
return IPHostEntry

GetHostName() public static method

public static GetHostName ( ) : string
return string

TryGetAddrInfo() public static method

public static TryGetAddrInfo ( string name, IPHostEntry &hostinfo, int &nativeErrorCode ) : SocketError
name string
hostinfo IPHostEntry
nativeErrorCode int
return SocketError

TryGetNameInfo() public static method

public static TryGetNameInfo ( IPAddress addr, SocketError &errorCode, int &nativeErrorCode ) : string
addr IPAddress
errorCode SocketError
nativeErrorCode int
return string