OWLNext 7.0
Borland's Object Windows Library for the modern age
|
The class THostInfoManager has notification options that are much like the TServiceManager options.
THostInfoManager manages the host entry ('hostent') database GetXbyY() functions. You can use it, for example, to convert a name such as "joes_computer@abc.com" to an IP address.
THostInfoManager supports blocking and non-blocking calls, and it uses notifications to signal that a non-blocking call has completed.
You can let THostInfoManager receive the notification itself, whereby you can call the GetHostRequestCompleted() function to see if that request has completed. Otherwise, you can tell THostInfoManager to notifiy a given TWindow (which you supply) when the request is completed. In either case, you can call the CancelHostRequest() function to cancel the pending asynchronous request.