TROZeroConfBrowseEngine
Overview
The TROZeroConfBrowseEngine class is used internally by the ZeroConf infrastructure to retrieve information about the ZeroConf environment and services registered in it. You should not use this class directly. To discover services, use the TROZeroConfBrowser methods.
Note: Take a look at the BonjourDiscovery sample shipped with the Remoting SDK to see service discovery in action.
Location
- Unit: uROZeroConf.pas
- Ancestry: TROZeroConfBrowseEngine
Instance Methods
constructor Create virtual
Creates an instance with provided parameters.
constructor Create(aOwner: TROZeroConfBrowser)
Parameters:
- aOwner: The TROZeroConfBrowser that will use this class for service browsing.
Start protected
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
Cancels the service search.
procedure Stop
TriggerBrowse protected virtual
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