TROZeroConfBrowseAndResolveEngine

Overview

The TROZeroConfBrowseAndResolveEngine class provides methods for receiving information about the ZeroConf environment and services registered in it.
This class is used internally in the TROZeroConfBrowser.BrowseAndResolve method.

Location

Instance Methods


constructor Create  override

Creates an instance with provided parameters.

constructor Create(aOwner: TROZeroConfBrowser)

Parameters:


BrowseAndResolve  protected

Browses a service by using the aDomain and aServiceType parameters. If the service is found, this method returns information in the out parameters.

function BrowseAndResolve(aTimeout: integer; const aDomain: UnicodeString; const aServiceType: UnicodeString; const aHostTarget: UnicodeString; out aFullDomainName: UnicodeString; out aPort: integer; out aTxtRecord: UnicodeString; out aAddresses: string; aIpType: TIpType): Boolean

Parameters:

  • aTimeout: Timeout (in seconds)
  • aDomain: Domain
  • aServiceType: Service type
  • aHostTarget: Host target
  • aFullDomainName: Full domain name
  • aPort: Port
  • aTxtRecord: Additional service information like channel, message type etc.
  • aAddresses: Address
  • aIpType: TIpType type value.

Start  protected    (declared in TROZeroConfBrowseEngine)

Starts searching for the service with the specified aServiceType within aDomain.

procedure Start(const aDomain: UnicodeString; const aServiceType: UnicodeString)

Parameters:

  • aDomain: Service domain name
  • aServiceType: Service type this instance should browse for

Stop  protected    (declared in TROZeroConfBrowseEngine)

Cancels the service search.

procedure Stop

TriggerBrowse  protected override

Looks for a services with the specified parameters in the list of its TROZeroConfBrowser owner class and creates (and calls the OnServiceAdded event) or destroys (and calls the OnServiceRemoved event) the TROZeroConfService object.

procedure TriggerBrowse(const Add: boolean; const AServiceName: Unicodestring; const aServiceType: Unicodestring; const aDomain: Unicodestring)

Parameters:

  • Add: Determines whether the TROZeroConfService object will be created or destroyed.
  • AServiceName: Service name
  • aServiceType: Service type
  • aDomain: Domain name

See Also