Dokumentaro de Gambaso
Compilation & Installation
Components
gb
gb.crypt
gb.qt4
Documents
Indekso de Lingvo
Language Overviews
LeguMin
Lexicon
Registro

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.

This class is creatable.

Properties
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:

Methods
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.

Events
Finished   This event is raised when an asynchronous resolution request terminates.