DnsClient (gb.net)
This class implements a simple client for Name/IP resolution services, so you can obtain IP addresses from host names or vice versa.
This class can perform its work synchronously, so the program will not respond to events while resolving host names/IPs, usually for a few seconds, or asynchronously. Default is synchronous.
Eigenschappen
Async
|
Returns or sets the asynchronous mode of the DNS client.
|
HostIP
|
This property can be used in two ways:
|
HostName
|
This property can be used in two ways:
|
Status
|
This property reflects the current DnsClient object status:
|
Methode
GetHostIP
|
Takes the name of the host stored in the HostName property, and tries to resolve it.
|
GetHostName
|
Takes the IP of the Host stored in the HostIP property, and tries to resolve it.
|
Stop
|
Cancels an asynchronous request.
|
Gebeurtenissen
Finished
|
This event is raised when an asynchronous resolution request terminates.
|