PowerTCP Sockets for .NET
GetHostEntry(String,IPEndPoint) Method




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

Parameters

hostNameOrAddress
Hostname or IP address (IPAddress.ToString() can be used).
remoteEndPoint
IPEndPoint that specifies the DNS server.

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