PowerTCP Sockets for .NET
GetHostEntry(String) Method




Hostname or IP address (IPAddress.ToString() can be used).
Resolves a hostname (forward lookup) or IP address (reverse lookup) using the default DNS server.
Syntax
'Declaration
 
Public Overloads Function GetHostEntry( _
   ByVal hostNameOrAddress As String _
) As IPHostEntry
'Usage
 
Dim instance As DnsSlave
Dim hostNameOrAddress As String
Dim value As IPHostEntry
 
value = instance.GetHostEntry(hostNameOrAddress)
public IPHostEntry GetHostEntry( 
   string hostNameOrAddress
)
public: IPHostEntry* GetHostEntry( 
   string* hostNameOrAddress
) 
public:
IPHostEntry^ GetHostEntry( 
   String^ hostNameOrAddress
) 

Parameters

hostNameOrAddress
Hostname or IP address (IPAddress.ToString() can be used).

Return Value

Remarks
If IPv6 resolution results in an exception, it will only be thrown if IPv4 resolution succeeded but returned no records.
See Also

Reference

DnsSlave Class
DnsSlave Members
Overload List


PowerTCP Sockets for .NET Documentation Version 4.5
© 2018 Dart Communications. All Rights Reserved.
Send comments on this topic