TROZeroConfResolveEngine

Overview

The TROZeroConfResolveEngine class is used internally by the ZeroConf infrastructure to resolve domains and service types and -names to real server addresses and ports.

Note that you should not use this class directly. Instead, you can use the TROZeroConfService methods for host resolving.

Location


Instance Methods


constructor Create

Creates a new instance.

constructor Create(aConfService: TROZeroConfService)

Parameters:

  • aConfService: owner

Resolve  protected

Resolves a domain and the service type and -name to a real address and port with the provided timeout (in seconds). If the resolve operation was terminated by timeout or if the server returns an error, an Exception will be raised.

procedure Resolve(aTimeout: Integer)

Parameters:

  • aTimeout: Timeout (in seconds)

TryResolve  protected

Tries to resolve a domain and the service type and -name to a real address and port with the provided timeout. If the resolve operation was terminated by time out or if the server returns an error, this method will return false.

function TryResolve(aTimeout: Integer): Boolean

Parameters:

  • aTimeout: Timeout (in seconds)